| pattern_lens/__init__.py |
(no function) |
1 |
0 |
0 |
100% |
| pattern_lens/activations.py |
compute_activations |
0 |
0 |
0 |
100% |
| pattern_lens/activations.py |
compute_activations |
0 |
0 |
0 |
100% |
| pattern_lens/activations.py |
compute_activations |
0 |
0 |
0 |
100% |
| pattern_lens/activations.py |
compute_activations |
0 |
0 |
0 |
100% |
| pattern_lens/activations.py |
compute_activations |
0 |
0 |
0 |
100% |
| pattern_lens/activations.py |
compute_activations |
51 |
4 |
0 |
92% |
| pattern_lens/activations.py |
get_activations |
0 |
0 |
0 |
100% |
| pattern_lens/activations.py |
get_activations |
0 |
0 |
0 |
100% |
| pattern_lens/activations.py |
get_activations |
0 |
0 |
0 |
100% |
| pattern_lens/activations.py |
get_activations |
13 |
1 |
0 |
92% |
| pattern_lens/activations.py |
activations_main |
38 |
7 |
0 |
82% |
| pattern_lens/activations.py |
main |
28 |
1 |
0 |
96% |
| pattern_lens/activations.py |
(no function) |
43 |
1 |
0 |
98% |
| pattern_lens/attn_figure_funcs.py |
get_all_figure_names |
1 |
1 |
0 |
0% |
| pattern_lens/attn_figure_funcs.py |
register_attn_figure_func |
3 |
0 |
0 |
100% |
| pattern_lens/attn_figure_funcs.py |
register_attn_figure_multifunc |
2 |
2 |
0 |
0% |
| pattern_lens/attn_figure_funcs.py |
register_attn_figure_multifunc.decorator |
3 |
3 |
0 |
0% |
| pattern_lens/attn_figure_funcs.py |
raw |
1 |
0 |
0 |
100% |
| pattern_lens/attn_figure_funcs.py |
(no function) |
12 |
0 |
0 |
100% |
| pattern_lens/consts.py |
(no function) |
23 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matplotlib_figure_saver |
0 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matplotlib_figure_saver |
0 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matplotlib_figure_saver |
5 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matplotlib_figure_saver.decorator |
3 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matplotlib_figure_saver.decorator.wrapped |
6 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matplotlib_multifigure_saver |
2 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matplotlib_multifigure_saver.decorator |
5 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matplotlib_multifigure_saver.decorator.wrapped |
14 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matrix_to_image_preprocess |
30 |
13 |
0 |
57% |
| pattern_lens/figure_util.py |
matrix2drgb_to_png_bytes |
1 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matrix2drgb_to_png_bytes |
1 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
matrix2drgb_to_png_bytes |
8 |
2 |
0 |
75% |
| pattern_lens/figure_util.py |
matrix_as_svg |
7 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
save_matrix_wrapper |
0 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
save_matrix_wrapper |
0 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
save_matrix_wrapper |
7 |
1 |
0 |
86% |
| pattern_lens/figure_util.py |
save_matrix_wrapper.decorator |
3 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
save_matrix_wrapper.decorator.wrapped |
11 |
0 |
0 |
100% |
| pattern_lens/figure_util.py |
(no function) |
50 |
0 |
0 |
100% |
| pattern_lens/figures.py |
HTConfigMock.__init__ |
4 |
0 |
0 |
100% |
| pattern_lens/figures.py |
HTConfigMock.serialize |
1 |
1 |
0 |
0% |
| pattern_lens/figures.py |
HTConfigMock.load |
1 |
0 |
0 |
100% |
| pattern_lens/figures.py |
process_single_head |
16 |
2 |
0 |
88% |
| pattern_lens/figures.py |
compute_and_save_figures |
17 |
5 |
0 |
71% |
| pattern_lens/figures.py |
process_prompt |
2 |
0 |
0 |
100% |
| pattern_lens/figures.py |
select_attn_figure_funcs |
10 |
7 |
0 |
30% |
| pattern_lens/figures.py |
figures_main |
19 |
0 |
0 |
100% |
| pattern_lens/figures.py |
_parse_args |
16 |
3 |
0 |
81% |
| pattern_lens/figures.py |
main |
13 |
0 |
0 |
100% |
| pattern_lens/figures.py |
(no function) |
34 |
1 |
0 |
97% |
| pattern_lens/indexes.py |
generate_prompts_jsonl |
11 |
0 |
0 |
100% |
| pattern_lens/indexes.py |
generate_models_jsonl |
11 |
0 |
0 |
100% |
| pattern_lens/indexes.py |
get_func_metadata |
10 |
3 |
0 |
70% |
| pattern_lens/indexes.py |
generate_functions_jsonl |
14 |
0 |
0 |
100% |
| pattern_lens/indexes.py |
inline_assets |
10 |
2 |
0 |
80% |
| pattern_lens/indexes.py |
write_html_index |
7 |
0 |
0 |
100% |
| pattern_lens/indexes.py |
(no function) |
16 |
0 |
0 |
100% |
| pattern_lens/load_activations.py |
compare_prompt_to_loaded |
4 |
0 |
0 |
100% |
| pattern_lens/load_activations.py |
augment_prompt_with_hash |
8 |
0 |
0 |
100% |
| pattern_lens/load_activations.py |
load_activations |
1 |
1 |
0 |
0% |
| pattern_lens/load_activations.py |
load_activations |
0 |
0 |
0 |
100% |
| pattern_lens/load_activations.py |
load_activations |
21 |
5 |
0 |
76% |
| pattern_lens/load_activations.py |
(no function) |
22 |
0 |
0 |
100% |
| pattern_lens/prompts.py |
load_text_data |
20 |
1 |
0 |
95% |
| pattern_lens/prompts.py |
(no function) |
4 |
0 |
0 |
100% |
| pattern_lens/server.py |
main |
9 |
0 |
0 |
100% |
| pattern_lens/server.py |
(no function) |
17 |
8 |
0 |
53% |
| tests/integration/test_clis.py |
test_activations_cli |
16 |
0 |
0 |
100% |
| tests/integration/test_clis.py |
test_figures_cli |
10 |
0 |
0 |
100% |
| tests/integration/test_clis.py |
test_figures_cli_with_multiple_models |
9 |
0 |
0 |
100% |
| tests/integration/test_clis.py |
test_server_cli |
6 |
0 |
0 |
100% |
| tests/integration/test_clis.py |
(no function) |
10 |
0 |
0 |
100% |
| tests/integration/test_pipeline.py |
test_pipeline |
2 |
0 |
0 |
100% |
| tests/integration/test_pipeline.py |
(no function) |
13 |
0 |
0 |
100% |
| tests/unit/test_activations.py |
MockHookedTransformer.__init__ |
6 |
6 |
0 |
0% |
| tests/unit/test_activations.py |
MockHookedTransformer.eval |
1 |
1 |
0 |
0% |
| tests/unit/test_activations.py |
MockHookedTransformer.run_with_cache |
6 |
6 |
0 |
0% |
| tests/unit/test_activations.py |
test_compute_activations_stack_heads |
14 |
0 |
0 |
100% |
| tests/unit/test_activations.py |
test_compute_activations_no_stack |
11 |
0 |
0 |
100% |
| tests/unit/test_activations.py |
test_get_activations_missing |
12 |
0 |
0 |
100% |
| tests/unit/test_activations.py |
(no function) |
15 |
0 |
0 |
100% |
| tests/unit/test_activations_return.py |
MockHookedTransformer.__init__ |
6 |
0 |
0 |
100% |
| tests/unit/test_activations_return.py |
MockHookedTransformer.eval |
1 |
0 |
0 |
100% |
| tests/unit/test_activations_return.py |
MockHookedTransformer.run_with_cache |
6 |
0 |
0 |
100% |
| tests/unit/test_activations_return.py |
test_compute_activations_torch_return |
12 |
0 |
0 |
100% |
| tests/unit/test_activations_return.py |
test_compute_activations_invalid_return |
5 |
0 |
0 |
100% |
| tests/unit/test_activations_return.py |
test_get_activations_torch_return |
11 |
0 |
0 |
100% |
| tests/unit/test_activations_return.py |
test_get_activations_none_return |
9 |
0 |
0 |
100% |
| tests/unit/test_activations_return.py |
(no function) |
15 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matplotlib_figure_saver |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matplotlib_figure_saver.plot_matrix |
2 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matplotlib_figure_saver_exception |
6 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matplotlib_figure_saver_exception.faulty_plot |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_normalization |
4 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_no_normalization |
4 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_invalid_range |
3 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_invalid_dims |
3 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_invalid_cmap_fixed |
3 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_no_args |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_no_args.no_op |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_with_args |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_with_args.scale_matrix |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_exceptions |
6 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_exceptions.invalid_range |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_keyword_only |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_keyword_only.scale_matrix |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_multiple |
9 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_multiple.scale_by_factor |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_no_normalization |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_no_normalization.pass_through |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_complex_matrix |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_complex_matrix.complex_processing |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_dimensions |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_content |
11 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_save_matrix_as_svgz_wrapper_content.identity |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matplotlib_figure_saver_formats |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matplotlib_figure_saver_formats.plot_matrix |
2 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_empty |
3 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matplotlib_figure_saver_cleanup |
7 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matplotlib_figure_saver_cleanup.plot_matrix |
1 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_non_numeric |
3 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
test_matrix_as_svg_format |
9 |
0 |
0 |
100% |
| tests/unit/test_figure_util.py |
(no function) |
34 |
0 |
0 |
100% |
| tests/unit/test_figures.py |
test_process_single_head |
10 |
0 |
0 |
100% |
| tests/unit/test_figures.py |
test_process_single_head.test_fig_func |
1 |
0 |
0 |
100% |
| tests/unit/test_figures.py |
test_process_single_head_error_handling |
9 |
0 |
0 |
100% |
| tests/unit/test_figures.py |
test_process_single_head_error_handling.error_fig_func |
1 |
0 |
0 |
100% |
| tests/unit/test_figures.py |
test_compute_and_save_figures |
19 |
0 |
0 |
100% |
| tests/unit/test_figures.py |
test_compute_and_save_figures.MockConfig.__init__ |
3 |
0 |
0 |
100% |
| tests/unit/test_figures.py |
test_compute_and_save_figures.test_fig_func |
1 |
1 |
0 |
0% |
| tests/unit/test_figures.py |
(no function) |
10 |
0 |
0 |
100% |
| tests/unit/test_load_activations.py |
test_augment_prompt_with_hash |
12 |
0 |
0 |
100% |
| tests/unit/test_load_activations.py |
test_load_activations_success |
16 |
0 |
0 |
100% |
| tests/unit/test_load_activations.py |
test_load_activations_errors |
16 |
0 |
0 |
100% |
| tests/unit/test_load_activations.py |
(no function) |
10 |
0 |
0 |
100% |
| tests/unit/test_multifig.py |
test_matplotlib_multifigure_saver |
12 |
0 |
0 |
100% |
| tests/unit/test_multifig.py |
test_matplotlib_multifigure_saver.multi_plot |
4 |
0 |
0 |
100% |
| tests/unit/test_multifig.py |
test_matplotlib_multifigure_saver_custom_format |
12 |
0 |
0 |
100% |
| tests/unit/test_multifig.py |
test_matplotlib_multifigure_saver_custom_format.multi_plot_png |
4 |
0 |
0 |
100% |
| tests/unit/test_multifig.py |
test_matplotlib_multifigure_saver_error_handling |
11 |
1 |
0 |
91% |
| tests/unit/test_multifig.py |
test_matplotlib_multifigure_saver_error_handling.plot_with_error |
2 |
0 |
0 |
100% |
| tests/unit/test_multifig.py |
test_matplotlib_multifigure_saver_cleanup |
8 |
0 |
0 |
100% |
| tests/unit/test_multifig.py |
test_matplotlib_multifigure_saver_cleanup.multi_plot_cleanup |
2 |
0 |
0 |
100% |
| tests/unit/test_multifig.py |
(no function) |
9 |
0 |
0 |
100% |
| tests/unit/test_server.py |
test_server_main |
8 |
0 |
0 |
100% |
| tests/unit/test_server.py |
(no function) |
3 |
0 |
0 |
100% |