AI Slop Code RIsk Monitor

EleutherAI/lm-evaluation-harness

A framework for few-shot evaluation of language models.

13.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for EleutherAI/lm-evaluation-harness, a Python project with 14,179 GitHub stars. SynthScan examined 301,546 lines of code across 15461 source files, recording 2151 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 13.6 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

13.6
Adjusted Signal
13.6
Raw Pattern Score
100%
Time Factor
2026-09-14
Last Push
14.2K
Stars
Python
Language
301.5K
Lines of Code
15.5K
Files
2.2K
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 20.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1249 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.5/100 · LOW

Are imports declared and package/API names verified? 211 finding(s).

Agent Over-Engineering Ratio 42.3/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 1539 finding(s).

PR Review Velocity Impact 52.4/100 · HIGH

Which changes need focused human review? 2151 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 392MEDIUM 184LOW 1575

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 2151 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition343 hits · 1715 pts
SeverityFileLineSnippetContext
HIGHlm_eval/filters/selection.py0assuming each entry of `resps` is a list of model responses, we discard all but the first response.STRING
HIGH…val/tasks/darija_bench/darija_transliteration/utils.py0assuming each entry of `resps` is a list of model responses, we discard all but the first response.STRING
HIGHlm_eval/tasks/darija_bench/darija_translation/utils.py0assuming each entry of `resps` is a list of model responses, we discard all but the first response.STRING
HIGH…_eval/tasks/darija_bench/darija_summarization/utils.py0assuming each entry of `resps` is a list of model responses, we discard all but the first response.STRING
HIGHlm_eval/tasks/super_glue/record/t5_utils.py0lower text and remove punctuation, extra whitespace.STRING
HIGHlm_eval/tasks/tydiqa/utils.py0lower text and remove punctuation, extra whitespace.STRING
HIGHlm_eval/tasks/french_bench/utils.py0lower text and remove punctuation, extra whitespace.STRING
HIGHlm_eval/tasks/longbench/metrics.py0lower text and remove punctuation, extra whitespace.STRING
HIGHlm_eval/tasks/mlqa/utils.py0lower text and remove punctuation, extra whitespace.STRING
HIGHlm_eval/tasks/tinyBenchmarks/utils_truthfulqa.py0returns `t5` style bleu scores. see the related implementation: https://github.com/google-research/text-to-text-transferSTRING
HIGHlm_eval/tasks/catalan_bench/truthfulqa_va/utils.py0returns `t5` style bleu scores. see the related implementation: https://github.com/google-research/text-to-text-transferSTRING
HIGHlm_eval/tasks/truthfulqa-multi/utils.py0returns `t5` style bleu scores. see the related implementation: https://github.com/google-research/text-to-text-transferSTRING
HIGHlm_eval/tasks/truthfulqa/utils.py0returns `t5` style bleu scores. see the related implementation: https://github.com/google-research/text-to-text-transferSTRING
HIGHlm_eval/tasks/noreval/nortruthfulqa/generation/utils.py0returns `t5` style bleu scores. see the related implementation: https://github.com/google-research/text-to-text-transferSTRING
HIGHlm_eval/tasks/noreval/norsumm/utils.py0returns `t5` style bleu scores. see the related implementation: https://github.com/google-research/text-to-text-transferSTRING
HIGHlm_eval/tasks/galician_bench/utils.py0returns `t5` style bleu scores. see the related implementation: https://github.com/google-research/text-to-text-transferSTRING
HIGHlm_eval/tasks/tinyBenchmarks/utils_truthfulqa.py0returns `t5` style rouge scores. see the related implementation: https://github.com/google-research/text-to-text-transfeSTRING
HIGHlm_eval/tasks/catalan_bench/truthfulqa_va/utils.py0returns `t5` style rouge scores. see the related implementation: https://github.com/google-research/text-to-text-transfeSTRING
HIGHlm_eval/tasks/truthfulqa-multi/utils.py0returns `t5` style rouge scores. see the related implementation: https://github.com/google-research/text-to-text-transfeSTRING
HIGHlm_eval/tasks/truthfulqa/utils.py0returns `t5` style rouge scores. see the related implementation: https://github.com/google-research/text-to-text-transfeSTRING
HIGHlm_eval/tasks/noreval/nortruthfulqa/generation/utils.py0returns `t5` style rouge scores. see the related implementation: https://github.com/google-research/text-to-text-transfeSTRING
HIGHlm_eval/tasks/noreval/norsumm/utils.py0returns `t5` style rouge scores. see the related implementation: https://github.com/google-research/text-to-text-transfeSTRING
HIGHlm_eval/tasks/galician_bench/utils.py0returns `t5` style rouge scores. see the related implementation: https://github.com/google-research/text-to-text-transfeSTRING
HIGHlm_eval/tasks/darijammlu/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/mmlusr/config.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/e2lmc/noor/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/egymmlu/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/arab_culture/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGH…val/tasks/arab_culture_completion/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/mmlu/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/tmmluplus/default/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/arabicmmlu/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/tmlu/default/_generate_configs.py0take in a yaml, and output all "other" splits with this yamlSTRING
HIGHlm_eval/tasks/mgsm/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrimmlu/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/paws-x/_generate_config.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/translation/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/xnli/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/openai_mmlu/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/adr/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/mafand/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/naijarc/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/belebele/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/injongointent/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/xlsum/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/afrisenti/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/masakhapos/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/ntrex/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/flores/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/salt/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/masakhanews/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/uhura-arc-easy/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/sib/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/afriqa/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrobench/masakhaner/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrixnli/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrixnli/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/xwinograd/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrimgsm/gen_utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
HIGHlm_eval/tasks/afrimgsm/utils.py0generate a yaml file for each configuage. :param output_dir: the directory to output the files to. :param overwrite: wheSTRING
283 more matches not shown…
Hyper-Verbose Identifiers823 hits · 742 pts
SeverityFileLineSnippetContext
LOWlm_eval/evaluator_utils.py173def _compute_task_aggregations(CODE
LOWlm_eval/evaluator_utils.py345def _collect_groups_bottom_up(groups: dict[str, Group]) -> list[Group]:CODE
LOWlm_eval/evaluator_utils.py430def _propagate_higher_is_better(CODE
LOWlm_eval/utils.py47def is_transformers_available() -> bool:CODE
LOWlm_eval/utils.py328def get_sample_results_filenames(filenames: list[str]) -> list[str]:CODE
LOWlm_eval/utils.py335def get_rolling_token_windows(CODE
LOWlm_eval/utils.py849def check_remote_tokenizer_support(CODE
LOWlm_eval/tasks/__init__.py36def get_task_name_from_config(task_config: dict[str, str]) -> str:CODE
LOWlm_eval/tasks/__init__.py50def get_task_name_from_object(task_object):CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py207def generate_optimal_plans_for_problem_state(P, state, num_plans, timeout):CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py330def create_tmp_dom_prob_replace_init(P, state, result_domain_file, result_problem_file):CODE
LOW⚡lm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py671def str_remove_before_first_parentheses(s):CODE
LOW⚡lm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py680def str_remove_after_last_parentheses(s):CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py207def generate_optimal_plans_for_problem_state(P, state, num_plans, timeout):CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py330def create_tmp_dom_prob_replace_init(P, state, result_domain_file, result_problem_file):CODE
LOW⚡lm_eval/tasks/acpbench/gen_2shot/acp_utils.py671def str_remove_before_first_parentheses(s):CODE
LOW⚡lm_eval/tasks/acpbench/gen_2shot/acp_utils.py680def str_remove_after_last_parentheses(s):CODE
LOWlm_eval/tasks/jfinqa/test_jfinqa_utils.py35 def test_normalize_comma_only_between_digits(self):CODE
LOWlm_eval/tasks/jfinqa/test_jfinqa_utils.py58 def test_extract_answer_multiline_with_answer(self):CODE
LOWlm_eval/tasks/jfinqa/test_jfinqa_utils.py100 def test_exact_numerical_match(self):CODE
LOWlm_eval/tasks/jfinqa/test_jfinqa_utils.py115 def test_non_numeric_fallback(self):CODE
LOWlm_eval/tasks/jfinqa/test_jfinqa_utils.py123 def test_same_unit_different_values(self):CODE
LOWlm_eval/tasks/jfinqa/test_jfinqa_utils.py145 def test_missing_optional_fields(self):CODE
LOWlm_eval/tasks/jfinqa/test_jfinqa_utils.py163 def test_exact_and_numerical_match(self):CODE
LOWlm_eval/tasks/jfinqa/test_jfinqa_utils.py169 def test_numerical_match_only(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py133 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py170 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py243 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py293 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py340 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py379 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py427 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py476 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py550 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py600 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py660 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py721 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py784 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py853 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py911 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py939 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1017 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1108 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1153 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1208 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1241 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1295 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1331 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1356 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1432 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1460 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1492 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1523 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1580 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/instructions.py1612 def get_instruction_args_keys(self):CODE
LOWlm_eval/tasks/ifeval/utils.py24def test_instruction_following_strict(CODE
LOWlm_eval/tasks/ifeval/utils.py57def test_instruction_following_loose(CODE
LOWlm_eval/tasks/ifeval/multilingual/utils.py23def test_instruction_following_strict(CODE
LOWlm_eval/tasks/ifeval/multilingual/utils.py56def test_instruction_following_loose(CODE
LOW…ks/ifeval/multilingual/instructions/es_instructions.py104 def get_instruction_args_keys(self):CODE
763 more matches not shown…
Decorative Section Separators114 hits · 414 pts
SeverityFileLineSnippetContext
MEDIUM⚡lm_eval/tasks/longproc/metrics.py39# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡lm_eval/tasks/longproc/metrics.py41# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡lm_eval/tasks/longproc/metrics.py163# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡lm_eval/tasks/longproc/metrics.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py300# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py302# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py432# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py434# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py551# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/longproc/metrics.py553# ---------------------------------------------------------------------------COMMENT
MEDIUMlm_eval/tasks/cruxeval/utils.py223# ============================================================================COMMENT
MEDIUMlm_eval/tasks/cruxeval/utils.py225# ============================================================================COMMENT
MEDIUM⚡lm_eval/tasks/cruxeval/utils.py241# ============================================================================COMMENT
MEDIUM⚡lm_eval/tasks/cruxeval/utils.py243# ============================================================================COMMENT
MEDIUM⚡lm_eval/tasks/cruxeval/utils.py425# ============================================================================COMMENT
MEDIUM⚡lm_eval/tasks/cruxeval/utils.py427# ============================================================================COMMENT
MEDIUMlm_eval/api/registry.py536# =============================================================================COMMENT
MEDIUMlm_eval/api/registry.py538# =============================================================================COMMENT
MEDIUMlm_eval/api/registry.py582# =============================================================================COMMENT
MEDIUMlm_eval/api/registry.py584# =============================================================================COMMENT
MEDIUMlm_eval/api/registry.py645# =============================================================================COMMENT
MEDIUMlm_eval/api/registry.py647# =============================================================================COMMENT
MEDIUMlm_eval/api/registry.py702# =============================================================================COMMENT
MEDIUMlm_eval/api/registry.py704# =============================================================================COMMENT
MEDIUMlm_eval/api/group.py340# =============================================================================COMMENT
MEDIUMlm_eval/api/group.py342# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py13# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py15# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py24# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py26# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py58# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py60# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py112# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py114# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py769# =============================================================================COMMENT
MEDIUM⚡tests/test_fewshot_context.py771# =============================================================================COMMENT
MEDIUMtests/test_fewshot_context.py180# =============================================================================COMMENT
MEDIUMtests/test_fewshot_context.py182# =============================================================================COMMENT
MEDIUMtests/test_fewshot_context.py455# =============================================================================COMMENT
MEDIUMtests/test_fewshot_context.py457# =============================================================================COMMENT
MEDIUM⚡tests/test_task_manager.py1150# =============================================================================COMMENT
MEDIUM⚡tests/test_task_manager.py1152# =============================================================================COMMENT
MEDIUMtests/test_task_manager.py12# =============================================================================COMMENT
MEDIUMtests/test_task_manager.py14# =============================================================================COMMENT
MEDIUMtests/test_task_manager.py359# =============================================================================COMMENT
MEDIUMtests/test_task_manager.py361# =============================================================================COMMENT
MEDIUMtests/test_task_manager.py930# =============================================================================COMMENT
MEDIUMtests/test_task_manager.py932# =============================================================================COMMENT
MEDIUMtests/test_task_manager.py84# =============================================================================STRING
MEDIUMtests/test_task_manager.py86# =============================================================================STRING
MEDIUMtests/test_task_manager.py205# =============================================================================STRING
MEDIUMtests/test_task_manager.py207# =============================================================================STRING
MEDIUMtests/test_task_manager.py786# =============================================================================STRING
MEDIUMtests/test_task_manager.py788# =============================================================================STRING
MEDIUM⚡tests/test_samplers.py38# =============================================================================COMMENT
MEDIUM⚡tests/test_samplers.py40# =============================================================================COMMENT
54 more matches not shown…
Excessive Try-Catch Wrapping168 hits · 202 pts
SeverityFileLineSnippetContext
LOWlm_eval/tasks/_index.py63 except Exception as err:CODE
LOWlm_eval/tasks/realtoxicityprompts/metric.py36 except Exception:CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py123 except Exception as e:CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py148 except Exception:CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py325 except Exception as e:CODE
LOW⚡lm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py676 except Exception:CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py1058 except Exception as e:CODE
MEDIUMlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py1053def parse_prediction(prediction):CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py123 except Exception as e:CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py148 except Exception:CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py325 except Exception as e:CODE
LOW⚡lm_eval/tasks/acpbench/gen_2shot/acp_utils.py676 except Exception:CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py1058 except Exception as e:CODE
MEDIUMlm_eval/tasks/acpbench/gen_2shot/acp_utils.py1053def parse_prediction(prediction):CODE
LOWlm_eval/tasks/slr_bench/lm_eval_slr_bench.py14except Exception as e:CODE
LOWlm_eval/tasks/slr_bench/lm_eval_slr_bench.py59 except Exception as e:CODE
MEDIUMlm_eval/tasks/slr_bench/lm_eval_slr_bench.py60 print(f"Error in process_results: {e}")CODE
LOWlm_eval/tasks/humaneval/utils.py9except Exception as e:CODE
LOWlm_eval/tasks/aime/utils.py49 except Exception:CODE
LOWlm_eval/tasks/hendrycks_math/utils.py49 except Exception:CODE
LOWlm_eval/tasks/hrm8k/default/utils.py32 except Exception:CODE
LOWlm_eval/tasks/hrm8k/default/utils.py70 except Exception:CODE
LOWlm_eval/tasks/hrm8k/default/utils.py84 except Exception:CODE
LOWlm_eval/tasks/hrm8k/default/utils.py158 except Exception:CODE
LOWlm_eval/tasks/hrm8k/default/utils.py189 except Exception:CODE
LOWlm_eval/tasks/hrm8k/en/utils.py32 except Exception:CODE
LOWlm_eval/tasks/hrm8k/en/utils.py70 except Exception:CODE
LOWlm_eval/tasks/hrm8k/en/utils.py84 except Exception:CODE
LOWlm_eval/tasks/hrm8k/en/utils.py158 except Exception:CODE
LOWlm_eval/tasks/hrm8k/en/utils.py189 except Exception:CODE
LOWlm_eval/tasks/humaneval_infilling/utils.py9except Exception as e:CODE
LOW⚡lm_eval/tasks/medtext/utils.py18except Exception as e:CODE
LOW⚡lm_eval/tasks/medtext/utils.py27 except Exception as e:CODE
LOW⚡lm_eval/tasks/medtext/utils.py33 except Exception as e:CODE
LOW⚡lm_eval/tasks/medtext/utils.py39 except Exception as e:CODE
LOW⚡lm_eval/tasks/medtext/utils.py47 except Exception as e:CODE
MEDIUMlm_eval/tasks/medtext/utils.py24def doc_eval(pred, refs):CODE
LOW⚡lm_eval/tasks/olaph/utils.py19except Exception as e:CODE
LOW⚡lm_eval/tasks/olaph/utils.py28 except Exception as e:CODE
LOW⚡lm_eval/tasks/olaph/utils.py34 except Exception as e:CODE
LOW⚡lm_eval/tasks/olaph/utils.py40 except Exception as e:CODE
LOW⚡lm_eval/tasks/olaph/utils.py48 except Exception as e:CODE
MEDIUMlm_eval/tasks/olaph/utils.py25def doc_eval(pred, refs):CODE
LOWlm_eval/tasks/minerva_math/utils.py204 except Exception as e: # noqa: BLE001CODE
LOWlm_eval/tasks/leaderboard/math/utils.py216 except Exception as e:CODE
LOWlm_eval/tasks/toksuite/utils.py474 except Exception:CODE
LOWlm_eval/tasks/toksuite/utils.py494 except Exception:CODE
LOW⚡lm_eval/tasks/toksuite/utils.py518 except Exception:CODE
LOW⚡lm_eval/tasks/toksuite/utils.py522 except Exception:CODE
LOWlm_eval/tasks/toksuite/utils.py555 except Exception:CODE
LOWlm_eval/tasks/toksuite/utils.py578 except Exception:CODE
LOWlm_eval/tasks/toksuite/utils.py601 except Exception:CODE
LOWlm_eval/tasks/toksuite/utils.py605 except Exception:CODE
LOWlm_eval/tasks/meqsum/utils.py18except Exception as e:CODE
LOW⚡lm_eval/tasks/meqsum/utils.py52 except Exception as e:CODE
LOW⚡lm_eval/tasks/meqsum/utils.py58 except Exception as e:CODE
LOW⚡lm_eval/tasks/meqsum/utils.py64 except Exception as e:CODE
LOW⚡lm_eval/tasks/meqsum/utils.py72 except Exception as e:CODE
LOWlm_eval/tasks/med_prescriptions/utils.py2060 except Exception:CODE
LOWlm_eval/tasks/med_prescriptions/utils.py2066 except Exception:CODE
108 more matches not shown…
Unused Imports203 hits · 198 pts
SeverityFileLineSnippetContext
LOWlm_eval/evaluator_utils.py1CODE
LOWlm_eval/__init__.py2CODE
LOWlm_eval/evaluator.py1CODE
LOWlm_eval/filters/__init__.py1CODE
LOWlm_eval/filters/__init__.py6CODE
LOWlm_eval/filters/__init__.py8CODE
LOWlm_eval/filters/__init__.py8CODE
LOWlm_eval/filters/__init__.py8CODE
LOWlm_eval/filters/__init__.py8CODE
LOWlm_eval/filters/extraction.py1CODE
LOWlm_eval/tasks/_index.py1CODE
LOWlm_eval/tasks/_factory.py1CODE
LOWlm_eval/tasks/_yaml_loader.py1CODE
LOWlm_eval/tasks/manager.py1CODE
LOWlm_eval/tasks/manager.py20CODE
LOWlm_eval/tasks/babilong/common_utils.py11CODE
LOWlm_eval/tasks/evalita_llm/utils.py3CODE
LOWlm_eval/tasks/evalita_llm/utils.py4CODE
LOWlm_eval/tasks/jfinqa/utils.py12CODE
LOWlm_eval/tasks/catalan_bench/truthfulqa_va/utils.py2CODE
LOWlm_eval/tasks/catalan_bench/truthfulqa_va/utils.py8CODE
LOWlm_eval/tasks/afrimmlu/direct/prompt_5/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/direct/prompt_2/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/direct/prompt_3/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/direct/prompt_4/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/direct/prompt_1/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/translate/prompt_5/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/translate/prompt_2/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/translate/prompt_3/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/translate/prompt_4/utils.py5CODE
LOWlm_eval/tasks/afrimmlu/translate/prompt_1/utils.py5CODE
LOWlm_eval/tasks/aime/utils.py1CODE
LOWlm_eval/tasks/noreval/norsumm/utils.py1CODE
LOWlm_eval/tasks/noreval/norsumm/utils.py7CODE
LOWlm_eval/tasks/spanish_bench/utils.py2CODE
LOWlm_eval/tasks/spanish_bench/utils.py5CODE
LOWlm_eval/tasks/minerva_math/utils.py1CODE
LOWlm_eval/tasks/minerva_math/utils.py18CODE
LOWlm_eval/tasks/darija_bench/darija_sentiment/utils.py1CODE
LOWlm_eval/tasks/darija_bench/darija_sentiment/utils.py2CODE
LOW…_eval/tasks/darija_bench/darija_summarization/utils.py1CODE
LOWlm_eval/tasks/longbench/utils.py1CODE
LOWlm_eval/tasks/longbench/utils.py2CODE
LOWlm_eval/tasks/longbench/utils.py3CODE
LOWlm_eval/tasks/leaderboard/gpqa/utils.py1CODE
LOWlm_eval/tasks/xquad/utils.py1CODE
LOWlm_eval/tasks/xquad/utils.py2CODE
LOWlm_eval/tasks/xquad/utils.py4CODE
LOWlm_eval/tasks/xquad/utils.py7CODE
LOWlm_eval/tasks/cnn_dailymail/utils.py6CODE
LOWlm_eval/tasks/score/utils.py21CODE
LOWlm_eval/tasks/score/utils.py25CODE
LOWlm_eval/tasks/ruler/vt_utils.py17CODE
LOWlm_eval/tasks/ruler/niah_utils.py1CODE
LOWlm_eval/tasks/ruler/fwe_utils.py14CODE
LOWlm_eval/tasks/ruler/common_utils.py1CODE
LOWlm_eval/tasks/physics_gre/utils.py1CODE
LOWlm_eval/tasks/afrobench/nollysenti/prompt_5/utils.py1CODE
LOWlm_eval/tasks/afrobench/nollysenti/prompt_2/utils.py1CODE
LOWlm_eval/tasks/afrobench/nollysenti/prompt_3/utils.py1CODE
143 more matches not shown…
Empty Error Handlers37 hits · 185 pts
SeverityFileLineSnippetContext
HIGHlm_eval/utils.py189except ValueError:CODE
HIGHlm_eval/utils.py891except requests.RequestException:CODE
HIGHlm_eval/tasks/blimp/generate_configs.py89except FileExistsError:CODE
HIGH…ks/ifeval/multilingual/instructions/es_instructions.py234except langdetect.lang_detect_exception.LangDetectException:CODE
HIGH…ks/ifeval/multilingual/instructions/ca_instructions.py232except langdetect.lang_detect_exception.LangDetectException:CODE
HIGHlm_eval/tasks/catalan_bench/cieacova/utils.py87except (SyntaxError, ValueError):CODE
HIGHlm_eval/tasks/aime/utils.py23except (AssertionError, IndexError):CODE
HIGHlm_eval/tasks/toksuite/utils.py522except Exception:CODE
HIGHlm_eval/tasks/toksuite/utils.py605except Exception:CODE
HIGHlm_eval/tasks/toksuite/utils.py474except Exception:CODE
HIGHlm_eval/tasks/toksuite/utils.py555except Exception:CODE
HIGHlm_eval/tasks/med_prescriptions/utils.py2060except Exception:CODE
HIGHlm_eval/tasks/med_prescriptions/utils.py2066except Exception:CODE
HIGHlm_eval/tasks/score/math/math_grader.py431except Exception:CODE
HIGHlm_eval/tasks/score/math/math_grader.py552except Exception:CODE
HIGHlm_eval/tasks/score/math/math_grader.py559except Exception:CODE
HIGHlm_eval/tasks/score/math/math_grader.py191except AssertionError:CODE
HIGHlm_eval/tasks/score/math/math_grader.py525except Exception:CODE
HIGHlm_eval/tasks/score/math/math_grader.py541except Exception:CODE
HIGHlm_eval/tasks/bigbench/generate_tasks.py225except FileExistsError:CODE
HIGH…val/tasks/okapi/mmlu_multilingual/_generate_configs.py22except FileExistsError:CODE
HIGHlm_eval/tasks/pisa/utils.py12except ImportError:CODE
HIGHlm_eval/tasks/gpqa/cot_n_shot/_generate_configs.py21except FileExistsError:CODE
HIGHlm_eval/tasks/gpqa/cot_zeroshot/_generate_configs.py21except FileExistsError:CODE
HIGHlm_eval/tasks/gpqa/generative/_generate_configs.py21except FileExistsError:CODE
HIGHlm_eval/tasks/gpqa/n_shot/_generate_configs.py21except FileExistsError:CODE
HIGHlm_eval/tasks/gpqa/zeroshot/_generate_configs.py21except FileExistsError:CODE
HIGH…el_written_evals/advanced_ai_risk/_generate_configs.py21except FileExistsError:CODE
HIGH…tasks/model_written_evals/persona/_generate_configs.py21except FileExistsError:CODE
HIGHlm_eval/models/trtllm_causallms.py30except ModuleNotFoundError:CODE
HIGHlm_eval/models/sglang_causallms.py26except ModuleNotFoundError:CODE
HIGHlm_eval/models/api_models.py24except ModuleNotFoundError:CODE
HIGHlm_eval/models/megatron_lm.py646except AttributeError:CODE
HIGHlm_eval/_cli/utils.py106except ValueError:CODE
HIGHlm_eval/api/model.py250except ImportError:CODE
HIGHtests/test_cache.py58except NotADirectoryError:CODE
HIGHtests/models/test_vllm.py45except ModuleNotFoundError:CODE
Deep Nesting171 hits · 166 pts
SeverityFileLineSnippetContext
LOWlm_eval/evaluator_utils.py430CODE
LOWlm_eval/evaluator_utils.py509CODE
LOWlm_eval/utils.py199CODE
LOWlm_eval/evaluator.py429CODE
LOWlm_eval/filters/extraction.py39CODE
LOWlm_eval/filters/extraction.py157CODE
LOWlm_eval/filters/extraction.py42CODE
LOWlm_eval/tasks/_factory.py127CODE
LOWlm_eval/tasks/realtoxicityprompts/metric.py12CODE
LOWlm_eval/tasks/evalita_llm/metrics.py49CODE
LOWlm_eval/tasks/evalita_llm/metrics.py63CODE
LOWlm_eval/tasks/evalita_llm/utils.py11CODE
LOWlm_eval/tasks/evalita_llm/utils.py30CODE
LOWlm_eval/tasks/evalita_llm/utils.py91CODE
LOWlm_eval/tasks/evalita_llm/utils.py193CODE
LOWlm_eval/tasks/evalita_llm/utils.py246CODE
LOWlm_eval/tasks/evalita_llm/utils.py439CODE
LOWlm_eval/tasks/evalita_llm/utils.py526CODE
LOWlm_eval/tasks/simple_cooccurrence_bias/utils.py29CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py642CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py730CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py91CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py917CODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py993CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py642CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py730CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py91CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py917CODE
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py993CODE
LOWlm_eval/tasks/mgsm/utils.py131CODE
LOWlm_eval/tasks/chartqa/utils.py192CODE
LOW…asks/catalan_bench/flores_ca/create_yamls_flores_ca.py273CODE
LOWlm_eval/tasks/truthfulqa-multi/utils.py38CODE
LOWlm_eval/tasks/mmmu/utils.py105CODE
LOWlm_eval/tasks/mmmu/utils.py223CODE
LOWlm_eval/tasks/mmmu/utils.py316CODE
LOWlm_eval/tasks/mmmu/utils.py230CODE
LOWlm_eval/tasks/translation/utils.py41CODE
LOWlm_eval/tasks/aime/utils.py97CODE
LOWlm_eval/tasks/hendrycks_math/utils.py97CODE
LOWlm_eval/tasks/qasper/utils.py6CODE
LOWlm_eval/tasks/qasper/utils.py9CODE
LOWlm_eval/tasks/qasper/utils.py31CODE
LOW…s/portuguese_bench/flores_pt/create_yamls_flores_pt.py272CODE
LOWlm_eval/tasks/bbq/utils.py212CODE
LOWlm_eval/tasks/bbq/utils.py300CODE
LOWlm_eval/tasks/bbq/utils.py303CODE
LOWlm_eval/tasks/hrm8k/default/utils.py146CODE
LOWlm_eval/tasks/hrm8k/en/utils.py146CODE
LOW…asks/spanish_bench/flores_es/create_yamls_flores_es.py272CODE
LOWlm_eval/tasks/leaderboard/math/utils.py177CODE
LOWlm_eval/tasks/toksuite/utils.py423CODE
LOWlm_eval/tasks/toksuite/utils.py532CODE
LOWlm_eval/tasks/med_prescriptions/utils.py2181CODE
LOWlm_eval/tasks/med_prescriptions/utils.py2274CODE
LOWlm_eval/tasks/score/utils.py74CODE
LOWlm_eval/tasks/score/utils.py199CODE
LOWlm_eval/tasks/score/utils.py93CODE
LOWlm_eval/tasks/score/non_greedy_summarizer.py33CODE
LOWlm_eval/tasks/score/non_greedy_summarizer.py117CODE
111 more matches not shown…
Over-Commented Block92 hits · 88 pts
SeverityFileLineSnippetContext
LOWpyproject.toml61ibm_watsonx_ai = ["ibm_watsonx_ai>=1.1.22", "python-dotenv"]COMMENT
LOWlm_eval/result_schema.py21 {COMMENT
LOWlm_eval/result_schema.py41 # Per-task list of per-document sample results.COMMENT
LOWlm_eval/result_schema.py61 "upper_git_hash": str | None,COMMENT
LOWlm_eval/result_schema.py81 # Model source identifier (e.g. "hf").COMMENT
LOWlm_eval/tasks/tinyBenchmarks/utils_truthfulqa.py61 # bleurt_scores_true = self.bleurt.compute(COMMENT
LOWlm_eval/tasks/ifeval/instructions.py1# Copyright 2023 The Google Research Authors.COMMENT
LOWlm_eval/tasks/ifeval/instructions_util.py1# Copyright 2023 The Google Research Authors.COMMENT
LOWlm_eval/tasks/ifeval/instructions_registry.py1# Copyright 2023 The Google Research Authors.COMMENT
LOW…val/tasks/ifeval/multilingual/instructions_registry.py1# Copyright 2024 The Google Research Authors.COMMENT
LOW…multilingual/instruction_utils/ca_instructions_util.py1# coding=utf-8COMMENT
LOW…multilingual/instruction_utils/es_instructions_util.py1# coding=utf-8COMMENT
LOW…ks/ifeval/multilingual/instructions/es_instructions.py1# coding=utf-8COMMENT
LOW…ks/ifeval/multilingual/instructions/ca_instructions.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWlm_eval/tasks/catalan_bench/truthfulqa_va/utils.py181 # bleurt_scores_false = self.bleurt.compute(COMMENT
LOWlm_eval/tasks/truthfulqa-multi/utils.py81 completion = results[0]COMMENT
LOWlm_eval/tasks/truthfulqa-multi/utils.py101 bleu_scores = [bleu([[ref]], [completion]) for ref in all_refs]COMMENT
LOWlm_eval/tasks/truthfulqa-multi/utils.py121 # rouge2_max = rouge2_correctCOMMENT
LOWlm_eval/tasks/truthfulqa/utils.py61COMMENT
LOWlm_eval/tasks/minerva_math/utils.py321 # \fracabc -> \frac{a}{b}cCOMMENT
LOWlm_eval/tasks/longbench/metrics.py1# MIT LicenseCOMMENT
LOWlm_eval/tasks/longbench/_generate_config.py1# MIT LicenseCOMMENT
LOWlm_eval/tasks/leaderboard/ifeval/instructions.py1# Copyright 2023 The Google Research Authors.COMMENT
LOWlm_eval/tasks/leaderboard/ifeval/instructions_util.py1# Copyright 2023 The Google Research Authors.COMMENT
LOW…eval/tasks/leaderboard/ifeval/instructions_registry.py1# Copyright 2023 The Google Research Authors.COMMENT
LOWlm_eval/tasks/logiqa2/utils_logiqa2.py21# # https://github.com/csitfun/LogiQA2.0/blob/main/logiqa2nli/nli-prompt.pyCOMMENT
LOWlm_eval/tasks/score/utils.py1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWlm_eval/tasks/score/non_greedy_summarizer.py1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWlm_eval/tasks/score/mmlu_pro/utils_mmlu_pro.py1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…ore/math/prompt_robustness_math_counting_and_prob.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…/tasks/score/math/prompt_robustness_math_geometry.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…ks/score/math/non_greedy_robustness_math_geometry.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…/score/math/non_greedy_robustness_math_num_theory.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…l/tasks/score/math/prompt_robustness_math_precalc.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…/score/math/non_greedy_robustness_math_prealgebra.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…asks/score/math/prompt_robustness_math_num_theory.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…math/non_greedy_robustness_math_counting_and_prob.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…asks/score/math/prompt_robustness_math_prealgebra.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…/math/prompt_robustness_math_intermediate_algebra.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWlm_eval/tasks/score/math/math_grader.py1# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.COMMENT
LOWlm_eval/tasks/score/math/math_grader.py21# copies of the Software, and to permit persons to whom the Software isCOMMENT
LOWlm_eval/tasks/score/math/math_grader.py41# copies of the Software, and to permit persons to whom the Software isCOMMENT
LOWlm_eval/tasks/score/math/math_grader.py61# copies of the Software, and to permit persons to whom the Software isCOMMENT
LOW…sks/score/math/non_greedy_robustness_math_precalc.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…h/non_greedy_robustness_math_intermediate_algebra.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…/agi_eval/option_order_robustness_agieval_lsat_rc.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…score/agi_eval/prompt_robustness_agieval_lstat_lr.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…e/agi_eval/non_greedy_robustness_agieval_sat_math.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…agi_eval/option_order_robustness_agieval_sat_math.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…e/agi_eval/non_greedy_robustness_agieval_lstat_ar.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWlm_eval/tasks/score/agi_eval/utils_agieval.py1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…/agi_eval/option_order_robustness_agieval_lsat_ar.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…s/score/agi_eval/prompt_robustness_agieval_sat_en.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…ore/agi_eval/non_greedy_robustness_agieval_sat_en.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…/agi_eval/non_greedy_robustness_agieval_logiqa_en.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…e/agi_eval/non_greedy_robustness_agieval_lstat_lr.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…gi_eval/option_order_robustness_agieval_logiqa_en.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…score/agi_eval/prompt_robustness_agieval_lstat_ar.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…score/agi_eval/prompt_robustness_agieval_sat_math.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…re/agi_eval/non_greedy_robustness_agieval_lsat_rc.yaml1# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
32 more matches not shown…
Redundant / Tautological Comments42 hits · 64 pts
SeverityFileLineSnippetContext
LOWlm_eval/tasks/_yaml_loader.py50 # Check if this is a built-in task moduleCOMMENT
LOWlm_eval/tasks/_yaml_loader.py69 # Check if we need to reload the moduleCOMMENT
LOWlm_eval/tasks/_yaml_loader.py72 # Check if it was modifiedCOMMENT
LOWlm_eval/tasks/evalita_llm/utils.py126 if results: # Check if results is not emptyCODE
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py183 # Check if new_plan is a planCOMMENT
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py807 # Check if the answer is equal (as a set) to the real stored answerCOMMENT
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py860 # Check if the plan candidate from the answer (a) is a proper subsequence of the plan in the question and (bCOMMENT
LOWlm_eval/tasks/acpbench/gen_2shot_with_pddl/acp_utils.py978 # Check if the answer is equal as sets to the correct answers.COMMENT
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py183 # Check if new_plan is a planCOMMENT
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py807 # Check if the answer is equal (as a set) to the real stored answerCOMMENT
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py860 # Check if the plan candidate from the answer (a) is a proper subsequence of the plan in the question and (bCOMMENT
LOWlm_eval/tasks/acpbench/gen_2shot/acp_utils.py978 # Check if the answer is equal as sets to the correct answers.COMMENT
LOW…ks/ifeval/multilingual/instructions/es_instructions.py1366 # Check if the last character in value is a dot (.)COMMENT
LOW…ks/ifeval/multilingual/instructions/es_instructions.py1506 # Check if all normalized, alphabetic characters are uppercase, ignoring non-alphabetic charactersCOMMENT
LOW…ks/ifeval/multilingual/instructions/ca_instructions.py1364 # Check if the last character in value is a dot (.)COMMENT
LOW…ks/ifeval/multilingual/instructions/ca_instructions.py1504 # Check if all normalized, alphabetic characters are uppercase, ignoring non-alphabetic charactersCOMMENT
LOWlm_eval/tasks/chartqa/utils.py211 # Check if the number is in the model answer with commas (e.g. 1,000)COMMENT
LOWlm_eval/tasks/chartqa/utils.py214 # Check if the number is in the model answer without commas (e.g. 1000)COMMENT
LOWlm_eval/tasks/graphwalks/utils.py42 # Check if formatted correctlyCOMMENT
LOWlm_eval/tasks/aime/utils.py26 # Check if answer matches targetCOMMENT
LOWlm_eval/tasks/bbq/utils.py224 # Check if answer is "Not known"COMMENT
LOW⚡lm_eval/tasks/med_prescriptions/utils.py2106 # Check if the text contains any Indian script charactersCOMMENT
LOW⚡lm_eval/tasks/arab_culture/utils_mcq.py17### Set this to one to add the country and region information to the promptCOMMENT
LOW⚡lm_eval/tasks/arab_culture/utils_mcq.py19### Set this to one to add the region information to the promptCOMMENT
LOW⚡lm_eval/tasks/arab_culture/utils_mcq.py21### Set this to change between Arabic and English for the answer keys and the choices keysCOMMENT
LOWlm_eval/tasks/jsonschema_bench/metrics.py68 # Check if the schema is validCOMMENT
LOWlm_eval/tasks/afrobench/masakhaner/prompt_5/utils.py17 if pair: # Check if the line is not emptyCODE
LOWlm_eval/tasks/afrobench/masakhaner/prompt_2/utils.py17 if pair: # Check if the line is not emptyCODE
LOWlm_eval/tasks/afrobench/masakhaner/prompt_3/utils.py17 if pair: # Check if the line is not emptyCODE
LOWlm_eval/tasks/afrobench/masakhaner/prompt_4/utils.py17 if pair: # Check if the line is not emptyCODE
LOWlm_eval/tasks/afrobench/masakhaner/prompt_1/utils.py17 if pair: # Check if the line is not emptyCODE
LOW⚡…eval/tasks/arab_culture_completion/utils_completion.py18### Set this to one to add the country and region information to the promptCOMMENT
LOW⚡…eval/tasks/arab_culture_completion/utils_completion.py20### Set this to one to add the region information to the promptCOMMENT
LOW⚡…eval/tasks/arab_culture_completion/utils_completion.py22### Set this to change between Arabic and English for the answer keys and the choices keysCOMMENT
LOWlm_eval/decontamination/decontaminate.py61 # Check if we've decontaminated this combination beforeCOMMENT
LOWlm_eval/models/hf_vlms.py586 # Check if per-token argmax is exactly equal to continuationCOMMENT
LOWlm_eval/models/neuron_optimum.py549 # Check if per-token argmax is exactly equal to continuationCOMMENT
LOWlm_eval/models/huggingface.py1526 # Check if per-token argmax is exactly equal to continuationCOMMENT
LOWlm_eval/models/megatron_lm.py1013 # Check if greedyCOMMENT
LOWlm_eval/_cli/run.py503 # Print resultsCOMMENT
LOWlm_eval/api/task.py1078 # Check if answer is provided (handle a=0 as valid answer index)STRING
LOWtests/test_tasks.py27 # Check if task_classes is emptyCOMMENT
AI Slop Vocabulary21 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMlm_eval/evaluator.py198 # See https://github.com/EleutherAI/lm-evaluation-harness/pull/1412COMMENT
MEDIUMlm_eval/tasks/tinyBenchmarks/utils_truthfulqa.py160 # init RougeScorer once (https://github.com/EleutherAI/lm-evaluation-harness/issues/1692)--rouge_types are constCOMMENT
MEDIUMlm_eval/tasks/ifeval/instructions_util.py29# see https://github.com/EleutherAI/lm-evaluation-harness/issues/2210COMMENT
MEDIUMlm_eval/tasks/aime/utils.py35# string normalization from https://github.com/EleutherAI/lm-evaluation-harness/blob/master/lm_eval/tasks/hendrycks_mathCOMMENT
MEDIUMlm_eval/tasks/hendrycks_math/utils.py35# string normalization from https://github.com/EleutherAI/lm-evaluation-harness/blob/master/lm_eval/tasks/hendrycks_mathCOMMENT
MEDIUMlm_eval/tasks/truthfulqa/utils.py164 # init RougeScorer once (https://github.com/EleutherAI/lm-evaluation-harness/issues/1692)--rouge_types are constCOMMENT
LOWlm_eval/tasks/bbq/utils.py65 # If all elements are NaN, then we simply return NaNCOMMENT
MEDIUMlm_eval/tasks/noreval/nortruthfulqa/generation/utils.py137 # init RougeScorer once (https://github.com/EleutherAI/lm-evaluation-harness/issues/1692)--rouge_types are constCOMMENT
MEDIUMlm_eval/tasks/noreval/norsumm/utils.py87 # init RougeScorer once (https://github.com/EleutherAI/lm-evaluation-harness/issues/1692)--rouge_types are constCOMMENT
MEDIUMlm_eval/tasks/minerva_math/utils.py32# https://github.com/wellecks/lm-evaluation-harness/blob/master/lm_eval/tasks/minerva_math.pyCOMMENT
LOWlm_eval/tasks/longbench/_generate_config.py177 # Now we just set a boolean flag to indicate whether we need a newlineSTRING
MEDIUMlm_eval/tasks/leaderboard/ifeval/instructions_util.py28# see https://github.com/EleutherAI/lm-evaluation-harness/issues/2210COMMENT
MEDIUMlm_eval/tasks/leaderboard/math/utils.py32# https://github.com/wellecks/lm-evaluation-harness/blob/master/lm_eval/tasks/minerva_math.pyCOMMENT
MEDIUM⚡lm_eval/tasks/cruxeval/utils.py242# lm-evaluation-harness Integration FunctionsCOMMENT
MEDIUMlm_eval/tasks/putnam_axiom/utils.py31# https://github.com/wellecks/lm-evaluation-harness/blob/master/lm_eval/tasks/minerva_math.pyCOMMENT
MEDIUMlm_eval/models/openai_completions.py326 "Loglikelihood (and therefore `multiple_choice`-type tasks) is not supported for chat completions as OpenAI CODE
MEDIUMlm_eval/models/huggingface.py1390 # See: https://github.com/EleutherAI/lm-evaluation-harness/issues/1678COMMENT
MEDIUMlm_eval/models/sglang_causallms.py40 # batch args from lm-eval interface: https://github.com/EleutherAI/lm-evaluation-harness/blob/main/docs/interfaCOMMENT
LOWlm_eval/models/megatron_lm.py865 # We just pass through the requests without additional splittingCOMMENT
LOWlm_eval/models/megatron_lm.py884 # We just return results without additional gatheringCOMMENT
MEDIUMlm_eval/api/metrics.py660 # See https://github.com/EleutherAI/lm-evaluation-harness/pull/1390 for more documentation.COMMENT
Self-Referential Comments17 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUMlm_eval/tasks/slr_bench/lm_eval_slr_bench.py33 # Create the reference in the required formatCOMMENT
MEDIUMlm_eval/tasks/toksuite/utils.py500 # Create the summary row with column averagesCOMMENT
MEDIUM⚡lm_eval/tasks/med_prescriptions/utils.py2101 # Create a regular expression pattern for Indian scriptsCOMMENT
MEDIUMlm_eval/tasks/ruler/vt_utils.py81 # Create a list of the repeated noiseCOMMENT
MEDIUMlm_eval/loggers/utils.py25 # Define the pattern to match ',none' at the end of the stringCOMMENT
MEDIUMlm_eval/config/evaluate_config.py233 # Create an instance and validateCOMMENT
MEDIUMlm_eval/models/api_models.py266 """This method is responsible for creating the json payload that will be sent to the API."""STRING
MEDIUMtests/test_registry.py184 # Create a class to test withCOMMENT
MEDIUMtests/test_metrics.py12 # Create a minimal configCOMMENT
MEDIUMtests/test_cli_subcommands.py481 # Create a minimal valid task yamlCOMMENT
MEDIUMtests/test_cli_subcommands.py1054 # Create a YAML config fileCOMMENT
MEDIUMtests/test_task_manager.py538 # Create a custom arc_easy.yaml that has a different metricCOMMENT
MEDIUMtests/test_task_manager.py597 # Create a custom task using a real datasetCOMMENT
MEDIUMtests/test_task_manager.py649 # Create a completely new task (not overriding any default)COMMENT
MEDIUMtests/models/test_vllm_context_length.py24 # Create a mock VLLM instance with required attributesCOMMENT
MEDIUMtests/models/test_vllm_context_length.py205 # Create a mock requestCOMMENT
MEDIUMtests/scripts/test_zeno_visualize.py17 # Define the process_model_args function that replicates the fixed logic in zeno_visualize.pyCOMMENT
Docstring Block Structure10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHlm_eval/models/ibm_watsonx_ai.py229 Determines whether a stop token has been generated in the `response_tokens` compared to the `context_tokens`. STRING
HIGHlm_eval/models/utils.py286Generates and yields batches from the reordered array. The method of grouping and batching depends on the paramSTRING
HIGHlm_eval/models/utils.py510This function checks if the (Hugging Face) tokenizer has a padding token and sets it if not present. Some tokenizers reqSTRING
HIGHlm_eval/models/utils.py661Normalize generation kwargs for consistent handling across model backends. Model implementations may have differentSTRING
HIGHlm_eval/models/utils.py879Truncates input tokens and/or reduces max_gen_toks to fit within max_model_len. Strategy: 1. No truncation STRING
HIGHlm_eval/api/registry.py96Materialize a lazy placeholder into the actual object. This is at module level to avoid memory leaks from lru_cacheSTRING
HIGHlm_eval/api/registry.py302Register an object under one or more aliases. Can be used as a decorator or called directly for direct registraSTRING
HIGHlm_eval/api/registry.py401Retrieve an object by alias, materializing if needed. Thread-safe lazy loading: if the alias points to a placehSTRING
HIGHlm_eval/api/registry.py614Get a model class by name. Args: model_name: The registered name of the model Returns: The modSTRING
HIGHlm_eval/api/registry.py676Get a filter by name. Args: filter_name: The registered name of the filter, or a callable Returns: STRING
Modern AI Meta-Vocabulary18 hits · 47 pts
SeverityFileLineSnippetContext
MEDIUMlm_eval/result_schema.py35 # Number of few-shot examples used per task.COMMENT
MEDIUMlm_eval/result_schema.py93 # Whether few-shot examples were formatted as multi-turn.COMMENT
MEDIUMlm_eval/evaluator.py393 # add info about the model and few shot configCOMMENT
MEDIUMlm_eval/tasks/metabench/process_docs.py24 long_prompt = f"{long_prompt}Question: {question}\nAnswer: {answer}\n\n" # no choices are provided in the fCODE
MEDIUMlm_eval/tasks/metabench/process_docs.py43 long_prompt = f"{long_prompt}Question: {question}\nAnswer: {answer}\n\n" # no choices are provided in the fCODE
MEDIUMlm_eval/tasks/metabench/process_docs.py126 long_prompt = f"{long_prompt}{question}\nA. {choice_A}\nB. {choice_B}\nC. {choice_C}\nD. {choice_D}\nAnswer:CODE
MEDIUMlm_eval/tasks/metabench/process_docs_permute.py24 long_prompt = f"{long_prompt}Question: {question}\nAnswer: {answer}\n\n" # no choices are provided in the fCODE
MEDIUMlm_eval/tasks/metabench/process_docs_permute.py126 long_prompt = f"{long_prompt}{question}\nA. {choice_A}\nB. {choice_B}\nC. {choice_C}\nD. {choice_D}\nAnswer:CODE
MEDIUMlm_eval/tasks/french_bench/README.md59# Not to use in few-shotCOMMENT
MEDIUMlm_eval/tasks/ruler/vt_utils.py214 # This condition is to check if we are generating the few-shot.COMMENT
MEDIUMlm_eval/tasks/bigbench/generate_tasks.py219 + "_zero_shot", # zero-shot version of the datasetCODE
MEDIUMlm_eval/tasks/race/README.md54 - PR #3716. Fixed how fill-in-the-blank ("cloze") sub-questions are rendered in the few-shot context. For a question lCODE
MEDIUMlm_eval/models/utils.py959 # not to the reasoning trace (which often contains \n\n etc.)COMMENT
MEDIUMlm_eval/_cli/run.py33 # Evaluate on multiple tasks with few-shot examplesCOMMENT
MEDIUMtests/models/test_model_utils.py145 # Prompt exactly fills context window, gen toks reduced to 0COMMENT
MEDIUMdocs/model_guide.md191 # ... more few-shot examples, potentiallyCOMMENT
MEDIUMdocs/interface.md38# With few-shot examplesCOMMENT
MEDIUMdocs/interface.md64# Multiple tasks with few-shot examplesCOMMENT
Modern Structural Boilerplate26 hits · 26 pts
SeverityFileLineSnippetContext
LOWlm_eval/__init__.py29__all__ = ["evaluate", "simple_evaluate", "__version__"]CODE
LOWlm_eval/filters/__init__.py27__all__ = [CODE
LOWlm_eval/tasks/__init__.py25__all__ = [CODE
LOWlm_eval/tasks/ifeval/instructions.py41logger = logging.getLogger(__name__)CODE
LOWlm_eval/tasks/truthfulqa-multi/utils.py7logger = logging.getLogger(__name__)CODE
LOWlm_eval/tasks/leaderboard/ifeval/instructions.py30logger = logging.getLogger(__name__)CODE
LOWlm_eval/loggers/trackio_logger.py11logger = logging.getLogger(__name__)CODE
LOWlm_eval/loggers/wandb_logger.py13logger = logging.getLogger(__name__)CODE
LOWlm_eval/loggers/utils.py12logger = logging.getLogger(__name__)CODE
LOWlm_eval/config/__init__.py6__all__ = ["EvaluatorConfig", "TaskConfig", "GroupConfig"]CODE
LOWlm_eval/models/gguf.py15logger = logging.getLogger(__name__)CODE
LOWlm_eval/models/__init__.py83__all__ = ["MODEL_MAPPING"]CODE
LOWlm_eval/models/neuron_optimum.py34logger = logging.getLogger(__name__)CODE
LOWlm_eval/models/textsynth.py26logger = logging.getLogger(__name__)CODE
LOWlm_eval/models/onnxruntime_genai.py35__all__ = ["ONNXRuntimeGenAILM", "_log_softmax"]CODE
LOWlm_eval/_cli/__init__.py8__all__ = ["HarnessCLI"]CODE
LOWlm_eval/api/task.py520 def set_config(self, key: str, value: Any, update: bool = False) -> None:CODE
LOWlm_eval/api/task.py560 def set_fewshot_seed(self, seed: int | None = None) -> None:CODE
LOWlm_eval/api/registry.py57__all__ = [CODE
LOWlm_eval/api/model.py225 def set_cache_hook(self, cache_hook: "CacheHook") -> None:CODE
LOWscripts/make_table_results.py13logger = logging.getLogger(__name__)CODE
LOWscripts/make_table_tasks.py14logger = logging.getLogger(__name__)CODE
LOWscripts/clean_training_data/generate_13_grams.py41logger = logging.getLogger(__name__)CODE
LOWscripts/clean_training_data/compress_and_package.py13logger = logging.getLogger(__name__)CODE
LOWscripts/clean_training_data/process_sorted_buckets.py31logger = logging.getLogger(__name__)CODE
LOWscripts/clean_training_data/sort_13_gram_buckets.py23logger = logging.getLogger(__name__)CODE
AI Structural Patterns25 hits · 24 pts
SeverityFileLineSnippetContext
LOWlm_eval/evaluator.py55CODE
LOWlm_eval/evaluator.py429CODE
LOWlm_eval/tasks/evalita_llm/utils.py168CODE
LOWlm_eval/tasks/evalita_llm/utils.py176CODE
LOWlm_eval/tasks/evalita_llm/utils.py523CODE
LOWlm_eval/tasks/minerva_math/utils.py100CODE
LOWlm_eval/tasks/leaderboard/math/utils.py98CODE
LOWlm_eval/tasks/ruler/qa_utils.py48CODE
LOWlm_eval/tasks/ruler/prepare_niah.py216CODE
LOWlm_eval/loggers/evaluation_tracker.py130CODE
LOWlm_eval/config/task.py50CODE
LOWlm_eval/models/optimum_ipex.py33CODE
LOWlm_eval/models/nemo_lm.py169CODE
LOWlm_eval/models/hf_vlms.py38CODE
LOWlm_eval/models/vllm_causallms.py63CODE
LOWlm_eval/models/neuron_optimum.py133CODE
LOWlm_eval/models/huggingface.py72CODE
LOWlm_eval/models/huggingface.py745CODE
LOWlm_eval/models/trtllm_causallms.py44CODE
LOWlm_eval/models/sglang_causallms.py37CODE
LOWlm_eval/models/api_models.py108CODE
LOWlm_eval/models/megatron_lm.py157CODE
LOWlm_eval/models/megatron_lm.py733CODE
LOWlm_eval/api/task.py268CODE
LOWtests/test_evaluator_utils.py763CODE
Verbosity Indicators11 hits · 24 pts
SeverityFileLineSnippetContext
LOWlm_eval/tasks/score/math/prompt_templates.json11 "prompt": "You should solve this math problem.\nIf the problem is easy, provide a brief solution with littleCODE
LOW⚡lm_eval/tasks/infinitebench/utils.py367 # Step 1: find last standalone A-D letter (official regex)COMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py372 # Step 2: empty predictionCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py376 # Step 3: first characterCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py380 # Step 4: full prediction matches label letterCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py384 # Step 5: replace punctuation, check prefixes (matching official chars)COMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py395 # Step 6: scan words for first A-D letterCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py430 # Step 1: find last standalone A-J letter (official regex)COMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py437 # Step 2: replace chars and consolidate spaces (matching official)COMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py447 # Step 3: check startswithCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py453 # Step 4: check answer prefixes (matching official set)COMMENT
Structural Annotation Overuse10 hits · 22 pts
SeverityFileLineSnippetContext
LOW⚡lm_eval/tasks/infinitebench/utils.py367 # Step 1: find last standalone A-D letter (official regex)COMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py372 # Step 2: empty predictionCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py376 # Step 3: first characterCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py380 # Step 4: full prediction matches label letterCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py384 # Step 5: replace punctuation, check prefixes (matching official chars)COMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py395 # Step 6: scan words for first A-D letterCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py430 # Step 1: find last standalone A-J letter (official regex)COMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py437 # Step 2: replace chars and consolidate spaces (matching official)COMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py447 # Step 3: check startswithCOMMENT
LOW⚡lm_eval/tasks/infinitebench/utils.py453 # Step 4: check answer prefixes (matching official set)COMMENT
TODO Padding8 hits · 12 pts
SeverityFileLineSnippetContext
LOWlm_eval/filters/selection.py7# TODO: implement "arg_max" filter. either it should take in an arbitrary "scoring"/reward functionCOMMENT
LOWlm_eval/tasks/hendrycks_ethics/deontology.yaml9# TODO: implement exact-match metric for this subsetCOMMENT
LOWlm_eval/models/anthropic_llms.py245 temperature=temperature, # TODO: implement non-greedy sampling for AnthropicCODE
LOWlm_eval/models/neuron_optimum.py429 # TODO: implement some kind of efficient-request-middleware that lumps together requests with the same contextCOMMENT
LOWlm_eval/models/huggingface.py1335 # TODO: implement some kind of efficient-request-middleware that lumps together requests with the same contextCOMMENT
LOWscripts/regression.py36 # TODO: implement num_fewshot and limit per task, e.g. task1:5,task2:1:100,task3::1000COMMENT
LOWscripts/regression.py39 # TODO: implement hf-auto to pick between causal and seq2seq models so we don't need thisCOMMENT
LOWscripts/regression.py163 # TODO: implement proper timing for each taskCOMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHlm_eval/tasks/bbq/utils.py75 # Unfortunately, bias score for `n_non_unk = 0` is undefined,COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHlm_eval/tasks/arabic_leaderboard_complete/README.md181* `arabic_leaderboard_acva`: Arabic-Culture-Value-Alignment (ACVA) is a yes/no question dataset, generated by GPT3.5 TurCOMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_utils.py426 auth_token="dummy-token",CODE
LOW⚡tests/test_utils.py429 assert tokenizer.headers["Authorization"] == "Bearer dummy-token"CODE
LOW⚡tests/test_utils.py451 auth_token="dummy-token",CODE
LOW⚡tests/test_utils.py454 assert tokenizer.headers["Authorization"] == "Bearer dummy-token"CODE
LOWtests/test_utils.py476 auth_token="dummy-token",CODE
LOWtests/test_utils.py516 auth_token="dummy-token",CODE
LOWtests/test_utils.py541 auth_token="dummy-token",CODE
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMlm_eval/models/hf_vlms.py413CODE
MEDIUMlm_eval/models/hf_vlms.py414CODE
MEDIUMlm_eval/models/hf_vlms.py435CODE