SWE-bench: Can Language Models Resolve Real-world Github Issues?
This report presents the forensic synthetic code analysis of SWE-bench/SWE-bench, a Python project with 5,598 GitHub stars. SynthScan v2.0 examined 66,553 lines of code across 633 source files, recording 307 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 8.3 places this repository in the Low 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 307 distinct pattern matches across 13 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | swebench/harness/utils.py | 353 | Get the list of new files in a patch (source is /dev/null). | STRING |
| HIGH⚡ | swebench/harness/modal_eval/run_evaluation_modal.py | 164 | "conda activate testbed && python -m pip install -r $HOME/requirements.txt", | CODE |
| HIGH⚡ | swebench/harness/modal_eval/run_evaluation_modal.py | 165 | "conda activate testbed && python -m pip install --trusted-host pypi-mirror.modal.local -r $HOME/requirement | CODE |
| HIGH | swebench/harness/modal_eval/run_evaluation_modal.py | 210 | "echo 'source /opt/miniconda3/etc/profile.d/conda.sh && conda activate testbed' >> /root/.bashrc", | CODE |
| HIGH | swebench/harness/modal_eval/run_evaluation_modal.py | 273 | "cd /testbed && git apply -v /tmp/patch.diff", | CODE |
| HIGH | swebench/harness/modal_eval/run_evaluation_modal.py | 280 | "cd /testbed && patch --batch --fuzz=5 -p1 -i /tmp/patch.diff", | CODE |
| HIGH | swebench/harness/modal_eval/run_evaluation_modal.py | 297 | "cd /testbed && git diff", | CODE |
| HIGH | swebench/harness/modal_eval/run_evaluation_modal.py | 329 | git_diff_output_after, returncode = runner.exec("cd /testbed && git diff") | CODE |
| HIGH | swebench/harness/constants/java.py | 30 | f"{{ head -n -1 {build_file}; echo {escaped_xml}; tail -n 1 {build_file}; }} > temp_file && mv temp_file {build_ | STRING |
| HIGH | swebench/harness/constants/java.py | 70 | def repeatLength = startItem.length() + output.length() + endItem.length() | CODE |
| HIGH | swebench/harness/constants/java.py | 133 | def repeatLength = startItem.length() + output.length() + endItem.length() | CODE |
| HIGH | swebench/harness/constants/python.py | 102 | "apt-get update && apt-get install -y locales", | CODE |
| HIGH | swebench/harness/constants/python.py | 384 | "apt-get -y update && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get install -y imagemagick ff | CODE |
| HIGH | swebench/harness/constants/python.py | 420 | "apt-get -y update && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get install -y imagemagic | CODE |
| HIGH | swebench/harness/constants/python.py | 441 | "apt-get -y update && apt-get -y upgrade && apt-get install -y imagemagick ffmpeg libfreetype6-dev pkg-c | CODE |
| HIGH | swebench/harness/constants/python.py | 461 | "apt-get -y update && apt-get -y upgrade && && apt-get install -y imagemagick ffmpeg" | CODE |
| HIGH | swebench/harness/constants/python.py | 529 | SPECS_SPHINX[k]["pre_install"] += ["apt-get update && apt-get install -y graphviz"] | CODE |
| HIGH | swebench/harness/constants/python.py | 666 | "apt-get update && apt-get install -y libenchant-2-dev hunspell-en-us" | CODE |
| HIGH | swebench/harness/constants/python.py | 786 | "apt-get update && apt-get install -y ffmpeg libsm6 libxext6 libxrender1" | CODE |
| HIGH | swebench/harness/dockerfiles/java.py | 7 | RUN apt update && apt install -y \ | CODE |
| HIGH | swebench/harness/dockerfiles/ruby.py | 7 | RUN apt update && apt install -y \ | CODE |
| HIGH | swebench/harness/dockerfiles/c.py | 11 | RUN apt update && apt install -y \ | CODE |
| HIGH | swebench/harness/dockerfiles/python.py | 7 | RUN apt update && apt install -y \ | CODE |
| HIGH | swebench/harness/dockerfiles/python.py | 45 | RUN echo "source /opt/miniconda3/etc/profile.d/conda.sh && conda activate testbed" > /root/.bashrc | CODE |
| HIGH | swebench/harness/dockerfiles/go.py | 9 | RUN apt update && apt install -y \ | CODE |
| HIGH | swebench/harness/dockerfiles/php.py | 7 | RUN apt update && apt install -y \ | CODE |
| HIGH | swebench/harness/dockerfiles/javascript.py | 6 | RUN rm /bin/sh && ln -s /bin/bash /bin/sh | CODE |
| HIGH | swebench/harness/dockerfiles/javascript.py | 9 | RUN apt-get update && apt-get install -y \ | CODE |
| HIGH | swebench/harness/dockerfiles/javascript.py | 41 | RUN apt-get update && apt-get install -y \ | CODE |
| HIGH | swebench/harness/dockerfiles/javascript.py | 91 | RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y python{python_version} | CODE |
| HIGH | swebench/harness/dockerfiles/javascript.py | 145 | RUN apt update && apt install -y \ | CODE |
| HIGH⚡ | swebench/harness/dockerfiles/javascript.py | 156 | RUN bash -c "set -eo pipefail && curl -fsSL https://deb.nodesource.com/setup_{node_version}.x | bash -" | CODE |
| HIGH⚡ | swebench/harness/dockerfiles/javascript.py | 157 | RUN apt-get update && apt-get install -y nodejs | CODE |
| HIGH⚡ | swebench/harness/dockerfiles/javascript.py | 158 | RUN node -v && npm -v | CODE |
| HIGH | swebench/harness/dockerfiles/rust.py | 8 | RUN apt update && apt install -y \ | CODE |
| HIGH | swebench/harness/test_spec/python.py | 413 | # get_modified_files() only returns files with a real source (not /dev/null), | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | swebench/harness/log_parsers/ruby.py | 0 | args: log (str): log content returns: dict: test case to test status mapping | STRING |
| HIGH | swebench/harness/log_parsers/c.py | 0 | args: log (str): log content returns: dict: test case to test status mapping | STRING |
| HIGH | swebench/harness/log_parsers/rust.py | 0 | args: log (str): log content returns: dict: test case to test status mapping | STRING |
| HIGH | swebench/harness/dockerfiles/java.py | 0 | from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testb | STRING |
| HIGH | swebench/harness/dockerfiles/ruby.py | 0 | from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testb | STRING |
| HIGH | swebench/harness/dockerfiles/c.py | 0 | from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testb | STRING |
| HIGH | swebench/harness/dockerfiles/go.py | 0 | from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testb | STRING |
| HIGH | swebench/harness/dockerfiles/php.py | 0 | from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testb | STRING |
| HIGH | swebench/harness/dockerfiles/rust.py | 0 | from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testb | STRING |
| HIGH | swebench/harness/test_spec/utils.py | 0 | create a list of bash commands to set up the repository for testing. this is the setup script for the instance image. | STRING |
| HIGH | swebench/harness/test_spec/python.py | 0 | create a list of bash commands to set up the repository for testing. this is the setup script for the instance image. | STRING |
| HIGH | swebench/harness/test_spec/create_scripts.py | 0 | create a list of bash commands to set up the repository for testing. this is the setup script for the instance image. | STRING |
| HIGH | swebench/harness/test_spec/utils.py | 0 | creates the list of commands to set up the conda environment for testing. this is the setup script for the environment i | STRING |
| HIGH | swebench/harness/test_spec/create_scripts.py | 0 | creates the list of commands to set up the conda environment for testing. this is the setup script for the environment i | STRING |
| HIGH | swebench/harness/test_spec/python.py | 0 | creates the list of commands to set up the conda environment for testing. this is the setup script for the environment i | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | swebench/__init__.py | 3 | CODE | |
| LOW | swebench/__init__.py | 4 | CODE | |
| LOW | swebench/__init__.py | 5 | CODE | |
| LOW | swebench/__init__.py | 7 | CODE | |
| LOW | swebench/__init__.py | 7 | CODE | |
| LOW | swebench/__init__.py | 7 | CODE | |
| LOW | swebench/__init__.py | 7 | CODE | |
| LOW | swebench/__init__.py | 14 | CODE | |
| LOW | swebench/__init__.py | 14 | CODE | |
| LOW | swebench/__init__.py | 14 | CODE | |
| LOW | swebench/__init__.py | 14 | CODE | |
| LOW | swebench/__init__.py | 14 | CODE | |
| LOW | swebench/__init__.py | 14 | CODE | |
| LOW | swebench/__init__.py | 14 | CODE | |
| LOW | swebench/__init__.py | 24 | CODE | |
| LOW | swebench/__init__.py | 24 | CODE | |
| LOW | swebench/__init__.py | 24 | CODE | |
| LOW | swebench/__init__.py | 24 | CODE | |
| LOW | swebench/__init__.py | 24 | CODE | |
| LOW | swebench/__init__.py | 32 | CODE | |
| LOW | swebench/__init__.py | 32 | CODE | |
| LOW | swebench/__init__.py | 32 | CODE | |
| LOW | swebench/__init__.py | 32 | CODE | |
| LOW | swebench/__init__.py | 32 | CODE | |
| LOW | swebench/__init__.py | 32 | CODE | |
| LOW | swebench/__init__.py | 32 | CODE | |
| LOW | swebench/__init__.py | 42 | CODE | |
| LOW | swebench/__init__.py | 46 | CODE | |
| LOW | swebench/__init__.py | 50 | CODE | |
| LOW | swebench/__init__.py | 54 | CODE | |
| LOW | swebench/__init__.py | 54 | CODE | |
| LOW | swebench/__init__.py | 59 | CODE | |
| LOW | swebench/__init__.py | 59 | CODE | |
| LOW | swebench/__init__.py | 59 | CODE | |
| LOW | swebench/__init__.py | 59 | CODE | |
| LOW | swebench/__init__.py | 66 | CODE | |
| LOW | swebench/collect/print_pulls.py | 5 | CODE | |
| LOW | swebench/collect/utils.py | 1 | CODE | |
| LOW | swebench/harness/run_evaluation.py | 1 | CODE | |
| LOW | swebench/harness/docker_utils.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/__init__.py | 1 | CODE | |
| LOW | swebench/harness/docker_build.py | 1 | CODE | |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 3 | CODE | |
| LOW | swebench/harness/modal_eval/__init__.py | 1 | CODE | |
| LOW | swebench/harness/modal_eval/__init__.py | 2 | CODE | |
| LOW | swebench/harness/constants/__init__.py | 5 | CODE | |
| LOW | swebench/harness/constants/__init__.py | 6 | CODE | |
| LOW | swebench/harness/constants/__init__.py | 7 | CODE | |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | swebench/collect/get_tasks_pipeline.py | 89 | except Exception as e: | CODE |
| MEDIUM | swebench/collect/get_tasks_pipeline.py | 91 | print(f"Something went wrong for {repo}, skipping: {e}") | CODE |
| LOW | swebench/collect/utils.py | 152 | except Exception as e: | CODE |
| MEDIUM | swebench/collect/make_repo/call_make_repo.py | 16 | print(f"Error making mirror repo for {repo}") | CODE |
| MEDIUM | swebench/collect/cleanup/remove_envs.py | 56 | print(f"Error: {e}") | CODE |
| MEDIUM | swebench/collect/cleanup/remove_envs.py | 57 | print(f"Error output: {e.stderr}") | CODE |
| MEDIUM | swebench/collect/cleanup/remove_envs.py | 83 | print(f"Error: {e}") | CODE |
| MEDIUM | swebench/collect/cleanup/remove_envs.py | 84 | print(f"Error output: {e.stderr.decode('utf-8')}") | CODE |
| LOW | swebench/harness/run_evaluation.py | 257 | except Exception as e: | CODE |
| LOW | swebench/harness/docker_utils.py | 94 | except Exception as e: | CODE |
| LOW | swebench/harness/docker_utils.py | 136 | except Exception as e: | CODE |
| LOW | swebench/harness/docker_utils.py | 153 | except Exception as e2: | CODE |
| LOW | swebench/harness/docker_utils.py | 166 | except Exception as e: | CODE |
| LOW | swebench/harness/docker_utils.py | 198 | except Exception as e: | CODE |
| LOW | swebench/harness/docker_utils.py | 289 | except Exception as e: | CODE |
| MEDIUM | swebench/harness/docker_utils.py | 290 | print(f"Error removing image {image_name}: {e}") | CODE |
| LOW⚡ | swebench/harness/utils.py | 104 | except Exception as e: | CODE |
| LOW | swebench/harness/utils.py | 127 | except Exception: | CODE |
| LOW | swebench/harness/remove_containers.py | 35 | except Exception as e: | CODE |
| MEDIUM | swebench/harness/remove_containers.py | 36 | print(f"Error removing container {instance_id}: {e}") | CODE |
| LOW | swebench/harness/docker_build.py | 155 | except Exception as e: | CODE |
| LOW | swebench/harness/docker_build.py | 502 | except Exception as e: | CODE |
| LOW | swebench/harness/docker_build.py | 527 | except Exception as e: | CODE |
| MEDIUM | swebench/harness/modal_eval/run_evaluation_modal.py | 99 | print(f"Error reading stream: {e}") | CODE |
| MEDIUM | swebench/harness/modal_eval/run_evaluation_modal.py | 135 | print(f"Error during command execution: {e}") | CODE |
| MEDIUM | swebench/harness/modal_eval/run_evaluation_modal.py | 259 | print(f"Error creating sandbox: {e}") | CODE |
| LOW⚡ | swebench/harness/modal_eval/run_evaluation_modal.py | 150 | except Exception: | CODE |
| LOW⚡ | swebench/harness/modal_eval/run_evaluation_modal.py | 154 | except Exception: | CODE |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 98 | except Exception as e: | CODE |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 134 | except Exception as e: | CODE |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 258 | except Exception as e: | CODE |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 376 | except Exception as e: | CODE |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 458 | except Exception: | CODE |
| LOW | swebench/inference/run_api.py | 274 | except Exception as e: | CODE |
| LOW | swebench/inference/run_api.py | 315 | except Exception as e: | CODE |
| LOW | swebench/inference/run_api.py | 389 | except Exception as e: | CODE |
| LOW | swebench/inference/run_llama.py | 330 | except Exception as e: | CODE |
| LOW | swebench/inference/make_datasets/create_instance.py | 484 | except Exception as e: | CODE |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 58 | except Exception as e: | CODE |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 96 | except Exception as e: | CODE |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 138 | except Exception as e: | CODE |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 332 | except Exception as e: | CODE |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 343 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | swebench/collect/get_top_pypi.py | 20 | CODE | |
| LOW | swebench/collect/build_dataset_ft.py | 13 | CODE | |
| LOW | swebench/collect/utils.py | 337 | CODE | |
| LOW | swebench/collect/utils.py | 50 | CODE | |
| LOW | swebench/collect/utils.py | 111 | CODE | |
| LOW | swebench/collect/build_dataset.py | 97 | CODE | |
| LOW | swebench/harness/docker_utils.py | 295 | CODE | |
| LOW | swebench/harness/utils.py | 133 | CODE | |
| LOW | swebench/harness/docker_build.py | 76 | CODE | |
| LOW | swebench/harness/reporting.py | 17 | CODE | |
| LOW | swebench/harness/log_parsers/java.py | 6 | CODE | |
| LOW | swebench/harness/log_parsers/java.py | 68 | CODE | |
| LOW | swebench/harness/log_parsers/java.py | 85 | CODE | |
| LOW | swebench/harness/log_parsers/ruby.py | 7 | CODE | |
| LOW | swebench/harness/log_parsers/ruby.py | 30 | CODE | |
| LOW | swebench/harness/log_parsers/ruby.py | 50 | CODE | |
| LOW | swebench/harness/log_parsers/ruby.py | 69 | CODE | |
| LOW | swebench/harness/log_parsers/c.py | 8 | CODE | |
| LOW | swebench/harness/log_parsers/c.py | 35 | CODE | |
| LOW | swebench/harness/log_parsers/c.py | 57 | CODE | |
| LOW | swebench/harness/log_parsers/c.py | 94 | CODE | |
| LOW | swebench/harness/log_parsers/c.py | 113 | CODE | |
| LOW | swebench/harness/log_parsers/python.py | 29 | CODE | |
| LOW | swebench/harness/log_parsers/python.py | 64 | CODE | |
| LOW | swebench/harness/log_parsers/python.py | 144 | CODE | |
| LOW | swebench/harness/log_parsers/python.py | 173 | CODE | |
| LOW | swebench/harness/log_parsers/go.py | 6 | CODE | |
| LOW | swebench/harness/log_parsers/php.py | 6 | CODE | |
| LOW | swebench/harness/log_parsers/javascript.py | 8 | CODE | |
| LOW | swebench/harness/log_parsers/javascript.py | 182 | CODE | |
| LOW | swebench/harness/log_parsers/javascript.py | 208 | CODE | |
| LOW | swebench/harness/log_parsers/javascript.py | 229 | CODE | |
| LOW | swebench/harness/log_parsers/javascript.py | 250 | CODE | |
| LOW | swebench/harness/log_parsers/javascript.py | 299 | CODE | |
| LOW | swebench/harness/log_parsers/rust.py | 7 | CODE | |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 394 | CODE | |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 139 | CODE | |
| LOW | …/harness/modal_eval/run_evaluation_modal_entrypoint.py | 16 | CODE | |
| LOW | …/harness/modal_eval/run_evaluation_modal_entrypoint.py | 27 | CODE | |
| LOW | swebench/harness/test_spec/python.py | 138 | CODE | |
| LOW | swebench/harness/test_spec/javascript.py | 14 | CODE | |
| LOW | swebench/inference/run_api.py | 406 | CODE | |
| LOW | swebench/inference/run_llama.py | 28 | CODE | |
| LOW | swebench/inference/run_llama.py | 246 | CODE | |
| LOW | swebench/inference/llamao/modeling_flash_llama.py | 935 | CODE | |
| LOW | swebench/inference/make_datasets/create_instance.py | 340 | CODE | |
| LOW | swebench/inference/make_datasets/utils.py | 237 | CODE | |
| LOW | swebench/inference/make_datasets/utils.py | 277 | CODE | |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 81 | CODE | |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 104 | CODE | |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 276 | CODE | |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 309 | CODE | |
| LOW | swebench/inference/make_datasets/create_text_dataset.py | 114 | CODE | |
| LOW | swebench/versioning/get_versions.py | 58 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_harness_utils.py | 7 | def test_run_threadpool_all_failures(self): | CODE |
| LOW | tests/test_harness_utils.py | 16 | def test_environment_yml_cleaner(self): | CODE |
| LOW | tests/test_harness_utils.py | 88 | def test_environment_yml_cleaner_version_specifiers(self): | CODE |
| LOW | tests/test_harness_utils.py | 141 | def test_environment_yml_cleaner_no_pip_section(self): | CODE |
| LOW | tests/test_harness_utils.py | 152 | def test_requirements_txt_cleaner_version_specifiers(self): | CODE |
| LOW | tests/test_log_parsers_java.py | 19 | def test_ignores_non_test_lines(self): | STRING |
| LOW | tests/test_log_parsers_java.py | 30 | def test_interleaved_logs_race_condition(self): | STRING |
| LOW | tests/test_log_parsers_java.py | 50 | def test_parse_sequential_output(self): | CODE |
| LOW | tests/test_log_parsers_java.py | 63 | def test_interleaved_commands_race_condition(self): | STRING |
| LOW | tests/test_log_parsers_java.py | 79 | def test_delayed_build_result_after_marker(self): | STRING |
| LOW | swebench/collect/utils.py | 235 | def extract_problem_statement_and_hints(pull: dict, repo: Repo) -> tuple[str, str]: | CODE |
| LOW | swebench/collect/utils.py | 337 | def extract_problem_statement_and_hints_django( | CODE |
| LOW | swebench/collect/cleanup/remove_envs.py | 30 | def delete_folders_with_prefix(prefix, conda_path): | CODE |
| LOW | swebench/collect/make_lite/criteria.py | 107 | def contains_non_modified_files(patch_text: str) -> bool: | CODE |
| LOW | swebench/collect/make_lite/criteria.py | 115 | def contains_pytest_match_arg(patch_test_text: str) -> bool: | CODE |
| LOW | swebench/harness/run_evaluation.py | 356 | def run_evaluation_with_progress(*args): | CODE |
| LOW | swebench/harness/utils.py | 41 | def get_predictions_from_file(predictions_path: str, dataset_name: str, split: str): | CODE |
| LOW | swebench/harness/utils.py | 274 | def has_attribute_or_import_error(log_before): | CODE |
| LOW | swebench/harness/utils.py | 372 | def load_cached_environment_yml(instance_id: str) -> str: | CODE |
| LOW | swebench/harness/log_parsers/ruby.py | 69 | def parse_log_rspec_transformed_json(log: str, test_spec: TestSpec) -> dict[str, str]: | CODE |
| LOW | swebench/harness/log_parsers/c.py | 94 | def parse_log_micropython_test(log: str, test_spec: TestSpec) -> dict[str, str]: | CODE |
| LOW | swebench/harness/modal_eval/utils.py | 4 | def validate_modal_credentials(): | CODE |
| LOW | swebench/harness/constants/java.py | 5 | def make_lombok_pre_install_script(tests: List[str]) -> List[str]: | CODE |
| LOW | swebench/harness/constants/java.py | 34 | def make_lucene_pre_install_script() -> List[str]: | STRING |
| LOW | swebench/harness/constants/java.py | 90 | def make_rxjava_pre_install_script() -> List[str]: | STRING |
| LOW | swebench/harness/test_spec/test_spec.py | 117 | def get_instance_container_name(self, run_id=None): | CODE |
| LOW | swebench/harness/test_spec/test_spec.py | 155 | def get_test_specs_from_dataset( | CODE |
| LOW | swebench/harness/test_spec/utils.py | 22 | def make_repo_script_list_common( | CODE |
| LOW | swebench/harness/test_spec/utils.py | 45 | def make_env_script_list_common(instance, specs, env_name) -> list: | CODE |
| LOW | swebench/harness/test_spec/utils.py | 59 | def make_eval_script_list_common( | CODE |
| LOW | swebench/harness/test_spec/python.py | 32 | def get_environment_yml_by_commit(repo: str, commit: str, env_name: str) -> str: | CODE |
| LOW | swebench/harness/test_spec/python.py | 138 | def get_requirements_by_commit(repo: str, commit: str) -> str: | CODE |
| LOW | swebench/harness/test_spec/python.py | 320 | def make_env_script_list_py_from_conda( | CODE |
| LOW | swebench/harness/test_spec/javascript.py | 71 | def get_download_img_commands(instance) -> list: | CODE |
| LOW | swebench/inference/llamao/modeling_flash_llama.py | 554 | def _set_gradient_checkpointing(self, module, value=False): | CODE |
| LOW | swebench/inference/llamao/modeling_flash_llama.py | 875 | def prepare_inputs_for_generation( | CODE |
| LOW | swebench/inference/make_datasets/create_instance.py | 139 | def make_code_text_edits_only(files_dict, patch, add_line_numbers=True): | CODE |
| LOW | swebench/inference/make_datasets/utils.py | 237 | def ingest_file_directory_contents(target_file, root_dir): | CODE |
| LOW | swebench/inference/make_datasets/utils.py | 277 | def ingest_directory_contents(root_dir, include_tests=False): | CODE |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 81 | def file_name_and_documentation(filename, relative_path): | CODE |
| LOW | swebench/inference/make_datasets/create_text_dataset.py | 45 | def get_training_and_eval_instances(raw_files, test_dataset): | CODE |
| LOW | swebench/inference/make_datasets/create_text_dataset.py | 99 | def construct_output_filename( | CODE |
| LOW | swebench/versioning/get_versions.py | 106 | def map_version_to_task_instances(task_instances: list) -> dict: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | swebench/collect/make_repo/make_repo.sh | 12 | # Check if the target repository exists | COMMENT |
| LOW | swebench/collect/make_repo/make_repo.sh | 27 | # Check if the new repository already exists | COMMENT |
| LOW | swebench/collect/make_repo/make_repo.sh | 37 | # Check if the repository creation was successful | COMMENT |
| LOW | swebench/collect/make_repo/make_repo.sh | 49 | # Check if the local repository directory already exists | COMMENT |
| LOW | swebench/harness/run_evaluation.py | 231 | # Check if git diff changed after running eval script | COMMENT |
| LOW | swebench/harness/prepare_images.py | 38 | # Check if all instance IDs are in the dataset | COMMENT |
| LOW | swebench/harness/prepare_images.py | 50 | # Check if the instance needs to be built (based on force_rebuild flag and existing images) | COMMENT |
| LOW | swebench/harness/docker_utils.py | 27 | # Check if destination path is valid | COMMENT |
| LOW | swebench/harness/docker_utils.py | 246 | # Check if the base image is in this image's history | COMMENT |
| LOW | swebench/harness/grading.py | 263 | # Check if the model patch exists | COMMENT |
| LOW⚡ | swebench/harness/utils.py | 101 | # Check if instance ran successfully | COMMENT |
| LOW | swebench/harness/docker_build.py | 192 | # Check if the base image already exists | COMMENT |
| LOW | swebench/harness/docker_build.py | 240 | # Check if the base image exists | COMMENT |
| LOW | swebench/harness/docker_build.py | 253 | # Check if the environment image exists | COMMENT |
| LOW | swebench/harness/docker_build.py | 442 | # Check if the instance image already exists | COMMENT |
| LOW | swebench/harness/modal_eval/run_evaluation_modal.py | 331 | # Check if git diff changed after running eval script | COMMENT |
| LOW | …ch/versioning/extract_web/get_versions_pvlib-python.py | 50 | # Assign version to each task instance | COMMENT |
| LOW | …ebench/versioning/extract_web/get_versions_sqlfluff.py | 71 | # Iterate through data_tasks and assign versions | COMMENT |
| LOW | swebench/versioning/extract_web/get_versions_astropy.py | 49 | # Assign version to each task instance | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | swebench/collect/print_pulls.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/collect/utils.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/collect/build_dataset.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/harness/__init__.py | 17 | __all__ = [ | CODE |
| LOW | swebench/harness/log_parsers/__init__.py | 22 | __all__ = [ | CODE |
| LOW | swebench/harness/modal_eval/__init__.py | 5 | __all__ = [ | CODE |
| LOW | swebench/harness/dockerfiles/__init__.py | 103 | __all__ = [ | CODE |
| LOW | swebench/harness/test_spec/__init__.py | 9 | __all__ = [ | CODE |
| LOW | swebench/inference/run_api.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/inference/run_llama.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/inference/run_live.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/inference/make_datasets/eval_retrieval.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/inference/make_datasets/create_instance.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/inference/make_datasets/tokenize_dataset.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/inference/make_datasets/bm25_retrieval.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/inference/make_datasets/create_text_dataset.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | swebench/versioning/get_versions.py | 22 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | swebench/harness/utils.py | 96 | # Create a future for running each instance | COMMENT |
| MEDIUM | swebench/harness/docker_build.py | 97 | # Create a logger for the build process | COMMENT |
| MEDIUM | swebench/harness/docker_build.py | 509 | # Create the container | COMMENT |
| MEDIUM | swebench/harness/modal_eval/run_evaluation_modal.py | 1 | # This file contains logic for running evaluations on Modal: <https://modal.com/>. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/installation.md | 27 | ### Install dependencies for dataset generation or RAG inference | COMMENT |
| MEDIUM | docs/guides/create_rag_datasets.md | 1 | # Creating RAG Datasets for SWE-bench | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | swebench/inference/run_llama.py | 106 | Loads a base model and optionally PEFT adapters. Args: model_name_or_path (str): The name or path of t | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | swebench/inference/llamao/modeling_flash_llama.py | 590 | CODE | |
| LOW | swebench/inference/llamao/modeling_flash_llama.py | 767 | CODE | |
| LOW | swebench/inference/llamao/modeling_flash_llama.py | 935 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | swebench/inference/llamao/modeling_flash_llama.py | 1 | # Copyright 2022 EleutherAI and the HuggingFace Inc. team. All rights reserved. | COMMENT |