| pattern_lens / __init__.py |
(no function) |
|
1 |
0 |
0 |
|
100% |
| pattern_lens / activations.py |
_rel_path |
|
4 |
0 |
0 |
|
100% |
| pattern_lens / activations.py |
compute_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / activations.py |
compute_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / activations.py |
compute_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / activations.py |
compute_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / activations.py |
compute_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / activations.py |
compute_activations |
|
52 |
4 |
0 |
|
92% |
| pattern_lens / activations.py |
compute_activations_batched |
|
34 |
0 |
0 |
|
100% |
| pattern_lens / activations.py |
get_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / activations.py |
get_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / activations.py |
get_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / activations.py |
get_activations |
|
15 |
1 |
0 |
|
93% |
| pattern_lens / activations.py |
activations_main |
|
61 |
7 |
0 |
|
89% |
| pattern_lens / activations.py |
main |
|
29 |
1 |
0 |
|
97% |
| pattern_lens / activations.py |
(no function) |
|
28 |
1 |
64 |
|
96% |
| 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 |
|
4 |
4 |
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 |
1 |
|
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 |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / figure_util.py |
matrix2drgb_to_png_bytes |
|
0 |
0 |
1 |
|
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 |
1 |
|
100% |
| pattern_lens / figure_util.py |
save_matrix_wrapper |
|
0 |
0 |
1 |
|
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) |
|
42 |
0 |
23 |
|
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 |
|
11 |
3 |
0 |
|
73% |
| pattern_lens / indexes.py |
generate_functions_jsonl |
|
14 |
0 |
0 |
|
100% |
| pattern_lens / indexes.py |
write_html_index |
|
13 |
4 |
0 |
|
69% |
| pattern_lens / indexes.py |
(no function) |
|
13 |
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 |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / load_activations.py |
load_activations |
|
0 |
0 |
1 |
|
100% |
| pattern_lens / load_activations.py |
load_activations |
|
24 |
3 |
0 |
|
88% |
| pattern_lens / load_activations.py |
activations_exist |
|
5 |
0 |
0 |
|
100% |
| pattern_lens / load_activations.py |
(no function) |
|
21 |
0 |
6 |
|
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 / conftest.py |
_clean_temp_dir |
|
3 |
1 |
0 |
|
67% |
| tests / conftest.py |
(no function) |
|
6 |
0 |
0 |
|
100% |
| tests / integration / test_clis.py |
test_activations_cli |
|
17 |
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_batched.py |
MockHookedTransformerBatched.__init__ |
|
7 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
MockHookedTransformerBatched._seq_len |
|
1 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
MockHookedTransformerBatched.parameters |
|
1 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
MockHookedTransformerBatched.eval |
|
1 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
MockHookedTransformerBatched.to_tokens |
|
5 |
3 |
0 |
|
40% |
| tests / unit / test_activations_batched.py |
MockHookedTransformerBatched._make_deterministic_attn |
|
3 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
MockHookedTransformerBatched.run_with_cache |
|
14 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
_make_prompts |
|
1 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
_expected_seq_len |
|
1 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_activations_exist_both_present |
|
9 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_activations_exist_missing_npz |
|
8 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_activations_exist_missing_json |
|
7 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_activations_exist_missing_dir |
|
3 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_compute_activations_batched_shapes |
|
15 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_compute_activations_batched_no_padding_leaks |
|
7 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_batched_vs_single_equivalence |
|
22 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_batched_single_prompt_equivalence |
|
11 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_compute_activations_batched_saves_prompt_metadata |
|
16 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_compute_activations_batched_file_paths |
|
7 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_compute_activations_batched_empty_raises |
|
3 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_batched_extreme_length_difference |
|
10 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_batched_same_length_prompts |
|
8 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_activations_exist_after_batched_compute |
|
6 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_batched_trimmed_values_are_nonzero |
|
9 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_batched_with_precomputed_seq_lens |
|
12 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_batched_seq_lens_length_mismatch_raises |
|
4 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
_make_5_prompts |
|
1 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
_run_activations_main_mocked |
|
5 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_activations_main_partial_cache_skip |
|
18 |
1 |
0 |
|
94% |
| tests / unit / test_activations_batched.py |
test_activations_main_full_cache_skip |
|
11 |
1 |
0 |
|
91% |
| tests / unit / test_activations_batched.py |
test_names_filter_callable |
|
14 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_names_filter_callable.my_filter |
|
1 |
1 |
0 |
|
0% |
| tests / unit / test_activations_batched.py |
test_activations_exist_requires_hash |
|
2 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_compute_activations_batched_missing_text_raises |
|
3 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_compute_activations_batched_missing_hash_raises |
|
3 |
0 |
0 |
|
100% |
| tests / unit / test_activations_batched.py |
test_activations_main_batch_size_1 |
|
11 |
1 |
0 |
|
91% |
| tests / unit / test_activations_batched.py |
test_activations_main_force_recomputes |
|
14 |
1 |
0 |
|
93% |
| tests / unit / test_activations_batched.py |
test_activations_main_sorts_by_length |
|
12 |
1 |
0 |
|
92% |
| tests / unit / test_activations_batched.py |
test_activations_main_multiple_batches |
|
11 |
1 |
0 |
|
91% |
| tests / unit / test_activations_batched.py |
(no function) |
|
50 |
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 |
|
7 |
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 |
test_load_activations_missing_npz_is_subclass_of_file_not_found |
|
10 |
0 |
0 |
|
100% |
| tests / unit / test_load_activations.py |
test_load_activations_invalid_return_fmt |
|
2 |
0 |
0 |
|
100% |
| tests / unit / test_load_activations.py |
(no function) |
|
12 |
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% |