AI Slop Code RIsk Monitor

open-compass/opencompass

OpenCompass is an LLM evaluation platform, supporting a wide range of models from OpenAI, Anthropic, Gemini, Qwen, GLM, DeepSeek, etc, across 100+ datasets covering knowledge, reasoning, coding, science, language, long-context, and safety.

34.2 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for open-compass/opencompass, a Python project with 7,508 GitHub stars. SynthScan examined 311,675 lines of code across 3606 source files, recording 6848 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 34.2 (High 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.

34.2
Adjusted Signal
34.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
7.5K
Stars
Python
Language
311.7K
Lines of Code
3.6K
Files
6.8K
Pattern Hits
2026-10-12
Scan Date
0.21
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 30.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 38.8/100 · MEDIUM

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

Agent Over-Engineering Ratio 63.9/100 · HIGH

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

PR Review Velocity Impact 84.7/100 · CRITICAL

Which changes need focused human review? 6848 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 770MEDIUM 492LOW 5586

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 6848 distinct pattern matches across 23 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 Repetition644 hits · 3220 pts
SeverityFileLineSnippetContext
HIGHtests/TESTING_GUIDE.md0test that dataset can be initialized with proper configuration.STRING
HIGHtests/datasets/test_beyondaime.py0test that dataset can be initialized with proper configuration.STRING
HIGHtests/datasets/test_aime2025.py0test that dataset can be initialized with proper configuration.STRING
HIGHtests/openicl/test_icl_chatml_inferencer_parallel.py0test _resolve_max_workers uses default calculation.STRING
HIGHtests/openicl/test_icl_gen_inferencer_parallel.py0test _resolve_max_workers uses default calculation.STRING
HIGHtests/openicl/test_icl_chat_inferencer_parallel.py0test _resolve_max_workers uses default calculation.STRING
HIGHdocs/zh_cn/faq/prompt_attack.md0{adv_prompt} sentence 1: {sentence1} sentence 2: {sentence2} answer:STRING
HIGHdocs/en/faq/prompt_attack.md0{adv_prompt} sentence 1: {sentence1} sentence 2: {sentence2} answer:STRING
HIGH…gs/datasets/promptbench/promptbench_wnli_gen_50662f.py0{adv_prompt} sentence 1: {sentence1} sentence 2: {sentence2} answer:STRING
HIGHdocs/zh_cn/evaluation/llm_judge.md0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGHdocs/zh_cn/evaluation/cascade_evaluator.md0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGHdocs/en/evaluation/llm_judge.md0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGHdocs/en/evaluation/cascade_evaluator.md0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGHexamples/eval_llm_judge.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…compass/configs/datasets/HLE/hle_verified_rawprompt.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…nfigs/datasets/HLE/hle_biomed_llm_verify_gen_6ff468.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…mpass/configs/datasets/HLE/hle_llmverify_gen_6ff468.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…igs/datasets/HLE/hle_llmverify_rawprompt_gen_0970dd.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…ts/OlymMATH/olymmath_llmverify_rawprompt_gen_9d3a8e.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…/datasets/OlymMATH/olymmath_cascade_eval_gen_97b203.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…igs/datasets/OlymMATH/olymmath_llmverify_gen_97b203.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…/datasets/aime2026/aime2026_cascade_eval_gen_6ff468.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…aime2026/aime2026_cascade_eval_rawprompt_gen_0970dd.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…hmmt2026/hmmt2026_cascade_eval_rawprompt_gen_0970dd.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…/datasets/hmmt2026/hmmt2026_cascade_eval_gen_6ff468.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…igs/datasets/matbench/matbench_llm_judge_gen_0e9276.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…s/datasets/omni_math/omni_math_llmverify_gen_ccf9c0.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…atasets/omni_math/omni_math_cascade_eval_gen_ccf9c0.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGHexamples/eval_cascade_evaluator.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…figs/datasets/math/math_500_cascade_eval_gen_6ff468.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…tasets/math/math_prm800k_500_0shot_cot_academic_gen.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…ass/configs/datasets/math/math_llm_judge_gen_56606f.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…h_prm800k_500_0shot_nocot_genericllmeval_gen_63a000.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…ets/math/math_500_cascade_eval_rawprompt_gen_0970dd.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…th/math_prm800k_500_0shot_nocot_llmjudge_gen_63a000.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…h_prm800k_500_0shot_nocot_genericllmeval_gen_6ff468.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…/configs/datasets/math/math_500_llmjudge_gen_6ff468.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…/math/math_prm800k_500_llmverify_repeat4_gen_97b203.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…datasets/math/math_prm800k_500_llmverify_gen_6ff468.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…m800k_500_0shot_nocot_genericllmeval_xml_gen_63a000.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…mpiadBench/OlympiadBench_0shot_llmverify_gen_be8b13.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…adBench/OlympiadBench_0shot_cascade_eval_gen_be8b13.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…dBench/OlympiadBenchMath_0shot_llmverify_gen_9c22f2.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…/OlympiadBench_0shot_llmverify_rawprompt_gen_d3e9e4.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…CARDBiomedBench/CARDBiomedBench_llmjudge_gen_99a231.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…Bench/CARDBiomedBench_llmjudge_rawprompt_gen_b4d90c.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…tasets/R_Bench/rbench_llmjudge_rawprompt_gen_c24221.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…configs/datasets/R_Bench/rbench_llmjudge_gen_c89350.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…asets/BeyondAIME/beyondaime_cascade_eval_gen_5e9f4f.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…/configs/datasets/chatobj_custom/chatobj_custom_gen.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…ivemathbench/livemathbench_hard_llmjudge_gen_71eaf5.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…h/livemathbench_hard_custom_cascade_eval_gen_4bce59.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…bench_hard_custom_cascade_eval_rawprompt_gen_e1ce64.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…ench/livemathbench_hard_custom_llmverify_gen_85d0ef.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…figs/datasets/aime2025/aime2025_llmjudge_gen_5e9f4f.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…/datasets/aime2025/aime2025_cascade_eval_gen_5e9f4f.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…aime2025/aime2025_cascade_eval_rawprompt_gen_2f2c96.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…ets/aime2024/aime2024_llmverify_repeat16_gen_bf7475.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…figs/datasets/aime2024/aime2024_llmjudge_gen_5e9f4f.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
HIGH…sets/aime2024/aime2024_llmverify_repeat8_gen_e8fcee.py0please as a grading expert, judge whether the final answers given by the candidates below are consistent with the standaSTRING
584 more matches not shown…
Unused Imports3346 hits · 2974 pts
SeverityFileLineSnippetContext
LOWtests/datasets/test_local_datasets.py24CODE
LOWtests/datasets/test_local_datasets.py26CODE
LOWtests/datasets/test_local_datasets.py28CODE
LOWtests/datasets/test_local_datasets.py30CODE
LOWtests/datasets/test_local_datasets.py32CODE
LOWtests/datasets/test_local_datasets.py34CODE
LOWtests/datasets/test_local_datasets.py36CODE
LOWtests/datasets/test_local_datasets.py38CODE
LOWtests/datasets/test_local_datasets.py39CODE
LOWtests/datasets/test_local_datasets.py40CODE
LOWtests/datasets/test_local_datasets.py42CODE
LOWtests/datasets/test_local_datasets.py44CODE
LOWtests/datasets/test_local_datasets.py45CODE
LOWtests/datasets/test_local_datasets.py47CODE
LOWtests/datasets/test_local_datasets.py49CODE
LOWtests/datasets/test_local_datasets.py51CODE
LOWtests/datasets/test_local_datasets.py53CODE
LOWtests/datasets/test_local_datasets.py55CODE
LOWtests/datasets/test_local_datasets.py57CODE
LOWtests/datasets/test_local_datasets.py59CODE
LOWtests/datasets/test_local_datasets.py61CODE
LOWtests/datasets/test_local_datasets.py63CODE
LOWtests/datasets/test_local_datasets.py65CODE
LOWtests/datasets/test_local_datasets.py67CODE
LOWtests/datasets/test_local_datasets.py68CODE
LOWtests/datasets/test_local_datasets.py70CODE
LOWtests/datasets/test_local_datasets.py72CODE
LOWtests/datasets/test_local_datasets.py74CODE
LOWtests/datasets/test_local_datasets.py76CODE
LOWtests/datasets/test_local_datasets.py78CODE
LOWtests/datasets/test_local_datasets.py80CODE
LOWtests/datasets/test_local_datasets.py82CODE
LOWtests/datasets/test_local_datasets.py84CODE
LOWtests/datasets/test_local_datasets.py86CODE
LOWtests/datasets/test_local_datasets.py88CODE
LOWtests/datasets/test_local_datasets.py90CODE
LOWtests/datasets/test_local_datasets.py92CODE
LOWtests/datasets/test_local_datasets.py94CODE
LOWtests/datasets/test_local_datasets.py96CODE
LOWtests/datasets/test_local_datasets.py98CODE
LOWtests/datasets/test_local_datasets.py100CODE
LOWtests/datasets/test_local_datasets.py102CODE
LOWtests/datasets/test_local_datasets.py104CODE
LOWtests/datasets/test_local_datasets.py106CODE
LOWtests/datasets/test_local_datasets.py108CODE
LOWtests/datasets/test_local_datasets.py110CODE
LOWtests/datasets/test_local_datasets.py111CODE
LOWtests/datasets/test_local_datasets.py113CODE
LOWtests/datasets/test_local_datasets.py115CODE
LOWtests/datasets/test_local_datasets.py117CODE
LOWtests/datasets/test_local_datasets.py119CODE
LOWtests/datasets/test_local_datasets.py121CODE
LOWtests/datasets/test_local_datasets.py123CODE
LOWtests/datasets/test_local_datasets.py125CODE
LOWtests/datasets/test_local_datasets.py127CODE
LOWtests/datasets/test_local_datasets.py129CODE
LOWtests/datasets/test_local_datasets.py131CODE
LOWtests/datasets/test_local_datasets.py133CODE
LOWtests/datasets/test_local_datasets.py135CODE
LOWtests/datasets/test_local_datasets.py137CODE
3286 more matches not shown…
Decorative Section Separators305 hits · 1149 pts
SeverityFileLineSnippetContext
MEDIUMopencompass/datasets/zebralogic.py155# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/zebralogic.py157# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/SciReasoner1_5.py611# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/SciReasoner1_5.py620# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py94# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py220# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py222# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py291# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/subjective/elbench.py293# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…pass/datasets/moleculariq/moleculariq_core/__init__.py112# =============================================================================COMMENT
MEDIUM⚡…pass/datasets/moleculariq/moleculariq_core/__init__.py114# =============================================================================COMMENT
MEDIUM…pass/datasets/moleculariq/moleculariq_core/__init__.py56# =============================================================================COMMENT
MEDIUM…pass/datasets/moleculariq/moleculariq_core/__init__.py58# =============================================================================COMMENT
MEDIUM…pass/datasets/moleculariq/moleculariq_core/__init__.py75# =============================================================================COMMENT
MEDIUM…pass/datasets/moleculariq/moleculariq_core/__init__.py77# =============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py53 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py55 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py60 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py62 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py128 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py130 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py134 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py136 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py143 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py145 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py231 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py233 # ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py251# ============================================================================COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py253# ============================================================================COMMENT
MEDIUM…iq/moleculariq_core/rewards/property_solver_mapping.py13 # ============================================================================COMMENT
MEDIUM…iq/moleculariq_core/rewards/property_solver_mapping.py15 # ============================================================================COMMENT
MEDIUM…iq/moleculariq_core/rewards/property_solver_mapping.py115 # ============================================================================COMMENT
MEDIUM…iq/moleculariq_core/rewards/property_solver_mapping.py117 # ============================================================================COMMENT
MEDIUM⚡…eculariq/moleculariq_core/rewards/constraint_reward.py194 # ============================================================================COMMENT
MEDIUM⚡…eculariq/moleculariq_core/rewards/constraint_reward.py196 # ============================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py84 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py86 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py217 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py219 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py381 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py383 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py576 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py578 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py891 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py893 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py961 # ========================================================================COMMENT
MEDIUM…atasets/moleculariq/moleculariq_core/_nlp/formatter.py963 # ========================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py17# ============================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py19# ============================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py83# ============================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py85# ============================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py507# ============================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py509# ============================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py812# ============================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py814# ============================================================================COMMENT
245 more matches not shown…
Hyper-Verbose Identifiers924 hits · 891 pts
SeverityFileLineSnippetContext
LOW⚡tools/analyze_repeat.py71def collect_predictions_by_benchmark(STRING
LOWtools/convert_alignmentbench.py10def extract_predictions_from_json(input_folder):CODE
LOWtests/TESTING_GUIDE.md141def test_load_returns_dataset(self):CODE
LOWtests/TESTING_GUIDE.md186 def test_load_returns_dataset(self, mock_load_dataset):CODE
LOWtests/TESTING_GUIDE.md236 def test_load_reads_jsonl_file(self, mock_get_data_path):CODE
LOWtests/TESTING_GUIDE.md258 def test_dataset_initialization(self, mock_get_data_path):CODE
LOWtests/TESTING_GUIDE.md296 def test_score_correct_prediction(self):CODE
LOWtests/TESTING_GUIDE.md303 def test_score_incorrect_prediction(self):CODE
LOWtests/TESTING_GUIDE.md354 def test_accuracy_calculation(self):CODE
LOWtests/TESTING_GUIDE.md418 def test_result_statistics_consistency(self):CODE
LOWtests/TESTING_GUIDE.md459 def test_details_count_matches_total_samples(self):CODE
LOWtests/TESTING_GUIDE.md469 def test_result_metrics_completeness(self):CODE
LOWtests/TESTING_GUIDE_zh-CN.md143def test_load_returns_dataset(self):CODE
LOWtests/TESTING_GUIDE_zh-CN.md188 def test_load_returns_dataset(self, mock_load_dataset):CODE
LOWtests/TESTING_GUIDE_zh-CN.md238 def test_load_reads_jsonl_file(self, mock_get_data_path):CODE
LOWtests/TESTING_GUIDE_zh-CN.md260 def test_dataset_initialization(self, mock_get_data_path):CODE
LOWtests/TESTING_GUIDE_zh-CN.md298 def test_score_correct_prediction(self):CODE
LOWtests/TESTING_GUIDE_zh-CN.md305 def test_score_incorrect_prediction(self):CODE
LOWtests/TESTING_GUIDE_zh-CN.md356 def test_accuracy_calculation(self):CODE
LOWtests/TESTING_GUIDE_zh-CN.md420 def test_result_statistics_consistency(self):CODE
LOWtests/TESTING_GUIDE_zh-CN.md461 def test_details_count_matches_total_samples(self):CODE
LOWtests/TESTING_GUIDE_zh-CN.md471 def test_result_metrics_completeness(self):CODE
LOWtests/evaluator/test_cascade_evaluator.py43 def test_sample_score_without_test_set_argument(self):CODE
LOWtests/evaluator/test_cascade_evaluator.py54 def test_sample_score_with_test_set_argument(self):CODE
LOWtests/partitioners/test_size.py39 def test_get_actual_size_handles_supported_test_range_types(self):CODE
LOWtests/partitioners/test_size.py61 def test_get_cost_handles_non_string_test_range(self):CODE
LOWtests/partitioners/test_base_partitioner.py24 def test_initialization_with_custom_keep_keys(self):CODE
LOWtests/partitioners/test_base_partitioner.py31 def test_parse_model_dataset_args(self):CODE
LOWtests/partitioners/test_base_partitioner.py46 def test_parse_model_dataset_args_with_combinations(self):CODE
LOWtests/partitioners/test_naive.py35 def test_initialization_with_custom_n(self):CODE
LOWtests/partitioners/test_naive.py41 def test_partition_creates_tasks(self, mock_exists):CODE
LOWtests/partitioners/test_naive.py64 def test_partition_with_n_greater_than_one(self, mock_exists):CODE
LOWtests/partitioners/test_naive.py95 def test_partition_skips_existing_files(self, mock_exists):CODE
LOWtests/partitioners/test_naive.py128 def test_partition_with_add_cfg(self):CODE
LOW⚡tests/tasks/test_openicl_infer_concurrent.py48 def test_remaining_without_total(self):CODE
LOW⚡tests/tasks/test_openicl_infer_concurrent.py53 def test_remaining_with_total(self):CODE
LOW⚡tests/tasks/test_openicl_infer_concurrent.py60 def test_remaining_negative_protection(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py152 def test_initialization_with_defaults(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py174 def test_get_command_single_gpu(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py189 def test_get_command_multi_gpu(self, mock_randint):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py217 def test_get_command_with_backend(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py250 def test_inferencer_name_from_string(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py256 def test_inferencer_name_from_class(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py273 def test_set_default_value_existing(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py281 def test_build_inferencer_gen(self, mock_registry):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py306 def test_build_inferencer_chat(self, mock_registry):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py330 def test_build_inferencer_unsupported(self, mock_registry):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py366 def test_remaining_total_with_none(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py383 def test_run_dataset_task_success(self, mock_mkdir, mock_get_path,CODE
LOWtests/tasks/test_openicl_infer_concurrent.py439 def test_run_dataset_task_non_api_model(self, mock_build_dataset):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py469 def test_run_dataset_task_missing_template(self, mock_build_dataset):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py507 def test_run_skips_existing_output(self, mock_task_abbr, mock_get_path,CODE
LOWtests/tasks/test_openicl_infer_concurrent.py557 def test_run_with_max_workers_config(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py577 def test_run_reports_failure_after_all_task_groups(self, mock_get_path,CODE
LOWtests/tasks/test_openicl_infer_concurrent.py608 def test_run_task_group_returns_failed_status(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py626 def test_build_inferencer_with_max_infer_workers(self, mock_registry):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py647 def test_build_inferencer_with_model_config(self, mock_registry):CODE
LOWtests/tasks/test_base_task.py14 def deperacated_test_extract_role_pred_function_source(self):CODE
LOWtests/tasks/test_base_task.py39 def deperacated_test_extract_role_pred_with_begin_and_end(self):CODE
LOW⚡tests/tasks/test_base_task.py50 def deperacated_test_extract_role_pred_with_begin_only(self):CODE
864 more matches not shown…
Deep Nesting583 hits · 570 pts
SeverityFileLineSnippetContext
LOWsetup.py20CODE
LOWsetup.py51CODE
LOWsetup.py85CODE
LOWsetup.py93CODE
LOWtools/analyze_repeat.py71CODE
LOWtools/prompt_viewer.py51CODE
LOWtools/collect_code_preds.py130CODE
LOWtools/chatml_format_test.py17CODE
LOWtools/chatml_format_test.py37CODE
LOWtests/datasets/test_longbenchv2_config.py7CODE
LOWtests/datasets/test_local_datasets.py464CODE
LOWtests/datasets/test_local_datasets.py345CODE
LOWtests/datasets/test_vlmevalkit.py459CODE
LOWtests/datasets/test_vlmevalkit.py604CODE
LOWautotest/utils/compare_results.py74CODE
LOWautotest/utils/compare_results.py214CODE
LOWautotest/utils/compare_results.py272CODE
LOWautotest/utils/compare_results.py565CODE
LOWautotest/utils/oc_score_assert.py145CODE
LOWdocs/zh_cn/statis.py27CODE
LOWdocs/en/statis.py27CODE
LOWopencompass/metrics/mme_score.py48CODE
LOWopencompass/evaluator/math_evaluator.py167CODE
LOWopencompass/evaluator/cascade_evaluator.py107CODE
LOWopencompass/evaluator/cascade_evaluator.py128CODE
LOWopencompass/partitioners/sub_size.py73CODE
LOWopencompass/partitioners/num_worker.py55CODE
LOWopencompass/partitioners/sub_naive.py52CODE
LOWopencompass/partitioners/sub_naive.py157CODE
LOWopencompass/partitioners/naive.py31CODE
LOWopencompass/partitioners/size.py53CODE
LOWopencompass/partitioners/sub_num_worker.py68CODE
LOWopencompass/partitioners/base.py40CODE
LOWopencompass/partitioners/base.py104CODE
LOWopencompass/tasks/openicl_infer_concurrent.py154CODE
LOWopencompass/tasks/openicl_infer_concurrent.py256CODE
LOWopencompass/tasks/openicl_eval.py257CODE
LOWopencompass/summarizers/needlebench.py150CODE
LOWopencompass/summarizers/needlebench.py428CODE
LOWopencompass/summarizers/needlebench.py610CODE
LOWopencompass/summarizers/needlebench.py675CODE
LOWopencompass/summarizers/needlebench.py692CODE
LOWopencompass/summarizers/default_subjective.py73CODE
LOWopencompass/summarizers/default_subjective.py176CODE
LOWopencompass/summarizers/default_subjective.py273CODE
LOWopencompass/summarizers/summarizer_pretrain.py34CODE
LOWopencompass/summarizers/multi_model.py125CODE
LOWopencompass/summarizers/circular.py22CODE
LOWopencompass/summarizers/default.py67CODE
LOWopencompass/summarizers/default.py138CODE
LOWopencompass/summarizers/default.py259CODE
LOWopencompass/summarizers/llm_compression.py27CODE
LOWopencompass/summarizers/subjective/compassbench_v13.py57CODE
LOWopencompass/summarizers/subjective/compassbench_v13.py124CODE
LOWopencompass/summarizers/subjective/wildbench.py167CODE
LOWopencompass/summarizers/subjective/wildbench.py237CODE
LOW…/summarizers/subjective/compass_arena_bradley_terry.py446CODE
LOW…/summarizers/subjective/compass_arena_bradley_terry.py516CODE
LOW…/summarizers/subjective/compass_arena_bradley_terry.py648CODE
LOWopencompass/summarizers/subjective/charm.py39CODE
523 more matches not shown…
Excessive Try-Catch Wrapping461 hits · 532 pts
SeverityFileLineSnippetContext
LOW⚡tools/analyze_repeat.py47 except Exception:STRING
LOW⚡tools/analyze_repeat.py57 except Exception:STRING
LOW⚡tools/analyze_repeat.py65 except Exception:STRING
LOWtools/convert_alignmentbench.py27 except Exception as e:CODE
LOWtools/update_dataset_suffix.py83 except Exception:CODE
LOWtools/chatml_format_test.py53 except Exception as e:CODE
LOWtests/datasets/test_local_datasets.py327 except Exception:CODE
LOWtests/datasets/test_local_datasets.py358 except Exception as exception:CODE
LOWtests/datasets/test_local_datasets.py418 except Exception as e:CODE
LOWautotest/all/chat_obj_fullbench_v2.py485 except Exception:CODE
LOWautotest/all/chat_obj_fullbench_v1.py342 except Exception:CODE
LOWopencompass/evaluator/math_evaluator.py51 except Exception as e:CODE
LOWopencompass/evaluator/math_evaluator.py180 except Exception as e:CODE
LOWopencompass/evaluator/math_evaluator.py188 except Exception as e:CODE
LOWopencompass/evaluator/math_evaluator.py207 except Exception as e:CODE
MEDIUMopencompass/evaluator/math_evaluator.py86def score(self, predictions, references, test_set=None):CODE
LOWopencompass/partitioners/base.py77 except Exception:CODE
LOWopencompass/tasks/openicl_infer_concurrent.py238 except Exception as e:CODE
LOWopencompass/tasks/openicl_eval.py183 except Exception as e:CODE
LOWopencompass/tasks/openicl_eval.py345 except Exception as e:CODE
LOWopencompass/summarizers/subjective/alpacaeval.py46 except Exception as e:STRING
LOWopencompass/summarizers/subjective/alpacaeval.py70 except Exception as e:STRING
LOWopencompass/summarizers/subjective/followbench.py58 except Exception as e:CODE
LOWopencompass/datasets/srbench.py145 except Exception as e:CODE
LOWopencompass/datasets/srbench.py169 except Exception:CODE
LOWopencompass/datasets/srbench.py234 except Exception as e:CODE
LOWopencompass/datasets/srbench.py252 except Exception as e:CODE
MEDIUMopencompass/datasets/srbench.py161def is_symbolically_equivalent(self, formula1, formula2, n_var=2):CODE
LOWopencompass/datasets/OpenSWI.py48 except Exception:CODE
LOWopencompass/datasets/ds1000.py251 except Exception:CODE
LOWopencompass/datasets/ds1000.py263 except Exception:CODE
LOWopencompass/datasets/ds1000.py442 except Exception:CODE
LOWopencompass/datasets/ds1000.py447 except Exception:CODE
LOWopencompass/datasets/taco.py186 except Exception as e:CODE
LOWopencompass/datasets/taco.py352 except Exception as e:CODE
LOWopencompass/datasets/taco.py397 except Exception as e:CODE
LOWopencompass/datasets/taco.py474 except Exception as e:CODE
LOWopencompass/datasets/taco.py506 except Exception as e:CODE
LOWopencompass/datasets/taco.py552 except Exception as e:CODE
LOWopencompass/datasets/taco.py582 except Exception as e:CODE
LOWopencompass/datasets/taco.py615 except Exception as e:CODE
LOWopencompass/datasets/taco.py626 except Exception:CODE
LOWopencompass/datasets/taco.py637 except Exception:CODE
LOWopencompass/datasets/taco.py654 except Exception as e:CODE
LOWopencompass/datasets/taco.py678 except Exception as e:CODE
LOWopencompass/datasets/taco.py691 except Exception as e:CODE
LOWopencompass/datasets/s2_tomg_bench.py110 except Exception:CODE
LOWopencompass/datasets/s2_tomg_bench.py126 except Exception:CODE
LOWopencompass/datasets/s2_tomg_bench.py141 except Exception:CODE
LOWopencompass/datasets/gsm8k.py58 except Exception:CODE
LOWopencompass/datasets/gsm8k.py97 except Exception:CODE
LOWopencompass/datasets/gsm8k.py106 except Exception:CODE
MEDIUMopencompass/datasets/gsm8k.py54def is_equal(self, pred, refer):CODE
MEDIUMopencompass/datasets/gsm8k.py93def is_equal(self, pred, refer):CODE
MEDIUMopencompass/datasets/gsm8k.py101def soft_equal(self, pred, refer, step):CODE
LOW⚡opencompass/datasets/humanevalx.py162 except Exception:CODE
LOW⚡opencompass/datasets/humanevalx.py167 except Exception:CODE
LOW⚡opencompass/datasets/humanevalx.py177 except Exception:CODE
LOWopencompass/datasets/zebralogic.py208 except Exception:CODE
LOWopencompass/datasets/zebralogic.py215 except Exception:CODE
401 more matches not shown…
Empty Error Handlers78 hits · 390 pts
SeverityFileLineSnippetContext
HIGHtools/analyze_repeat.py47except Exception:CODE
HIGHtools/analyze_repeat.py57except Exception:CODE
HIGHtools/analyze_repeat.py65except Exception:CODE
HIGHautotest/all/chat_obj_fullbench_v2.py485except Exception:CODE
HIGHautotest/all/chat_obj_fullbench_v1.py342except Exception:CODE
HIGHautotest/utils/compare_results.py81except json.JSONDecodeError:CODE
HIGHexamples/eval_qwen3.py75except:CODE
HIGHopencompass/datasets/taco.py755except SystemExit:CODE
HIGHopencompass/datasets/taco.py626except Exception:CODE
HIGHopencompass/datasets/taco.py637except Exception:CODE
HIGHopencompass/datasets/gsm8k.py58except Exception:CODE
HIGHopencompass/datasets/gsm8k.py97except Exception:CODE
HIGHopencompass/datasets/gsm8k.py106except Exception:CODE
HIGHopencompass/datasets/humanevalx.py177except Exception:CODE
HIGHopencompass/datasets/zebralogic.py208except Exception:CODE
HIGHopencompass/datasets/math401.py26except Exception:CODE
HIGHopencompass/datasets/advancedIF.py141except json.JSONDecodeError:CODE
HIGHopencompass/datasets/advancedIF.py86except (json.JSONDecodeError, TypeError):CODE
HIGHopencompass/datasets/apps.py794except SystemExit:CODE
HIGHopencompass/datasets/apps.py665except Exception:CODE
HIGHopencompass/datasets/apps.py676except Exception:CODE
HIGHopencompass/datasets/SciReasoner1_5.py104except Exception:CODE
HIGHopencompass/datasets/SciReasoner1_5.py133except Exception:CODE
HIGHopencompass/datasets/SciReasoner1_5.py59except json.JSONDecodeError:CODE
HIGHopencompass/datasets/mmlu_pro.py53except Exception:CODE
HIGHopencompass/datasets/math.py499except Exception:CODE
HIGHopencompass/datasets/math.py507except Exception:CODE
HIGHopencompass/datasets/OlympiadBench.py399except Exception: # 处理具体异常CODE
HIGHopencompass/datasets/OlympiadBench.py408except Exception: # 处理具体异常CODE
HIGHopencompass/datasets/OlympiadBench.py415except Exception: # 处理具体异常CODE
HIGHopencompass/datasets/dingo.py115except Exception:CODE
HIGHopencompass/datasets/humaneval.py221except Exception:CODE
HIGHopencompass/datasets/LCBench.py207except Exception:CODE
HIGHopencompass/datasets/vlmevalkit/dataset.py27except (TypeError, ValueError):CODE
HIGHopencompass/datasets/TheoremQA/number_utils.py58except Exception:CODE
HIGHopencompass/datasets/PMMEval/humanevalxl.py156except Exception:CODE
HIGHopencompass/datasets/codecompass/executor.py38except Exception:CODE
HIGHopencompass/datasets/moleculariq/moleculariq.py56except json.JSONDecodeError:CODE
HIGHopencompass/datasets/moleculariq/moleculariq.py51except json.JSONDecodeError:CODE
HIGHopencompass/datasets/moleculariq/moleculariq.py62except json.JSONDecodeError:CODE
HIGH…eculariq/moleculariq_core/rewards/constraint_reward.py96except json.JSONDecodeError:CODE
HIGH…atasets/moleculariq/moleculariq_core/_nlp/formatter.py193except (json.JSONDecodeError, TypeError):CODE
HIGHopencompass/datasets/teval/utils/format_load.py28except Exception as e:CODE
HIGHopencompass/datasets/teval/utils/format_load.py34except Exception as e:CODE
HIGHopencompass/datasets/teval/utils/format_load.py40except Exception as e:CODE
HIGHopencompass/datasets/livecodebench/testing_util.py724except SystemExit as e: # noqa: F841CODE
HIGHopencompass/datasets/livecodebench/testing_util.py164except Exception as e: # noqa:CODE
HIGHopencompass/datasets/livecodebench/testing_util.py519except Exception as e: # noqa: F841CODE
HIGHopencompass/datasets/livecodebench/testing_util.py539except Exception as e: # noqa: F841CODE
HIGHopencompass/datasets/mp20/mp20.py82except json.JSONDecodeError:CODE
HIGHopencompass/datasets/mp20/mp20.py92except Exception:CODE
HIGHopencompass/datasets/mp20/mp20.py62except json.JSONDecodeError:CODE
HIGHopencompass/datasets/matbench/post_process.py113except ValueError:CODE
HIGHopencompass/datasets/matbench/post_process.py121except ValueError:CODE
HIGHopencompass/datasets/matbench/post_process.py129except ValueError:CODE
HIGH…ncompass/datasets/SciReasoner/bulk_modulus_material.py141except Exception:CODE
HIGH…encompass/datasets/SciReasoner/composition_material.py191except Exception:CODE
HIGHopencompass/datasets/SciReasoner/LLM4Mat.py115except Exception:CODE
HIGHopencompass/datasets/SciReasoner/LLM4Mat.py217except Exception:CODE
HIGHopencompass/utils/datasets.py86except Exception as e: # noqaCODE
18 more matches not shown…
Modern AI Meta-Vocabulary70 hits · 172 pts
SeverityFileLineSnippetContext
MEDIUMdocs/zh_cn/faq/index.md20### OpenCompass 如何控制 few shot 评测的 shot 数目?COMMENT
MEDIUMdocs/zh_cn/faq/index.md24另一方面,in context 的样本也可以直接在数据集的模板中指定,在该情况下亦会搭配使用 `ZeroRetriever`,但此时的评测并不是 0-shot,而需要根据具体的模板来进行确定。具体请看[提示词模板中的 Few-shot 小节CODE
MEDIUMdocs/zh_cn/faq/evaluation_lmdeploy.md70 # the max size of the context windowCOMMENT
MEDIUMdocs/en/faq/index.md20### How does OpenCompass control the shot count of few-shot evaluation?COMMENT
MEDIUMdocs/en/faq/index.md24However, in-context examples can also be written directly in the dataset template. Such a configuration also uses `ZeroRCODE
MEDIUMdocs/en/faq/evaluation_lmdeploy.md70 # the max size of the context windowCOMMENT
MEDIUMopencompass/datasets/CARDBiomedBench.py29 pass # TODO: Implement few-shot promptCODE
MEDIUMopencompass/datasets/nejmaibench.py61 pass # TODO: Implement few-shot prompt handlingCODE
MEDIUMopencompass/datasets/medmcqa.py43 pass # TODO: Implement few-shot promptCODE
MEDIUMopencompass/datasets/MedCalc_Bench.py245 pass # TODO: Implement few-shot promptCODE
MEDIUMopencompass/datasets/MedXpertQA.py30 pass # TODO: Implement few-shot promptCODE
MEDIUMopencompass/datasets/SciKnowEval.py47 pass # TODO: Implement few-shot promptCODE
MEDIUMopencompass/datasets/Medbullets.py56 pass # TODO: Implement few-shot prompt handlingCODE
MEDIUMopencompass/datasets/medbench/dataset_loader.py67# process few-shot raw_promptsCOMMENT
MEDIUMopencompass/datasets/medbench/dataset_loader.py240 # process demo once if it is few-shot-CoTCOMMENT
MEDIUMopencompass/datasets/medbench/dataset_loader.py327 setting_name = 'zero-shot' # setting_name can be chosen from ["zero-shot", "zero-shot-CoT", "few-shot-CoT"]CODE
MEDIUMopencompass/datasets/medbench/post_process.py171 # if setting_name == 'few-shot-CoT':COMMENT
MEDIUMopencompass/datasets/medbench/post_process.py194 # all other datasets are QA problems with single answer and setting_name are few-shotCOMMENT
MEDIUM…ss/datasets/moleculariq/moleculariq_core/properties.py57 # BRICS / scaffoldCOMMENT
MEDIUM…ss/datasets/moleculariq/moleculariq_core/properties.py198 # BRICS / scaffoldCOMMENT
MEDIUM…ss/datasets/moleculariq/moleculariq_core/properties.py268 # BRICS / scaffoldCOMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py236 # Murcko scaffold (3 different methods for different purposes)COMMENT
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py240 ), # Atom count in scaffoldCODE
MEDIUM⚡…iq/moleculariq_core/rewards/property_solver_mapping.py248 ), # SMILES string of scaffoldCODE
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py368 # BRICS and scaffoldCOMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py761 # BRICS and scaffold positionsCOMMENT
MEDIUM⚡…datasets/moleculariq/moleculariq_core/solver/solver.py1859 # Get the scaffoldCOMMENT
MEDIUM⚡…datasets/moleculariq/moleculariq_core/solver/solver.py1864 # Find matching atoms between original molecule and scaffoldCOMMENT
MEDIUM⚡…datasets/moleculariq/moleculariq_core/solver/solver.py1865 # We need to do a substructure match to map scaffold atoms to original indicesCOMMENT
MEDIUM⚡…datasets/moleculariq/moleculariq_core/solver/solver.py1869 # If direct match fails, try to find the scaffold atoms differentlyCOMMENT
MEDIUM⚡…datasets/moleculariq/moleculariq_core/solver/solver.py1870 # Get the scaffold SMILES and match it backCOMMENT
MEDIUMopencompass/datasets/agieval/dataset_loader.py94# process few-shot raw_promptsCOMMENT
MEDIUMopencompass/datasets/agieval/dataset_loader.py294 # process demo once if it is few-shot-CoTCOMMENT
MEDIUMopencompass/datasets/agieval/dataset_loader.py396 setting_name = 'few-shot-CoT' # setting_name can be chosen from ["zero-shot", "zero-shot-CoT", "few-shot-CoT"]CODE
MEDIUMopencompass/datasets/agieval/post_process.py192 # all other datasets are QA problems with single answer and setting_name are few-shotCOMMENT
MEDIUMopencompass/datasets/SciReasoner/bio_instruction.py179 # Hugging Face zero-shot pipeline默认按分数高低排序返回结果COMMENT
MEDIUM…ompass/openicl/icl_evaluator/icl_korbench_evaluator.py266# evaluator = korbenchEvaluator(question_type='logic', mode='zero-shot')COMMENT
MEDIUM…mpass/configs/datasets/MedBench/medbench_gen_0b4fff.py30 ), # retriver 不起作用,以输入参数为准 (zero-shot / few-shot)CODE
MEDIUM…mpass/configs/datasets/MedBench/medbench_gen_0b4fff.py54 ), # retriver 不起作用,以输入参数为准 (zero-shot / few-shot)CODE
MEDIUM…mpass/configs/datasets/MedBench/medbench_gen_0b4fff.py78 ), # retriver 不起作用,以输入参数为准 (zero-shot / few-shot)CODE
MEDIUM…mpass/configs/datasets/MedBench/medbench_gen_0b4fff.py102 ), # retriver 不起作用,以输入参数为准 (zero-shot / few-shot)CODE
MEDIUM…CARDBiomedBench/CARDBiomedBench_llmjudge_gen_99a231.py54 prompt=ZERO_SHOT_PROMPT, # prompt mode: zero-shotSTRING
MEDIUM…compass/configs/datasets/needlebench/atc/atc_choice.py84# Set few shot prompt numberCOMMENT
MEDIUM…datasets/needlebench/atc/atc_choice_50_en_reasoning.py71# Set few shot prompt numberCOMMENT
MEDIUM…pass/configs/datasets/needlebench/atc/atc_choice_20.py83# Set few shot prompt numberCOMMENT
MEDIUM…datasets/needlebench/atc/atc_choice_80_en_reasoning.py47# Set few shot prompt numberCOMMENT
MEDIUM…onfigs/datasets/advancedIF/advancedIF_rawprompt_gen.py29# Shared by CIF and CC subsets (zero-shot)COMMENT
MEDIUM…onfigs/datasets/advancedIF/advancedIF_rawprompt_gen.py309# System Steerability judge prompt (with few-shot examples)COMMENT
MEDIUM…ss/configs/datasets/llm_compression/llm_compression.py27 # Calculates cross entropy loss for each batch based on a sliding context windowCOMMENT
MEDIUM…igs/datasets/Earth_Silver/Earth_Silver_llmjudge_gen.py48 prompt=ZERO_SHOT_PROMPT, # prompt mode: zero-shotSTRING
MEDIUM…asets/Earth_Silver/Earth_Silver_llmjudge_gen_46140c.py45 prompt=ZERO_SHOT_PROMPT, # prompt mode: zero-shotSTRING
MEDIUM…configs/datasets/SciKnowEval/SciKnowEval_gen_ebe47d.py33 prompt=ZERO_SHOT_PROMPT, # prompt mode: zero-shotCODE
MEDIUM…atasets/SciKnowEval/SciKnowEval_llmjudge_gen_ebe47d.py59 prompt=ZERO_SHOT_PROMPT, # prompt mode: zero-shotSTRING
MEDIUM…compass/configs/datasets/agieval/agieval_gen_a0c741.py68 ), # retriver 不起作用,以输入参数为准 (zero-shot / few-shot)CODE
MEDIUM…configs/datasets/HealthBench/healthbench_gen_831613.py22 prompt='{prompt_trans}', # prompt mode: zero-shotCODE
MEDIUM…blic/knowledge/compassbench_v1_knowledge_gen_bd74e0.py44# Set few shot prompt numberCOMMENT
MEDIUM…s/nejm_ai_benchmark/nejmaibench_llmjudge_gen_60c8f5.py57 prompt=ZERO_SHOT_PROMPT, # prompt mode: zero-shotSTRING
MEDIUM…s/datasets/nejm_ai_benchmark/nejmaibench_gen_60c8f5.py34 prompt=ZERO_SHOT_PROMPT, # prompt mode: zero-shotCODE
MEDIUM…v1_1/knowledge/compassbench_v1_knowledge_gen_bd74e0.py44# Set few shot prompt numberCOMMENT
MEDIUM…s/configs/datasets/bbh/bbh_0shot_nocot_academic_gen.py75# For zero shot inference in bbhSTRING
10 more matches not shown…
Docstring Block Structure29 hits · 145 pts
SeverityFileLineSnippetContext
HIGH…datasets/moleculariq/moleculariq_core/_pools/loader.py29 Load a molecule pool by name. This function provides access to molecule pools for training and developmentSTRING
HIGH…atasets/moleculariq/moleculariq_core/_data/__init__.py19 Get the full path to a data file. Args: filename: Name of the data file Returns: Path to STRING
HIGHopencompass/datasets/teval/utils/template.py21Return a dictionary whose keys are from input template and value is responding content from input_string. Args:STRING
HIGH…ss/datasets/calm/data_processing/generate_questions.py9Returns the appropriate prompt generation function based on the given task. Args: task (str): The name STRING
HIGH…ss/datasets/calm/data_processing/generate_questions.py153Generates a list of questions from the dataset based on the specified prompt style. Args: dataset_path STRING
HIGHopencompass/datasets/calm/evaluation/core_metrics.py128Loads the labeling and accuracy functions dynamically based on the specified task for core metric computation. STRING
HIGHopencompass/datasets/calm/evaluation/core_metrics.py286Computes core metrics for a given set of items based on the ground truth items. Args: items (list): TheSTRING
HIGHopencompass/datasets/phybench/latex_pre_process.py111Removes all occurrences of a specified LaTeX-style command from a string. This function searches for a STRING
HIGHopencompass/datasets/phybench/latex_pre_process.py302Converts LaTeX vector syntax to a standardized form. This function processes a given text string and ensures that LSTRING
HIGHopencompass/datasets/phybench/EED.py74 Calculate the size of a subtree based on its total insertion cost. The function computes the size of a subtree STRING
HIGHopencompass/datasets/phybench/EED.py147 Convert a SymPy expression into a tree structure. This function takes a SymPy expression and recursively converSTRING
HIGHopencompass/datasets/phybench/EED.py254Computes the similarity score and distance metrics between two LaTeX expressions. This function evaluates the equivaSTRING
HIGH…compass/datasets/cmphysbench/SEED/latex_pre_process.py150 Removes all occurrences of a specified LaTeX-style command from a string using an iterative approach. ThisSTRING
HIGH…compass/datasets/cmphysbench/SEED/latex_pre_process.py360 Converts LaTeX vector syntax to a standardized form. This function processes a given text string and ensures tSTRING
HIGHopencompass/datasets/cmphysbench/SEED/SEED.py94 Calculate the size of a subtree based on its total insertion cost. The function computes the size of a subtreeSTRING
HIGHopencompass/datasets/cmphysbench/SEED/SEED.py235 Convert a SymPy expression into a tree structure. This function takes a SymPy expression and recursively coSTRING
HIGHopencompass/datasets/cmphysbench/SEED/SEED.py621 SEED (Scalable Expression Edit Distance) - Enhanced version of EED NEW FEATURES in SEED vs EED: Multi-type STRING
HIGH…in_generation/omegafold/utils/protein_utils/aaframe.py404 Apply the transformation on the input coordinates Args: pos (): the 3-D coordinates to traSTRING
HIGH…asets/livecodebench_pro/livecodebench_pro_evaluator.py252Submit code to the evaluation service. Args: pid (str): Problem ID lang (str): ProgrammSTRING
HIGHopencompass/utils/text_postprocessors.py254Extract content after the last reasoning tag from text. When only end token is present, returns content after the eSTRING
HIGHopencompass/utils/prompt.py83Replaces all instances of 'src' in the PromptList with 'dst'. Args: src (str): The string to be repSTRING
HIGHopencompass/utils/prompt.py108Replaces all instances of 'src' in the PromptList with 'dst'. Args: src (str): The string to be repSTRING
HIGHopencompass/utils/fileio.py30Read a JSON file and return its contents as a dictionary. Args: file_path: Path to the JSON file STRING
HIGHopencompass/utils/fileio.py55Read a JSONL file and return its contents as a list of dictionaries. Args: file_path: Path to the JSTRING
HIGH…ncompass/openicl/icl_inferencer/icl_base_inferencer.py65Perform In-Context Inference given a retriever and optional templates. Args: retriever (:obSTRING
HIGHopencompass/openicl/icl_evaluator/hf_metrics/rouge.py52 Calculates average rouge scores for a list of hypotheses and references Args: predictions: list of predictions to sSTRING
HIGHopencompass/openicl/icl_evaluator/hf_metrics/squad.py40 Computes SQuAD scores (F1 and EM). Args: predictions: List of question-answers dictionaries with the following key-STRING
HIGH…ncompass/openicl/icl_evaluator/hf_metrics/sacrebleu.py45 Produces BLEU scores along with its sufficient statistics from a source against one or more references. Args: predSTRING
HIGH…encompass/openicl/icl_evaluator/hf_metrics/accuracy.py33 Args: predictions (`list` of `int`): Predicted labels. references (`list` of `int`): Ground truth labels. nSTRING
AI Structural Patterns131 hits · 130 pts
SeverityFileLineSnippetContext
LOWopencompass/evaluator/math_evaluator.py127CODE
LOWopencompass/partitioners/sub_size.py40CODE
LOWopencompass/partitioners/sub_num_worker.py32CODE
LOW…/summarizers/subjective/compass_arena_bradley_terry.py446CODE
LOW…/summarizers/subjective/compass_arena_bradley_terry.py516CODE
LOW…/summarizers/subjective/compass_arena_bradley_terry.py620CODE
LOWopencompass/datasets/ProteinLMBench.py58CODE
LOWopencompass/datasets/simpleqa.py79CODE
LOWopencompass/datasets/gpqa.py63CODE
LOWopencompass/datasets/drop_simple_eval.py82CODE
LOWopencompass/datasets/gsm8k.py79CODE
LOWopencompass/datasets/gsm8k.py151CODE
LOWopencompass/datasets/SeedBench.py149CODE
LOWopencompass/datasets/ds1000_interpreter.py75CODE
LOWopencompass/datasets/critpt.py338CODE
LOWopencompass/datasets/generic.py60CODE
LOWopencompass/datasets/math401.py30CODE
LOWopencompass/datasets/advancedIF.py223CODE
LOWopencompass/datasets/nejmaibench.py90CODE
LOWopencompass/datasets/medmcqa.py75CODE
LOWopencompass/datasets/scicode.py363CODE
LOWopencompass/datasets/game24.py230CODE
LOWopencompass/datasets/MedCalc_Bench.py323CODE
LOWopencompass/datasets/mmlu_pro.py75CODE
LOWopencompass/datasets/mastermath2024v1.py63CODE
LOWopencompass/datasets/MedXpertQA.py55CODE
LOWopencompass/datasets/SciKnowEval.py71CODE
LOWopencompass/datasets/math.py229CODE
LOWopencompass/datasets/math.py576CODE
LOWopencompass/datasets/OlympiadBench.py762CODE
LOWopencompass/datasets/Medbullets.py85CODE
LOWopencompass/datasets/math_intern.py105CODE
LOWopencompass/datasets/medbench/post_process.py89CODE
LOWopencompass/datasets/babilong/babilong.py106CODE
LOWopencompass/datasets/needlebench_v2/atc_elder_only.py253CODE
LOWopencompass/datasets/needlebench_v2/origin.py212CODE
LOWopencompass/datasets/needlebench_v2/parallel.py308CODE
LOWopencompass/datasets/PMMEval/flores.py162CODE
LOWopencompass/datasets/PMMEval/mifeval.py147CODE
LOWopencompass/datasets/needlebench/origin.py298CODE
LOWopencompass/datasets/needlebench/parallel.py334CODE
LOW…ompass/datasets/teval/evaluators/planning_evaluator.py386CODE
LOW…asets/calm/evaluation/error/basic_adversarial/PCD-B.py29CODE
LOW…asets/calm/evaluation/error/basic_adversarial/PCD-B.py36CODE
LOW…asets/calm/evaluation/error/basic_adversarial/PCD-C.py31CODE
LOW…asets/calm/evaluation/error/basic_adversarial/PCD-C.py38CODE
LOW…ets/calm/evaluation/error/basic_adversarial/Natural.py34CODE
LOW…ets/calm/evaluation/error/basic_adversarial/Natural.py43CODE
LOW…atasets/calm/evaluation/error/basic_adversarial/ECI.py33CODE
LOW…atasets/calm/evaluation/error/basic_adversarial/ECI.py40CODE
LOW…ation/error/basic_adversarial/AC-B_causal_judgement.py34CODE
LOW…ation/error/basic_adversarial/AC-B_causal_judgement.py41CODE
LOW…/calm/evaluation/error/basic_adversarial/CR-C_CRASS.py34CODE
LOW…/calm/evaluation/error/basic_adversarial/CR-C_CRASS.py41CODE
LOW…tasets/calm/evaluation/error/basic_adversarial/CA-B.py32CODE
LOW…tasets/calm/evaluation/error/basic_adversarial/CA-B.py39CODE
LOW…datasets/calm/evaluation/error/basic_adversarial/AS.py35CODE
LOW…datasets/calm/evaluation/error/basic_adversarial/AS.py42CODE
LOW…alm/evaluation/error/basic_adversarial/AR-B_CaLM-AR.py29CODE
LOW…alm/evaluation/error/basic_adversarial/AR-B_CaLM-AR.py36CODE
71 more matches not shown…
Self-Referential Comments41 hits · 118 pts
SeverityFileLineSnippetContext
MEDIUMtests/partitioners/test_base_partitioner.py49 # Create a partitioner that supports model_dataset_combinationsCOMMENT
MEDIUMtests/datasets/test_beyondaime.py50 # Create a mock dataset with 'problem' columnCOMMENT
MEDIUMtests/datasets/test_aime2025.py51 # Create a mock reader instead of importing DatasetReaderCOMMENT
MEDIUM⚡opencompass/evaluator/cascade_evaluator.py195 # Create a subset of the test_set for LLM evaluationCOMMENT
MEDIUMopencompass/tasks/openicl_eval.py207 # Create a prompt template for role config parsingCOMMENT
MEDIUMopencompass/tasks/openicl_eval.py438 """This function is designed for calculating the extraction rate.STRING
MEDIUMopencompass/tasks/openicl_eval.py463 """This function is responsible for formatting prediction details.STRING
MEDIUMopencompass/tasks/openicl_eval.py516 """This function is used to calculate the BPB (Bits Per Byte) for theSTRING
MEDIUMopencompass/tasks/subjective_eval.py187 # Create a prompt template for role config parsingCOMMENT
MEDIUMopencompass/tasks/subjective_eval.py328 # Create a prompt template for role config parsingCOMMENT
MEDIUMopencompass/summarizers/subjective/compassbench_v13.py182 # Create a DataFrame for the category and concatenate with the main DataFrameCOMMENT
MEDIUM…/summarizers/subjective/compass_arena_bradley_terry.py974 # Create a copy of the ratings dataframe to avoid modifying the originalCOMMENT
MEDIUMopencompass/summarizers/subjective/subjective.py78 # Create a DataFrame for each judgemodel with models as rows and datasets as columnsCOMMENT
MEDIUMopencompass/summarizers/subjective/subjective.py83 # Create a DataFrame with models as index and datasets as columnsCOMMENT
MEDIUMopencompass/summarizers/subjective/compassbench.py181 # Create a DataFrame for the category and concatenate with the main DataFrameCOMMENT
MEDIUMopencompass/summarizers/subjective/alignmentbench.py304 # Creating a new dictionary with '总分' as the first itemCOMMENT
MEDIUMopencompass/summarizers/subjective/qacompassbench.py173 # Create a DataFrame for the category and concatenate with the main DataFrameCOMMENT
MEDIUMopencompass/datasets/humaneval_multi.py173 # Create a temporary directory using the tempfile moduleCOMMENT
MEDIUMopencompass/datasets/medmcqa.py241 # Create a flattened key for the categoryCOMMENT
MEDIUMopencompass/datasets/MedXpertQA.py219 # Create a flattened key for the categoryCOMMENT
MEDIUMopencompass/datasets/Medbullets.py237 # Create a flattened key for the categoryCOMMENT
MEDIUMopencompass/datasets/mmlu_cf.py36 # Create a DatasetDict and return itCOMMENT
MEDIUMopencompass/datasets/NPHardEval/cmp_KSP.py123 # Create a one-dimensional array to store intermediate solutionsCOMMENT
MEDIUM⚡opencompass/datasets/codecompass/evaluator.py134 # Create a dictionary from the results list for easier lookupCOMMENT
MEDIUMopencompass/datasets/codecompass/executor.py33 """This function is called in the child process right before exec."""STRING
MEDIUMopencompass/datasets/codecompass/executor.py128 # Create a unique file to avoid race conditions in parallel executionCOMMENT
MEDIUMopencompass/datasets/livecodebench/livecodebench.py62 # Define the dataitem mapping logicCOMMENT
MEDIUMopencompass/datasets/ruler/ruler_vt.py79 # Create a list of the repeated noiseCOMMENT
MEDIUMopencompass/datasets/supergpqa/supergpqa.py316 # Create a flattened key for the categoryCOMMENT
MEDIUMopencompass/datasets/phybench/latex_pre_process.py2#This file is used to pre-process input latex expressionsCOMMENT
MEDIUM…compass/datasets/cmphysbench/SEED/latex_pre_process.py2# This file is used to pre-process input latex expressionsCOMMENT
MEDIUM…ion/omegafold/utils/protein_utils/residue_constants.py3# This file is adopted from DeepMind Technologies Limited.COMMENT
MEDIUM…ion/omegafold/utils/protein_utils/residue_constants.py441# Define a restype name for all unknown residues.COMMENT
MEDIUM…ion/omegafold/utils/protein_utils/residue_constants.py642# Create an ambiguous atoms mask. shape: (21, 14).COMMENT
MEDIUM…s/datasets/SciReasoner/opi/utils/accuracy4fold_type.py23 # Create a set of test sequencesCOMMENT
MEDIUM…asets/SciReasoner/LLM4Chem/retrosynthesis_evaluator.py280 # Create a partial function for multiprocessingCOMMENT
MEDIUM…encompass/openicl/icl_evaluator/icl_toxic_evaluator.py123 # Create a batch request. We will add a request to the batch requestCOMMENT
MEDIUMopencompass/configs/datasets/math/math_gen_943d32.py22 # Define the variableCOMMENT
MEDIUMopencompass/configs/datasets/math/math_gen_943d32.py25 # Define the inequalities for the domain based on the expressionCOMMENT
MEDIUMopencompass/configs/datasets/SciReasoner/opi_gen.py60 # Create the dataset dictionary for the current subtaskCOMMENT
MEDIUM…pass/configs/datasets/SciReasoner/opi_rawprompt_gen.py60 # Create the dataset dictionary for the current subtaskCOMMENT
Redundant / Tautological Comments67 hits · 107 pts
SeverityFileLineSnippetContext
LOWtests/datasets/test_aime2025.py247 # Check if COMPASS_DATA_CACHE is setCOMMENT
LOWtests/datasets/test_aime2025.py252 # Check if CustomDataset is availableCOMMENT
LOWtests/datasets/test_aime2025.py281 # Check if COMPASS_DATA_CACHE is setCOMMENT
LOWopencompass/evaluator/cascade_evaluator.py212 # Check if results already exist to avoid re-evaluationCOMMENT
LOWopencompass/tasks/openicl_eval.py200 # Check if we're dealing with a list of lists (pred_list_flag)COMMENT
LOWopencompass/tasks/subjective_eval.py304 # Check if the start index is providedCOMMENT
LOWopencompass/tasks/subjective_eval.py307 # Check if the end index is providedCOMMENT
LOWopencompass/summarizers/needlebench.py676 # Read the file without treating the first row as a headerCOMMENT
LOWopencompass/datasets/inference_ppl.py19 # Check if file exists in the given pathCOMMENT
LOWopencompass/datasets/ds1000.py290 # Check if in Windows https://stackoverflow.com/questions/1325581/how-do-i-check-if-im-running-on-windows-inCOMMENT
LOWopencompass/datasets/ds1000.py309 # Check if in Windows https://stackoverflow.com/questions/1325581/how-do-i-check-if-im-running-on-windows-inCOMMENT
LOWopencompass/datasets/medmcqa.py187 # Check if the answer is correct (A means correct)COMMENT
LOWopencompass/datasets/scicode.py146 # Check if both dictionaries have the same keysCOMMENT
LOWopencompass/datasets/scicode.py150 # Check if the corresponding values are closeCOMMENT
LOWopencompass/datasets/arc_prize_public_evaluation.py207 # Check if the result is a list of listsCOMMENT
LOWopencompass/datasets/llm_compression.py19 # Check if file exists in the given pathCOMMENT
LOWopencompass/datasets/MedXpertQA.py165 # Check if the answer is correct (A means correct)COMMENT
LOW⚡opencompass/datasets/OlympiadBench.py654 # Check if the expression is a power expressionCOMMENT
LOW⚡opencompass/datasets/OlympiadBench.py659 # Check if the base and the exponent are numbersCOMMENT
LOW⚡opencompass/datasets/OlympiadBench.py665 # Check if the exponent is greater than the thresholdCOMMENT
LOWopencompass/datasets/OlympiadBench.py742 # Check if answer is correctCOMMENT
LOWopencompass/datasets/Medbullets.py191 # Check if the answer is correct (A means correct)COMMENT
LOWopencompass/datasets/biodata.py326 # Check if either pred or target is emptyCOMMENT
LOWopencompass/datasets/biodata.py486 if not ec_list: # Check if ec_list is emptyCODE
LOW⚡opencompass/datasets/NPHardEval/p_SPP.py178 # Check if path starts and ends with the correct nodesCOMMENT
LOW⚡opencompass/datasets/NPHardEval/p_SPP.py182 # Check if the path is continuous and calculate the costCOMMENT
LOWopencompass/datasets/NPHardEval/p_SPP.py194 # Check if the calculated cost matches the total cost provided in the solutionCOMMENT
LOWopencompass/datasets/NPHardEval/cmp_KSP.py175 # Check if the item weight exceeds the knapsack capacityCOMMENT
LOWopencompass/datasets/NPHardEval/hard_GCP.py123 # Check if all colors in the answer are validCOMMENT
LOW⚡opencompass/datasets/NPHardEval/hard_MSP.py135 # Check if all meetings are scheduled within the available time slotsCOMMENT
LOW⚡opencompass/datasets/NPHardEval/hard_MSP.py141 # Check if the meeting is scheduledCOMMENT
LOW⚡opencompass/datasets/NPHardEval/hard_MSP.py145 # Check if the meeting fits within the number of total time slotsCOMMENT
LOW⚡opencompass/datasets/NPHardEval/hard_MSP.py149 # Check if the scheduled slots are contiguous and fit the meeting durationCOMMENT
LOW⚡opencompass/datasets/NPHardEval/hard_MSP.py154 # Check if all participants are available at the scheduled timeCOMMENT
LOW⚡opencompass/datasets/NPHardEval/hard_MSP.py160 # Check if any participant is double-bookedCOMMENT
LOW⚡opencompass/datasets/NPHardEval/hard_TSP.py165 # Check if tour is a cycleCOMMENT
LOW⚡opencompass/datasets/NPHardEval/hard_TSP.py169 # Check if all cities are visitedCOMMENT
LOWopencompass/datasets/NPHardEval/hard_TSP.py180 # Check if the provided tour distance is equal to the greedy tour distanceCOMMENT
LOW…s/moleculariq/moleculariq_core/rewards/index_reward.py46 # Check if it's a valid integerCOMMENT
LOW…s/moleculariq/moleculariq_core/rewards/index_reward.py170 # Check if single index task (target has exactly one key)COMMENT
LOW⚡…eculariq/moleculariq_core/rewards/constraint_reward.py198 # Check if this is a string-valued propertyCOMMENT
LOW…atasets/moleculariq/moleculariq_core/_nlp/formatter.py593 # Check if it's a functional group with specific suffixesCOMMENT
LOW…atasets/moleculariq/moleculariq_core/_nlp/formatter.py670 # Check if it's a functional groupCOMMENT
LOW…datasets/moleculariq/moleculariq_core/solver/solver.py565 # Check if all atoms in ring are aromaticCOMMENT
LOW…datasets/moleculariq/moleculariq_core/solver/solver.py627 # Check if ring contains heteroatom (non-C, non-H)COMMENT
LOW…datasets/moleculariq/moleculariq_core/solver/solver.py655 # Check if ring is saturated (only single bonds between ring atoms)COMMENT
LOWopencompass/datasets/supergpqa/supergpqa.py262 # Check if the answer is correct (A means correct)COMMENT
LOWopencompass/datasets/cmphysbench/SEED/SEED.py500 # Check if there's a top-level '(keys) = (values)' structureSTRING
LOWopencompass/datasets/SciReasoner/bio_instruction.py1108 # Check if either pred or target is emptyCOMMENT
LOWopencompass/datasets/SciReasoner/bio_instruction.py1166 if not ec_list: # Check if ec_list is emptyCODE
LOW…ts/SciReasoner/unconditional_protein_generation/UPG.py62 # Check if the input is a string;COMMENT
LOW…asets/livecodebench_pro/livecodebench_pro_evaluator.py151 # Check if encountering blank line (two consecutive newlines)COMMENT
LOW…asets/livecodebench_pro/livecodebench_pro_evaluator.py162 # Check if encountering blank lineCOMMENT
LOWopencompass/datasets/IFBench/instructions.py253 # Check if the ratio is 2:1COMMENT
LOWopencompass/datasets/IFBench/instructions.py281 # Check if the ratio of sentence types is balancedCOMMENT
LOWopencompass/datasets/IFBench/instructions.py708 # Check if we just closed a group that reached 5+ depthCOMMENT
LOWopencompass/datasets/IFBench/instructions.py1552 # Check if questions get progressively longerCOMMENT
LOWopencompass/datasets/IFBench/instructions.py1594 # Check if we have at least 53 linesCOMMENT
LOW…s/datasets/lawbench/utils/compare_m2_for_evaluation.py35 # Print resultsCOMMENT
LOWopencompass/utils/run.py258 # Check if summarizer_arg contains '/'COMMENT
7 more matches not shown…
Over-Commented Block101 hits · 98 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config-zh-cn.yaml121 - --root_folderCOMMENT
LOW.pre-commit-config.yaml121 # - repo: https://github.com/open-mmlab/pre-commit-hooksCOMMENT
LOWREADME.md101- #### Install OpenCompass via pipCOMMENT
LOWtools/update_dataset_suffix.py101# new_name = os.path.basename(new_file)[:-3]COMMENT
LOWdocs/zh_cn/conf.py1# flake8: noqaCOMMENT
LOWdocs/zh_cn/faq/circular_eval.md61 # 为了与非循环评测版本做区分而进行改名COMMENT
LOWdocs/en/conf.py1# flake8: noqaCOMMENT
LOWdocs/en/faq/circular_eval.md61 # Renaming for differentiation from non-circular evaluation versionsCOMMENT
LOWexamples/eval_academic_leaderboard_202407.py41 mmlu_pro_summary_groupsCOMMENT
LOWexamples/eval_charm_rea.py1from mmengine.config import read_baseCOMMENT
LOWexamples/eval_charm_rea.py21 # from opencompass.configs.models.yi.hf_yi_34b_chat import models as yi_34b_chat_modelCOMMENT
LOWexamples/eval_charm_rea.py41 # from opencompass.configs.models.qwen.hf_qwen1_5_7b_chat import models as qwen1_5_7b_chat_modelCOMMENT
LOWexamples/eval_charm_rea.py61# charm-reason-Chinese_Translate-EN - naive_average gen 48.21COMMENT
LOWexamples/eval_mmlu_pro.py21work_dir = 'outputs/debug/mmlu_pro'COMMENT
LOWexamples/eval_hellobench.py61# path='THUDM/glm-4-9b-chat',COMMENT
LOWexamples/eval_PMMEval.py21# datasets = PMMEval_HumanEvalXL_datasetsCOMMENT
LOWexamples/eval_compassarena_subjectivebench.py41# dict(COMMENT
LOWexamples/eval_deepseek_r1.py101 # path='deepseek-ai/DeepSeek-R1-Distill-Qwen-14B',COMMENT
LOWexamples/eval_deepseek_r1.py121 # temperature=0.6,COMMENT
LOWexamples/eval_edgellm_demo.py41# chid-dev 211ee7 accuracy gen 12.87COMMENT
LOWexamples/eval_edgellm_demo.py61# -------------- --------- ---------- ------ -------------COMMENT
LOWexamples/eval_charm_mem.py21 # from opencompass.configs.models.chatglm.hf_chatglm3_6b_32k import models as chatglm3_6b_32k_modelCOMMENT
LOWexamples/eval_llama3_instruct.py21# nq_open_1shot 01cf41 score gen 30.25COMMENT
LOWexamples/eval_llama3_instruct.py41# cmmlu-social-science - naive_average gen 54.63COMMENT
LOWopencompass/datasets/medbench/evaluation.py21 elif dataset_name in dataset_loader.math_output_datasets:COMMENT
LOWopencompass/datasets/medbench/evaluation.py41# if prediction == label:COMMENT
LOWopencompass/datasets/medbench/dataset_loader.py21COMMENT
LOWopencompass/datasets/medbench/dataset_loader.py41# passage = line['passage'] if line['passage'] is not None else ''COMMENT
LOWopencompass/datasets/subjective/followbench.py141# def __init__(self, num_workers=16) -> None:COMMENT
LOWopencompass/datasets/subjective/followbench.py161# tempdir_name,COMMENT
LOWopencompass/datasets/subjective/followbench.py181# time_limit = 60 # should not change the official time_limitCOMMENT
LOWopencompass/datasets/subjective/followbench.py201# for line in generated_code:COMMENT
LOWopencompass/datasets/subjective/followbench.py221# return chdir_return(cwd, False)COMMENT
LOWopencompass/datasets/subjective/followbench.py241# # Each process changes cwd, need to use multi-processingCOMMENT
LOWopencompass/datasets/subjective/elbench.py41# ELBench ships its files under a data root that holds the four originalCOMMENT
LOWopencompass/datasets/IFEval/instructions.py1# flake8: noqaCOMMENT
LOWopencompass/datasets/IFEval/evaluation_main.py1# flake8: noqaCOMMENT
LOWopencompass/datasets/IFEval/instructions_util.py1# flake8: noqaCOMMENT
LOWopencompass/datasets/IFEval/instructions_registry.py1# Copyright 2023 The Google Research Authors.COMMENT
LOW…eculariq/moleculariq_core/_data/reaction_templates.txt61hydrazone_formation;condensation;[C:1](=[O:2])[#6,H:3]>>[C:1](=[N][NH2])[#6,H:3];Formation of hydrazone from carbonylCOMMENT
LOWopencompass/datasets/livecodebench/execute_utils.py1# Copyright 2020 The HuggingFace Datasets Authors and theCOMMENT
LOWopencompass/datasets/livecodebench/testing_util.py581 output = output.split()COMMENT
LOWopencompass/datasets/livecodebench/testing_util.py601 # )COMMENT
LOWopencompass/datasets/MultiIF/instructions.py1# flake8: noqaCOMMENT
LOWopencompass/datasets/MultiIF/evaluation_main.py1# flake8: noqaCOMMENT
LOWopencompass/datasets/MultiIF/instructions_util.py1# flake8: noqaCOMMENT
LOWopencompass/datasets/MultiIF/instructions_registry.py1# Copyright 2023 The Google Research Authors.COMMENT
LOWopencompass/datasets/agieval/evaluation.py21 elif dataset_name in dataset_loader.math_output_datasets:COMMENT
LOWopencompass/datasets/agieval/evaluation.py41# if prediction == label:COMMENT
LOWopencompass/datasets/ruler/ruler_qa.py81 # 'http://curtis.ml.cmu.edu/datasets/hotpot/hotpot_dev_distractor_v1.json'COMMENT
LOWopencompass/datasets/fake_alignment/fake_alignment.py1# flake8: noqaCOMMENT
LOW…ncompass/datasets/SciReasoner/bulk_modulus_material.py21 @staticmethodCOMMENT
LOWopencompass/datasets/SciReasoner/GUE.py21 @staticmethodCOMMENT
LOW…encompass/datasets/SciReasoner/composition_material.py61COMMENT
LOWopencompass/datasets/SciReasoner/PEER.py21from opencompass.utils import get_data_pathCOMMENT
LOWopencompass/datasets/SciReasoner/bio_instruction.py241 return 'dont_know'COMMENT
LOWopencompass/datasets/SciReasoner/bio_instruction.py1441COMMENT
LOW…unconditional_protein_generation/omegafold/omegaplm.py1# =============================================================================COMMENT
LOW…r/unconditional_protein_generation/omegafold/config.py1# =============================================================================COMMENT
LOW…conditional_protein_generation/omegafold/confidence.py1# =============================================================================COMMENT
41 more matches not shown…
Magic Placeholder Names15 hits · 70 pts
SeverityFileLineSnippetContext
HIGHdocs/zh_cn/get_started/quick_start.md17 key='your-api-key',CODE
HIGHdocs/zh_cn/get_started/quick_start.md26export OPENCOMPASS_API_KEY="your-api-key"CODE
HIGHdocs/en/get_started/quick_start.md17 key='your-api-key',CODE
HIGHdocs/en/get_started/quick_start.md26export OPENCOMPASS_API_KEY="your-api-key"CODE
HIGHexamples/eval_intern_s1_pro.py191 key='YOUR_API_KEY',CODE
HIGHexamples/eval_eese_api_judge.py23 key='your-api-key',CODE
HIGHexamples/eval_internlm3_math500_thinking.py26 key='YOUR_API_KEY',CODE
HIGHexamples/eval_model_rollout.py44 key='YOUR_API_KEY',CODE
HIGHexamples/eval_corebench_2409_subjective.py95 key='YOUR_API_KEY',CODE
HIGH…nfigs/datasets/atlas/atlas_val_rawprompt_gen_277bee.py210 key='YOUR_API_KEY',STRING
HIGHopencompass/configs/datasets/atlas/README.md14 key="YOUR_API_KEY",CODE
HIGH…compass/configs/datasets/atlas/atlas_val_gen_b2d1b6.py217 key='YOUR_API_KEY',STRING
HIGHopencompass/configs/models/moonshot/kimi_k2.py13 key='your-api-key-here', # Set your API key hereCODE
HIGH…encompass/configs/models/moonshot/kimi_k2_streaming.py13 key='your-api-key-here', # Set your API key hereCODE
HIGHopencompass/configs/models/intern_s/intern_s1.py14 key='YOUR_API_KEY',CODE
Modern Structural Boilerplate24 hits · 25 pts
SeverityFileLineSnippetContext
LOWautotest/__init__.py3__all__ = []CODE
LOWautotest/cluster/__init__.py3__all__ = []CODE
LOWautotest/all/__init__.py3__all__ = []CODE
LOWautotest/model/__init__.py3__all__ = []CODE
LOWautotest/eval/__init__.py3__all__ = []CODE
LOWopencompass/metrics/__init__.py5__all__ = ['DumpResults', 'SEEDBenchAcc', 'MMEMetric']CODE
LOWopencompass/tasks/openicl_infer_concurrent.py35 def set_total(self, total: int) -> None:CODE
LOWopencompass/tasks/openicl_infer_concurrent.py39 def set_completed(self, completed: int) -> None:CODE
LOWopencompass/datasets/inverse_ifeval.py185def _update_bucket(bucket: Dict[str, int], score: Optional[int]) -> None:CODE
LOWopencompass/datasets/vlmevalkit/__init__.py5__all__ = [CODE
LOWopencompass/datasets/codecompass/__init__.py5__all__ = [CODE
LOW⚡…pass/datasets/moleculariq/moleculariq_core/__init__.py116__all__ = [CODE
LOW…tasets/moleculariq/moleculariq_core/_pools/__init__.py14__all__ = [CODE
LOW…asets/moleculariq/moleculariq_core/rewards/__init__.py137__all__ = [CODE
LOW…datasets/moleculariq/moleculariq_core/_nlp/__init__.py21__all__ = [CODE
LOW…tasets/moleculariq/moleculariq_core/solver/__init__.py12__all__ = [CODE
LOW…sets/moleculariq/moleculariq_core/_dynamic/__init__.py10__all__ = ["MolecularIQD"]CODE
LOWopencompass/datasets/teval/evaluators/__init__.py5__all__ = ['InstructEvaluator', 'PlanningEvaluator', 'ReviewEvaluator', 'ReasonRetrieveUnderstandEvaluator']CODE
LOWopencompass/datasets/mp20/__init__.py3__all__ = ['MP20Dataset', 'MP20Evaluator']CODE
LOW⚡…unconditional_protein_generation/omegafold/pipeline.py59def _set_precision(allow_tf32: bool) -> None:CODE
LOWopencompass/datasets/livecodebench_pro/__init__.py4__all__ = ['LCBProDataset', 'LCBProEvaluator']CODE
LOWopencompass/datasets/IFBench/instructions.py53logger = logging.getLogger(__name__)CODE
LOWopencompass/models/claude_api/__init__.py3__all__ = ['Claude']CODE
LOWopencompass/models/telechat_api/__init__.py4__all__ = ['TeleChat', 'TeleChatStream']CODE
AI Slop Vocabulary7 hits · 19 pts
SeverityFileLineSnippetContext
MEDIUMexamples/eval_deepseek_r1.py144 # to max-utilize the GPUs.COMMENT
LOWopencompass/datasets/babilong/babilong_utils.py161 ) # appends new sentences, can be updated to just return new sentencesCODE
MEDIUMopencompass/datasets/codecompass/executor.py151 # Normalize whitespace and line endings for robust comparisonCOMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py953# Add comprehensive aliases for better coverageCOMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py1078# Merge comprehensive aliasesCOMMENT
MEDIUMopencompass/datasets/SciReasoner/opi/config.py123# To facilitate evaluation, each semicolon is replaced by a dot.COMMENT
MEDIUMopencompass/datasets/SciReasoner/LLM4Chem/config.py141# that separate different parts. To facilitate evaluation,COMMENT
Cross-Language Confusion3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHopencompass/datasets/humaneval.py23cd human-eval && pip install -e .'''CODE
HIGHopencompass/datasets/phybench/EED.py135 return expr1.equals(expr2)CODE
HIGHopencompass/datasets/cmphysbench/SEED/SEED.py223 return expr1.equals(expr2)CODE
Structural Annotation Overuse6 hits · 10 pts
SeverityFileLineSnippetContext
LOWopencompass/evaluator/cascade_evaluator.py147 # Step 1: Evaluate each sample individually using rule-based evaluationCOMMENT
LOW⚡opencompass/evaluator/cascade_evaluator.py191 # Step 2: If there are samples for LLM evaluationCOMMENT
LOW⚡…asets/livecodebench_pro/livecodebench_pro_evaluator.py424 # Step 2: Poll for resultsCOMMENT
LOW…asets/livecodebench_pro/livecodebench_pro_evaluator.py382 # Step 1: Extract code and submitCOMMENT
LOW…s/configs/datasets/winogrande/winogrande_ppl_9307fd.py7# WARNING: This config cannot reproduce results in the paper.COMMENT
LOW…s/configs/datasets/winogrande/winogrande_ppl_55a66e.py7# WARNING: This config cannot reproduce results in the paper.COMMENT
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippetContext
LOWexamples/eval_hellobench.py21# make sure your models' generation parameters are set properly, for example, if you set temperature=0.8, make sure you COMMENT
MEDIUMopencompass/utils/menu.py6 # you can try `windows_curses` module by yourselfCOMMENT
MEDIUM…compass/configs/models/openai/o1_preview_2024_09_12.py19 max_completion_tokens=8192), # you can change it for large reasoning inference cost, according to: https://platfCODE
MEDIUMopencompass/configs/models/openai/o1_mini_2024_09_12.py19 max_completion_tokens=8192), # you can change it for large reasoning inference cost, according to: https://platfCODE
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWopencompass/evaluator/cascade_evaluator.py147 # Step 1: Evaluate each sample individually using rule-based evaluationCOMMENT
LOW⚡opencompass/evaluator/cascade_evaluator.py191 # Step 2: If there are samples for LLM evaluationCOMMENT
LOW⚡…asets/livecodebench_pro/livecodebench_pro_evaluator.py424 # Step 2: Poll for resultsCOMMENT
LOW…asets/livecodebench_pro/livecodebench_pro_evaluator.py382 # Step 1: Extract code and submitCOMMENT
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMopencompass/models/base.py509CODE
MEDIUMopencompass/models/base.py510CODE
MEDIUMopencompass/models/base.py515CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHopencompass/datasets/subjective/wildbench.py19the responses generated by AI models.CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…ompass/openicl/icl_evaluator/icl_korbench_evaluator.py265# Example usage:COMMENT