Repository Analysis

open-compass/opencompass

OpenCompass is an LLM evaluation platform, supporting a wide range of models (Llama3, Mistral, InternLM2,GPT-4,LLaMa2, Qwen,GLM, Claude, etc) over 100+ datasets.

33.4 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of open-compass/opencompass, a Python project with 7,191 GitHub stars. SynthScan v2.0 examined 299,605 lines of code across 3469 source files, recording 6498 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 33.4 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

33.4
Adjusted Score
33.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
7.2K
Stars
Python
Language
299.6K
Lines of Code
3.5K
Files
6.5K
Pattern Hits
2026-07-14
Scan Date
0.20
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 687MEDIUM 484LOW 5327

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 6498 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Cross-File Repetition633 hits · 3165 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/advanced_guides/prompt_attack.md0{adv_prompt} sentence 1: {sentence1} sentence 2: {sentence2} answer:STRING
HIGHdocs/en/advanced_guides/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
HIGH…/zh_cn/advanced_guides/objective_judgelm_evaluation.md0look at the following two expressions (answers to a math problem) and judge whether they are equivalent. only perform trSTRING
HIGHdocs/en/advanced_guides/objective_judgelm_evaluation.md0look at the following two expressions (answers to a math problem) and judge whether they are equivalent. only perform trSTRING
HIGHexamples/eval_math_llm_judge.py0look at the following two expressions (answers to a math problem) and judge whether they are equivalent. only perform trSTRING
HIGHexamples/eval_cibench_api.py0you should directly give results based on history information.STRING
HIGHexamples/eval_cibench.py0you should directly give results based on history information.STRING
HIGHopencompass/models/lagent.py0you should directly give results based on history information.STRING
HIGH…datasets/compassbench_v1_3/compassbench_v1_3_prompt.py0you should directly give results based on history information.STRING
HIGHexamples/eval_cibench_api.py0\ you are an assistant who can utilize external tools. {tool_description} to use a tool, please response with the followSTRING
HIGHexamples/eval_cibench.py0\ you are an assistant who can utilize external tools. {tool_description} to use a tool, please response with the followSTRING
HIGH…datasets/compassbench_v1_3/compassbench_v1_3_prompt.py0\ you are an assistant who can utilize external tools. {tool_description} to use a tool, please response with the followSTRING
HIGHexamples/eval_cibench_api.py0\ it can run python code in a manner as jupyter notebook. the code must be a valid code that contains only python methodSTRING
HIGHexamples/eval_cibench.py0\ it can run python code in a manner as jupyter notebook. the code must be a valid code that contains only python methodSTRING
HIGH…datasets/compassbench_v1_3/compassbench_v1_3_prompt.py0\ it can run python code in a manner as jupyter notebook. the code must be a valid code that contains only python methodSTRING
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
573 more matches not shown…
Unused Imports3301 hits · 2938 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
3241 more matches not shown…
Decorative Section Separators299 hits · 1139 pts
SeverityFileLineSnippetContext
MEDIUMopencompass/datasets/zebralogic.py155# ---------------------------------------------------------------------------COMMENT
MEDIUMopencompass/datasets/zebralogic.py157# ---------------------------------------------------------------------------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
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py1099# ============================================================================COMMENT
MEDIUM…datasets/moleculariq/moleculariq_core/_nlp/mappings.py1101# ============================================================================COMMENT
239 more matches not shown…
Hyper-Verbose Identifiers745 hits · 718 pts
SeverityFileLineSnippetContext
LOWtools/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/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
LOWtests/tasks/test_openicl_infer_concurrent.py48 def test_remaining_without_total(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py53 def test_remaining_with_total(self):CODE
LOWtests/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.py556 def test_run_with_max_workers_config(self):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py575 def test_build_inferencer_with_max_infer_workers(self, mock_registry):CODE
LOWtests/tasks/test_openicl_infer_concurrent.py596 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
LOWtests/tasks/test_base_task.py50 def deperacated_test_extract_role_pred_with_begin_only(self):CODE
LOWtests/tasks/test_base_task.py59 def deperacated_test_extract_role_pred_with_end_only(self):CODE
LOWtests/tasks/test_base_task.py68 def test_extract_role_pred_without_markers(self):CODE
LOWtests/tasks/test_base_task.py75 def test_extract_role_pred_with_whitespace_begin(self):CODE
LOWtests/tasks/test_openicl_eval_watch.py52 def test_initialization_with_defaults(self):CODE
LOWtests/tasks/test_openicl_eval_watch.py82 def test_get_command_single_gpu(self):CODE
LOWtests/tasks/test_openicl_eval_watch.py97 def test_get_command_multi_gpu(self, mock_randint):CODE
685 more matches not shown…
Deep Nesting571 hits · 560 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
LOWautotest/utils/compare_results.py60CODE
LOWautotest/utils/compare_results.py132CODE
LOWautotest/utils/compare_results.py190CODE
LOWautotest/utils/compare_results.py455CODE
LOWautotest/utils/oc_score_assert.py145CODE
LOWdocs/zh_cn/statis.py40CODE
LOWdocs/en/statis.py42CODE
LOWopencompass/metrics/mme_score.py48CODE
LOWopencompass/evaluator/math_evaluator.py167CODE
LOWopencompass/evaluator/cascade_evaluator.py101CODE
LOWopencompass/evaluator/cascade_evaluator.py122CODE
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.py146CODE
LOWopencompass/tasks/openicl_infer_concurrent.py248CODE
LOWopencompass/tasks/openicl_eval.py254CODE
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.py175CODE
LOWopencompass/summarizers/default_subjective.py272CODE
LOWopencompass/summarizers/summarizer_pretrain.py34CODE
LOWopencompass/summarizers/multi_model.py125CODE
LOWopencompass/summarizers/circular.py22CODE
LOWopencompass/summarizers/default.py67CODE
LOWopencompass/summarizers/default.py137CODE
LOWopencompass/summarizers/default.py258CODE
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
LOWopencompass/summarizers/subjective/charm.py138CODE
LOWopencompass/summarizers/subjective/fofo.py62CODE
511 more matches not shown…
Excessive Try-Catch Wrapping448 hits · 519 pts
SeverityFileLineSnippetContext
LOWtools/analyze_repeat.py47 except Exception:STRING
LOWtools/analyze_repeat.py57 except Exception:STRING
LOWtools/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.py230 except Exception as e:CODE
LOWopencompass/tasks/openicl_eval.py183 except Exception as e:CODE
LOWopencompass/tasks/openicl_eval.py342 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.py185 except Exception as e:CODE
LOWopencompass/datasets/taco.py351 except Exception as e:CODE
LOWopencompass/datasets/taco.py396 except Exception as e:CODE
LOWopencompass/datasets/taco.py472 except Exception as e:CODE
LOWopencompass/datasets/taco.py504 except Exception as e:CODE
LOWopencompass/datasets/taco.py550 except Exception as e:CODE
LOWopencompass/datasets/taco.py580 except Exception as e:CODE
LOWopencompass/datasets/taco.py613 except Exception as e:CODE
LOWopencompass/datasets/taco.py624 except Exception:CODE
LOWopencompass/datasets/taco.py635 except Exception:CODE
LOWopencompass/datasets/taco.py652 except Exception as e:CODE
LOWopencompass/datasets/taco.py676 except Exception as e:CODE
LOWopencompass/datasets/taco.py689 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
LOWopencompass/datasets/humanevalx.py162 except Exception:CODE
LOWopencompass/datasets/humanevalx.py167 except Exception:CODE
LOWopencompass/datasets/humanevalx.py177 except Exception:CODE
LOWopencompass/datasets/zebralogic.py208 except Exception:CODE
LOWopencompass/datasets/zebralogic.py215 except Exception:CODE
388 more matches not shown…
Modern AI Meta-Vocabulary68 hits · 168 pts
SeverityFileLineSnippetContext
MEDIUMdocs/zh_cn/get_started/faq.md20### OpenCompass 如何控制 few shot 评测的 shot 数目?COMMENT
MEDIUMdocs/zh_cn/advanced_guides/evaluation_lmdeploy.md70 # the max size of the context windowCOMMENT
MEDIUMdocs/en/get_started/faq.md20### How does OpenCompass control the number of shots in few-shot evaluations?COMMENT
MEDIUMdocs/en/advanced_guides/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
MEDIUM…ompass/configs/datasets/bbh/bbh_llmjudge_gen_b5bdf1.py75# For zero shot inference in bbhSTRING
MEDIUM…nfigs/datasets/SciReasoner/retrosynthesis_USPTO_gen.py37 type=ZeroRetriever, # For our trained model, use zero-shotCODE
8 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 Patterns128 hits · 128 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/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
LOW…calm/evaluation/error/basic_adversarial/Probability.py42CODE
68 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
MEDIUMopencompass/evaluator/cascade_evaluator.py186 # Create a subset of the test_set for LLM evaluationCOMMENT
MEDIUMopencompass/tasks/openicl_eval.py204 # Create a prompt template for role config parsingCOMMENT
MEDIUMopencompass/tasks/openicl_eval.py435 """This function is designed for calculating the extraction rate.STRING
MEDIUMopencompass/tasks/openicl_eval.py460 """This function is responsible for formatting prediction details.STRING
MEDIUMopencompass/tasks/openicl_eval.py513 """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
MEDIUMopencompass/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 Comments68 hits · 108 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.py203 # Check if results already exist to avoid re-evaluationCOMMENT
LOWopencompass/tasks/openicl_eval.py197 # 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
LOWopencompass/datasets/OlympiadBench.py654 # Check if the expression is a power expressionCOMMENT
LOWopencompass/datasets/OlympiadBench.py659 # Check if the base and the exponent are numbersCOMMENT
LOWopencompass/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.py325 # Check if either pred or target is emptyCOMMENT
LOWopencompass/datasets/biodata.py485 if not ec_list: # Check if ec_list is emptyCODE
LOWopencompass/datasets/NPHardEval/p_SPP.py178 # Check if path starts and ends with the correct nodesCOMMENT
LOWopencompass/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
LOWopencompass/datasets/NPHardEval/hard_MSP.py135 # Check if all meetings are scheduled within the available time slotsCOMMENT
LOWopencompass/datasets/NPHardEval/hard_MSP.py141 # Check if the meeting is scheduledCOMMENT
LOWopencompass/datasets/NPHardEval/hard_MSP.py145 # Check if the meeting fits within the number of total time slotsCOMMENT
LOWopencompass/datasets/NPHardEval/hard_MSP.py149 # Check if the scheduled slots are contiguous and fit the meeting durationCOMMENT
LOWopencompass/datasets/NPHardEval/hard_MSP.py154 # Check if all participants are available at the scheduled timeCOMMENT
LOWopencompass/datasets/NPHardEval/hard_MSP.py160 # Check if any participant is double-bookedCOMMENT
LOWopencompass/datasets/NPHardEval/hard_TSP.py165 # Check if tour is a cycleCOMMENT
LOWopencompass/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.py250 # Check if summarizer_arg contains '/'COMMENT
8 more matches not shown…
Magic Placeholder Names21 hits · 100 pts
SeverityFileLineSnippetContext
HIGHdocs/zh_cn/user_guides/deepseek_r1.md35 key='YOUR_API_KEY', # 需替换真实API KeyCODE
HIGHdocs/zh_cn/user_guides/interns1.md20 key="YOUR_API_KEY", # 在此处填写模型服务的API KEYCODE
HIGHdocs/zh_cn/user_guides/interns1.md53 key='YOUR_API_KEY',CODE
HIGHdocs/zh_cn/notes/academic.md79 key='YOUR_API_KEY',CODE
HIGHdocs/zh_cn/notes/rawprompttemplate.md61 key='YOUR_API_KEY',CODE
HIGHdocs/en/user_guides/deepseek_r1.md35 key='YOUR_API_KEY', # Use real API keyCODE
HIGHdocs/en/user_guides/interns1.md22 key="YOUR_API_KEY", # Fill in your API KEY hereCODE
HIGHdocs/en/user_guides/interns1.md56 key='YOUR_API_KEY',CODE
HIGHdocs/en/notes/academic.md82 key='YOUR_API_KEY',CODE
HIGHdocs/en/notes/rawprompttemplate.md61 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/interns1/intern_s1.py14 key='YOUR_API_KEY',CODE
Over-Commented Block94 hits · 93 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
LOWtools/update_dataset_suffix.py101# new_name = os.path.basename(new_file)[:-3]COMMENT
LOWdocs/zh_cn/conf.py1# flake8: noqaCOMMENT
LOWdocs/zh_cn/advanced_guides/circular_eval.md61 # 为了与非循环评测版本做区分而进行改名COMMENT
LOWdocs/en/conf.py1# flake8: noqaCOMMENT
LOWdocs/en/advanced_guides/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 # tmp_result = set(frozenset(s) for s in output) == set(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
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
LOW…nconditional_protein_generation/omegafold/geoformer.py1# =============================================================================COMMENT
LOW…unconditional_protein_generation/omegafold/__init__.py1# =============================================================================COMMENT
LOW…unconditional_protein_generation/omegafold/__init__.py21# =============================================================================COMMENT
LOW…nconditional_protein_generation/omegafold/embedders.py1# =============================================================================COMMENT
LOW…er/unconditional_protein_generation/omegafold/model.py1# =============================================================================COMMENT
LOW…unconditional_protein_generation/omegafold/pipeline.py1# =============================================================================COMMENT
LOW…/unconditional_protein_generation/omegafold/modules.py1# =============================================================================COMMENT
34 more matches not shown…
Modern Structural Boilerplate23 hits · 24 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/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.py22cd 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.py141 # Step 1: Evaluate each sample individually using rule-based evaluationCOMMENT
LOWopencompass/evaluator/cascade_evaluator.py182 # 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.py141 # Step 1: Evaluate each sample individually using rule-based evaluationCOMMENT
LOWopencompass/evaluator/cascade_evaluator.py182 # 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