Repository Analysis

SWE-bench/SWE-bench

SWE-bench: Can Language Models Resolve Real-world Github Issues?

8.3 Low AI signal View on GitHub

Analysis Overview

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).

8.3
Adjusted Score
8.3
Raw Score
100%
Time Factor
2026-08-08
Last Push
5.6K
Stars
Python
Language
66.6K
Lines of Code
633
Files
307
Pattern Hits
2026-08-09
Scan Date
0.08
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 52MEDIUM 17LOW 238

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 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.

Cross-Language Confusion36 hits · 190 pts
SeverityFileLineSnippetContext
HIGHswebench/harness/utils.py353 Get the list of new files in a patch (source is /dev/null).STRING
HIGHswebench/harness/modal_eval/run_evaluation_modal.py164 "conda activate testbed && python -m pip install -r $HOME/requirements.txt",CODE
HIGHswebench/harness/modal_eval/run_evaluation_modal.py165 "conda activate testbed && python -m pip install --trusted-host pypi-mirror.modal.local -r $HOME/requirementCODE
HIGHswebench/harness/modal_eval/run_evaluation_modal.py210 "echo 'source /opt/miniconda3/etc/profile.d/conda.sh && conda activate testbed' >> /root/.bashrc",CODE
HIGHswebench/harness/modal_eval/run_evaluation_modal.py273 "cd /testbed && git apply -v /tmp/patch.diff",CODE
HIGHswebench/harness/modal_eval/run_evaluation_modal.py280 "cd /testbed && patch --batch --fuzz=5 -p1 -i /tmp/patch.diff",CODE
HIGHswebench/harness/modal_eval/run_evaluation_modal.py297 "cd /testbed && git diff",CODE
HIGHswebench/harness/modal_eval/run_evaluation_modal.py329 git_diff_output_after, returncode = runner.exec("cd /testbed && git diff")CODE
HIGHswebench/harness/constants/java.py30 f"{{ head -n -1 {build_file}; echo {escaped_xml}; tail -n 1 {build_file}; }} > temp_file && mv temp_file {build_STRING
HIGHswebench/harness/constants/java.py70 def repeatLength = startItem.length() + output.length() + endItem.length()CODE
HIGHswebench/harness/constants/java.py133 def repeatLength = startItem.length() + output.length() + endItem.length()CODE
HIGHswebench/harness/constants/python.py102 "apt-get update && apt-get install -y locales",CODE
HIGHswebench/harness/constants/python.py384 "apt-get -y update && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get install -y imagemagick ffCODE
HIGHswebench/harness/constants/python.py420 "apt-get -y update && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get install -y imagemagicCODE
HIGHswebench/harness/constants/python.py441 "apt-get -y update && apt-get -y upgrade && apt-get install -y imagemagick ffmpeg libfreetype6-dev pkg-cCODE
HIGHswebench/harness/constants/python.py461 "apt-get -y update && apt-get -y upgrade && && apt-get install -y imagemagick ffmpeg"CODE
HIGHswebench/harness/constants/python.py529 SPECS_SPHINX[k]["pre_install"] += ["apt-get update && apt-get install -y graphviz"]CODE
HIGHswebench/harness/constants/python.py666 "apt-get update && apt-get install -y libenchant-2-dev hunspell-en-us"CODE
HIGHswebench/harness/constants/python.py786 "apt-get update && apt-get install -y ffmpeg libsm6 libxext6 libxrender1"CODE
HIGHswebench/harness/dockerfiles/java.py7RUN apt update && apt install -y \CODE
HIGHswebench/harness/dockerfiles/ruby.py7RUN apt update && apt install -y \CODE
HIGHswebench/harness/dockerfiles/c.py11RUN apt update && apt install -y \CODE
HIGHswebench/harness/dockerfiles/python.py7RUN apt update && apt install -y \CODE
HIGHswebench/harness/dockerfiles/python.py45RUN echo "source /opt/miniconda3/etc/profile.d/conda.sh && conda activate testbed" > /root/.bashrcCODE
HIGHswebench/harness/dockerfiles/go.py9RUN apt update && apt install -y \CODE
HIGHswebench/harness/dockerfiles/php.py7RUN apt update && apt install -y \CODE
HIGHswebench/harness/dockerfiles/javascript.py6RUN rm /bin/sh && ln -s /bin/bash /bin/shCODE
HIGHswebench/harness/dockerfiles/javascript.py9RUN apt-get update && apt-get install -y \CODE
HIGHswebench/harness/dockerfiles/javascript.py41RUN apt-get update && apt-get install -y \CODE
HIGHswebench/harness/dockerfiles/javascript.py91RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y python{python_version}CODE
HIGHswebench/harness/dockerfiles/javascript.py145RUN apt update && apt install -y \CODE
HIGHswebench/harness/dockerfiles/javascript.py156RUN bash -c "set -eo pipefail && curl -fsSL https://deb.nodesource.com/setup_{node_version}.x | bash -"CODE
HIGHswebench/harness/dockerfiles/javascript.py157RUN apt-get update && apt-get install -y nodejsCODE
HIGHswebench/harness/dockerfiles/javascript.py158RUN node -v && npm -vCODE
HIGHswebench/harness/dockerfiles/rust.py8RUN apt update && apt install -y \CODE
HIGHswebench/harness/test_spec/python.py413 # get_modified_files() only returns files with a real source (not /dev/null),COMMENT
Cross-File Repetition15 hits · 75 pts
SeverityFileLineSnippetContext
HIGHswebench/harness/log_parsers/ruby.py0args: log (str): log content returns: dict: test case to test status mappingSTRING
HIGHswebench/harness/log_parsers/c.py0args: log (str): log content returns: dict: test case to test status mappingSTRING
HIGHswebench/harness/log_parsers/rust.py0args: log (str): log content returns: dict: test case to test status mappingSTRING
HIGHswebench/harness/dockerfiles/java.py0from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testbSTRING
HIGHswebench/harness/dockerfiles/ruby.py0from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testbSTRING
HIGHswebench/harness/dockerfiles/c.py0from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testbSTRING
HIGHswebench/harness/dockerfiles/go.py0from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testbSTRING
HIGHswebench/harness/dockerfiles/php.py0from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testbSTRING
HIGHswebench/harness/dockerfiles/rust.py0from --platform={platform} {env_image_name} copy ./setup_repo.sh /root/ run /bin/bash /root/setup_repo.sh workdir /testbSTRING
HIGHswebench/harness/test_spec/utils.py0create a list of bash commands to set up the repository for testing. this is the setup script for the instance image.STRING
HIGHswebench/harness/test_spec/python.py0create a list of bash commands to set up the repository for testing. this is the setup script for the instance image.STRING
HIGHswebench/harness/test_spec/create_scripts.py0create a list of bash commands to set up the repository for testing. this is the setup script for the instance image.STRING
HIGHswebench/harness/test_spec/utils.py0creates the list of commands to set up the conda environment for testing. this is the setup script for the environment iSTRING
HIGHswebench/harness/test_spec/create_scripts.py0creates the list of commands to set up the conda environment for testing. this is the setup script for the environment iSTRING
HIGHswebench/harness/test_spec/python.py0creates the list of commands to set up the conda environment for testing. this is the setup script for the environment iSTRING
Unused Imports69 hits · 61 pts
SeverityFileLineSnippetContext
LOWswebench/__init__.py3CODE
LOWswebench/__init__.py4CODE
LOWswebench/__init__.py5CODE
LOWswebench/__init__.py7CODE
LOWswebench/__init__.py7CODE
LOWswebench/__init__.py7CODE
LOWswebench/__init__.py7CODE
LOWswebench/__init__.py14CODE
LOWswebench/__init__.py14CODE
LOWswebench/__init__.py14CODE
LOWswebench/__init__.py14CODE
LOWswebench/__init__.py14CODE
LOWswebench/__init__.py14CODE
LOWswebench/__init__.py14CODE
LOWswebench/__init__.py24CODE
LOWswebench/__init__.py24CODE
LOWswebench/__init__.py24CODE
LOWswebench/__init__.py24CODE
LOWswebench/__init__.py24CODE
LOWswebench/__init__.py32CODE
LOWswebench/__init__.py32CODE
LOWswebench/__init__.py32CODE
LOWswebench/__init__.py32CODE
LOWswebench/__init__.py32CODE
LOWswebench/__init__.py32CODE
LOWswebench/__init__.py32CODE
LOWswebench/__init__.py42CODE
LOWswebench/__init__.py46CODE
LOWswebench/__init__.py50CODE
LOWswebench/__init__.py54CODE
LOWswebench/__init__.py54CODE
LOWswebench/__init__.py59CODE
LOWswebench/__init__.py59CODE
LOWswebench/__init__.py59CODE
LOWswebench/__init__.py59CODE
LOWswebench/__init__.py66CODE
LOWswebench/collect/print_pulls.py5CODE
LOWswebench/collect/utils.py1CODE
LOWswebench/harness/run_evaluation.py1CODE
LOWswebench/harness/docker_utils.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/__init__.py1CODE
LOWswebench/harness/docker_build.py1CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py3CODE
LOWswebench/harness/modal_eval/__init__.py1CODE
LOWswebench/harness/modal_eval/__init__.py2CODE
LOWswebench/harness/constants/__init__.py5CODE
LOWswebench/harness/constants/__init__.py6CODE
LOWswebench/harness/constants/__init__.py7CODE
9 more matches not shown…
Excessive Try-Catch Wrapping43 hits · 56 pts
SeverityFileLineSnippetContext
LOWswebench/collect/get_tasks_pipeline.py89 except Exception as e:CODE
MEDIUMswebench/collect/get_tasks_pipeline.py91 print(f"Something went wrong for {repo}, skipping: {e}")CODE
LOWswebench/collect/utils.py152 except Exception as e:CODE
MEDIUMswebench/collect/make_repo/call_make_repo.py16 print(f"Error making mirror repo for {repo}")CODE
MEDIUMswebench/collect/cleanup/remove_envs.py56 print(f"Error: {e}")CODE
MEDIUMswebench/collect/cleanup/remove_envs.py57 print(f"Error output: {e.stderr}")CODE
MEDIUMswebench/collect/cleanup/remove_envs.py83 print(f"Error: {e}")CODE
MEDIUMswebench/collect/cleanup/remove_envs.py84 print(f"Error output: {e.stderr.decode('utf-8')}")CODE
LOWswebench/harness/run_evaluation.py257 except Exception as e:CODE
LOWswebench/harness/docker_utils.py94 except Exception as e:CODE
LOWswebench/harness/docker_utils.py136 except Exception as e:CODE
LOWswebench/harness/docker_utils.py153 except Exception as e2:CODE
LOWswebench/harness/docker_utils.py166 except Exception as e:CODE
LOWswebench/harness/docker_utils.py198 except Exception as e:CODE
LOWswebench/harness/docker_utils.py289 except Exception as e:CODE
MEDIUMswebench/harness/docker_utils.py290 print(f"Error removing image {image_name}: {e}")CODE
LOWswebench/harness/utils.py104 except Exception as e:CODE
LOWswebench/harness/utils.py127 except Exception:CODE
LOWswebench/harness/remove_containers.py35 except Exception as e:CODE
MEDIUMswebench/harness/remove_containers.py36 print(f"Error removing container {instance_id}: {e}")CODE
LOWswebench/harness/docker_build.py155 except Exception as e:CODE
LOWswebench/harness/docker_build.py502 except Exception as e:CODE
LOWswebench/harness/docker_build.py527 except Exception as e:CODE
MEDIUMswebench/harness/modal_eval/run_evaluation_modal.py99 print(f"Error reading stream: {e}")CODE
MEDIUMswebench/harness/modal_eval/run_evaluation_modal.py135 print(f"Error during command execution: {e}")CODE
MEDIUMswebench/harness/modal_eval/run_evaluation_modal.py259 print(f"Error creating sandbox: {e}")CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py150 except Exception:CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py154 except Exception:CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py98 except Exception as e:CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py134 except Exception as e:CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py258 except Exception as e:CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py376 except Exception as e:CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py458 except Exception:CODE
LOWswebench/inference/run_api.py274 except Exception as e:CODE
LOWswebench/inference/run_api.py315 except Exception as e:CODE
LOWswebench/inference/run_api.py389 except Exception as e:CODE
LOWswebench/inference/run_llama.py330 except Exception as e:CODE
LOWswebench/inference/make_datasets/create_instance.py484 except Exception as e:CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py58 except Exception as e:CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py96 except Exception as e:CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py138 except Exception as e:CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py332 except Exception as e:CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py343 except Exception:CODE
Deep Nesting54 hits · 53 pts
SeverityFileLineSnippetContext
LOWswebench/collect/get_top_pypi.py20CODE
LOWswebench/collect/build_dataset_ft.py13CODE
LOWswebench/collect/utils.py337CODE
LOWswebench/collect/utils.py50CODE
LOWswebench/collect/utils.py111CODE
LOWswebench/collect/build_dataset.py97CODE
LOWswebench/harness/docker_utils.py295CODE
LOWswebench/harness/utils.py133CODE
LOWswebench/harness/docker_build.py76CODE
LOWswebench/harness/reporting.py17CODE
LOWswebench/harness/log_parsers/java.py6CODE
LOWswebench/harness/log_parsers/java.py68CODE
LOWswebench/harness/log_parsers/java.py85CODE
LOWswebench/harness/log_parsers/ruby.py7CODE
LOWswebench/harness/log_parsers/ruby.py30CODE
LOWswebench/harness/log_parsers/ruby.py50CODE
LOWswebench/harness/log_parsers/ruby.py69CODE
LOWswebench/harness/log_parsers/c.py8CODE
LOWswebench/harness/log_parsers/c.py35CODE
LOWswebench/harness/log_parsers/c.py57CODE
LOWswebench/harness/log_parsers/c.py94CODE
LOWswebench/harness/log_parsers/c.py113CODE
LOWswebench/harness/log_parsers/python.py29CODE
LOWswebench/harness/log_parsers/python.py64CODE
LOWswebench/harness/log_parsers/python.py144CODE
LOWswebench/harness/log_parsers/python.py173CODE
LOWswebench/harness/log_parsers/go.py6CODE
LOWswebench/harness/log_parsers/php.py6CODE
LOWswebench/harness/log_parsers/javascript.py8CODE
LOWswebench/harness/log_parsers/javascript.py182CODE
LOWswebench/harness/log_parsers/javascript.py208CODE
LOWswebench/harness/log_parsers/javascript.py229CODE
LOWswebench/harness/log_parsers/javascript.py250CODE
LOWswebench/harness/log_parsers/javascript.py299CODE
LOWswebench/harness/log_parsers/rust.py7CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py394CODE
LOWswebench/harness/modal_eval/run_evaluation_modal.py139CODE
LOW…/harness/modal_eval/run_evaluation_modal_entrypoint.py16CODE
LOW…/harness/modal_eval/run_evaluation_modal_entrypoint.py27CODE
LOWswebench/harness/test_spec/python.py138CODE
LOWswebench/harness/test_spec/javascript.py14CODE
LOWswebench/inference/run_api.py406CODE
LOWswebench/inference/run_llama.py28CODE
LOWswebench/inference/run_llama.py246CODE
LOWswebench/inference/llamao/modeling_flash_llama.py935CODE
LOWswebench/inference/make_datasets/create_instance.py340CODE
LOWswebench/inference/make_datasets/utils.py237CODE
LOWswebench/inference/make_datasets/utils.py277CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py81CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py104CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py276CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py309CODE
LOWswebench/inference/make_datasets/create_text_dataset.py114CODE
LOWswebench/versioning/get_versions.py58CODE
Hyper-Verbose Identifiers43 hits · 40 pts
SeverityFileLineSnippetContext
LOWtests/test_harness_utils.py7 def test_run_threadpool_all_failures(self):CODE
LOWtests/test_harness_utils.py16 def test_environment_yml_cleaner(self):CODE
LOWtests/test_harness_utils.py88 def test_environment_yml_cleaner_version_specifiers(self):CODE
LOWtests/test_harness_utils.py141 def test_environment_yml_cleaner_no_pip_section(self):CODE
LOWtests/test_harness_utils.py152 def test_requirements_txt_cleaner_version_specifiers(self):CODE
LOWtests/test_log_parsers_java.py19 def test_ignores_non_test_lines(self):STRING
LOWtests/test_log_parsers_java.py30 def test_interleaved_logs_race_condition(self):STRING
LOWtests/test_log_parsers_java.py50 def test_parse_sequential_output(self):CODE
LOWtests/test_log_parsers_java.py63 def test_interleaved_commands_race_condition(self):STRING
LOWtests/test_log_parsers_java.py79 def test_delayed_build_result_after_marker(self):STRING
LOWswebench/collect/utils.py235def extract_problem_statement_and_hints(pull: dict, repo: Repo) -> tuple[str, str]:CODE
LOWswebench/collect/utils.py337def extract_problem_statement_and_hints_django(CODE
LOWswebench/collect/cleanup/remove_envs.py30def delete_folders_with_prefix(prefix, conda_path):CODE
LOWswebench/collect/make_lite/criteria.py107def contains_non_modified_files(patch_text: str) -> bool:CODE
LOWswebench/collect/make_lite/criteria.py115def contains_pytest_match_arg(patch_test_text: str) -> bool:CODE
LOWswebench/harness/run_evaluation.py356 def run_evaluation_with_progress(*args):CODE
LOWswebench/harness/utils.py41def get_predictions_from_file(predictions_path: str, dataset_name: str, split: str):CODE
LOWswebench/harness/utils.py274def has_attribute_or_import_error(log_before):CODE
LOWswebench/harness/utils.py372def load_cached_environment_yml(instance_id: str) -> str:CODE
LOWswebench/harness/log_parsers/ruby.py69def parse_log_rspec_transformed_json(log: str, test_spec: TestSpec) -> dict[str, str]:CODE
LOWswebench/harness/log_parsers/c.py94def parse_log_micropython_test(log: str, test_spec: TestSpec) -> dict[str, str]:CODE
LOWswebench/harness/modal_eval/utils.py4def validate_modal_credentials():CODE
LOWswebench/harness/constants/java.py5def make_lombok_pre_install_script(tests: List[str]) -> List[str]:CODE
LOWswebench/harness/constants/java.py34def make_lucene_pre_install_script() -> List[str]:STRING
LOWswebench/harness/constants/java.py90def make_rxjava_pre_install_script() -> List[str]:STRING
LOWswebench/harness/test_spec/test_spec.py117 def get_instance_container_name(self, run_id=None):CODE
LOWswebench/harness/test_spec/test_spec.py155def get_test_specs_from_dataset(CODE
LOWswebench/harness/test_spec/utils.py22def make_repo_script_list_common(CODE
LOWswebench/harness/test_spec/utils.py45def make_env_script_list_common(instance, specs, env_name) -> list:CODE
LOWswebench/harness/test_spec/utils.py59def make_eval_script_list_common(CODE
LOWswebench/harness/test_spec/python.py32def get_environment_yml_by_commit(repo: str, commit: str, env_name: str) -> str:CODE
LOWswebench/harness/test_spec/python.py138def get_requirements_by_commit(repo: str, commit: str) -> str:CODE
LOWswebench/harness/test_spec/python.py320def make_env_script_list_py_from_conda(CODE
LOWswebench/harness/test_spec/javascript.py71def get_download_img_commands(instance) -> list:CODE
LOWswebench/inference/llamao/modeling_flash_llama.py554 def _set_gradient_checkpointing(self, module, value=False):CODE
LOWswebench/inference/llamao/modeling_flash_llama.py875 def prepare_inputs_for_generation(CODE
LOWswebench/inference/make_datasets/create_instance.py139def make_code_text_edits_only(files_dict, patch, add_line_numbers=True):CODE
LOWswebench/inference/make_datasets/utils.py237def ingest_file_directory_contents(target_file, root_dir):CODE
LOWswebench/inference/make_datasets/utils.py277def ingest_directory_contents(root_dir, include_tests=False):CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py81def file_name_and_documentation(filename, relative_path):CODE
LOWswebench/inference/make_datasets/create_text_dataset.py45def get_training_and_eval_instances(raw_files, test_dataset):CODE
LOWswebench/inference/make_datasets/create_text_dataset.py99def construct_output_filename(CODE
LOWswebench/versioning/get_versions.py106def map_version_to_task_instances(task_instances: list) -> dict:CODE
Redundant / Tautological Comments19 hits · 29 pts
SeverityFileLineSnippetContext
LOWswebench/collect/make_repo/make_repo.sh12# Check if the target repository existsCOMMENT
LOWswebench/collect/make_repo/make_repo.sh27# Check if the new repository already existsCOMMENT
LOWswebench/collect/make_repo/make_repo.sh37# Check if the repository creation was successfulCOMMENT
LOWswebench/collect/make_repo/make_repo.sh49# Check if the local repository directory already existsCOMMENT
LOWswebench/harness/run_evaluation.py231 # Check if git diff changed after running eval scriptCOMMENT
LOWswebench/harness/prepare_images.py38 # Check if all instance IDs are in the datasetCOMMENT
LOWswebench/harness/prepare_images.py50 # Check if the instance needs to be built (based on force_rebuild flag and existing images)COMMENT
LOWswebench/harness/docker_utils.py27 # Check if destination path is validCOMMENT
LOWswebench/harness/docker_utils.py246 # Check if the base image is in this image's historyCOMMENT
LOWswebench/harness/grading.py263 # Check if the model patch existsCOMMENT
LOWswebench/harness/utils.py101 # Check if instance ran successfullyCOMMENT
LOWswebench/harness/docker_build.py192 # Check if the base image already existsCOMMENT
LOWswebench/harness/docker_build.py240 # Check if the base image existsCOMMENT
LOWswebench/harness/docker_build.py253 # Check if the environment image existsCOMMENT
LOWswebench/harness/docker_build.py442 # Check if the instance image already existsCOMMENT
LOWswebench/harness/modal_eval/run_evaluation_modal.py331 # Check if git diff changed after running eval scriptCOMMENT
LOW…ch/versioning/extract_web/get_versions_pvlib-python.py50# Assign version to each task instanceCOMMENT
LOW…ebench/versioning/extract_web/get_versions_sqlfluff.py71# Iterate through data_tasks and assign versionsCOMMENT
LOWswebench/versioning/extract_web/get_versions_astropy.py49# Assign version to each task instanceCOMMENT
Modern Structural Boilerplate17 hits · 17 pts
SeverityFileLineSnippetContext
LOWswebench/collect/print_pulls.py20logger = logging.getLogger(__name__)CODE
LOWswebench/collect/utils.py18logger = logging.getLogger(__name__)CODE
LOWswebench/collect/build_dataset.py18logger = logging.getLogger(__name__)CODE
LOWswebench/harness/__init__.py17__all__ = [CODE
LOWswebench/harness/log_parsers/__init__.py22__all__ = [CODE
LOWswebench/harness/modal_eval/__init__.py5__all__ = [CODE
LOWswebench/harness/dockerfiles/__init__.py103__all__ = [CODE
LOWswebench/harness/test_spec/__init__.py9__all__ = [CODE
LOWswebench/inference/run_api.py29logger = logging.getLogger(__name__)CODE
LOWswebench/inference/run_llama.py23logger = logging.getLogger(__name__)CODE
LOWswebench/inference/run_live.py44logger = logging.getLogger(__name__)CODE
LOWswebench/inference/make_datasets/eval_retrieval.py15logger = logging.getLogger(__name__)CODE
LOWswebench/inference/make_datasets/create_instance.py18logger = logging.getLogger(__name__)CODE
LOWswebench/inference/make_datasets/tokenize_dataset.py16logger = logging.getLogger(__name__)CODE
LOWswebench/inference/make_datasets/bm25_retrieval.py22logger = logging.getLogger(__name__)CODE
LOWswebench/inference/make_datasets/create_text_dataset.py22logger = logging.getLogger(__name__)CODE
LOWswebench/versioning/get_versions.py22logger = logging.getLogger(__name__)CODE
Self-Referential Comments4 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMswebench/harness/utils.py96 # Create a future for running each instanceCOMMENT
MEDIUMswebench/harness/docker_build.py97 # Create a logger for the build processCOMMENT
MEDIUMswebench/harness/docker_build.py509 # Create the containerCOMMENT
MEDIUMswebench/harness/modal_eval/run_evaluation_modal.py1# This file contains logic for running evaluations on Modal: <https://modal.com/>.COMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdocs/installation.md27### Install dependencies for dataset generation or RAG inferenceCOMMENT
MEDIUMdocs/guides/create_rag_datasets.md1# Creating RAG Datasets for SWE-benchCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHswebench/inference/run_llama.py106 Loads a base model and optionally PEFT adapters. Args: model_name_or_path (str): The name or path of tSTRING
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWswebench/inference/llamao/modeling_flash_llama.py590CODE
LOWswebench/inference/llamao/modeling_flash_llama.py767CODE
LOWswebench/inference/llamao/modeling_flash_llama.py935CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWswebench/inference/llamao/modeling_flash_llama.py1# Copyright 2022 EleutherAI and the HuggingFace Inc. team. All rights reserved.COMMENT