Repository Analysis

SWE-agent/SWE-agent

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

17.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of SWE-agent/SWE-agent, a Python project with 19,799 GitHub stars. SynthScan v2.0 examined 26,759 lines of code across 287 source files, recording 324 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 17.2 places this repository in the Moderate 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).

17.2
Adjusted Score
17.2
Raw Score
100%
Time Factor
2026-07-13
Last Push
19.8K
Stars
Python
Language
26.8K
Lines of Code
287
Files
324
Pattern Hits
2026-07-14
Scan Date
0.04
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 1HIGH 10MEDIUM 37LOW 276

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 324 distinct pattern matches across 18 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.

Hyper-Verbose Identifiers119 hits · 129 pts
SeverityFileLineSnippetContext
LOWtools/web_browser/lib/web_browser_utils.py98def _print_response_with_metadata(response):CODE
LOWtools/web_browser/lib/web_browser_utils.py120def _autosave_screenshot_from_response(response, mode):CODE
LOWtests/test_run_batch.py49def test_empty_instances_simple(test_data_sources_path: Path, tmp_path: Path):CODE
LOWtests/test_run_batch.py69def test_empty_instances_expert(test_data_sources_path: Path, tmp_path: Path):CODE
LOWtests/test_run_batch.py93# def test_run_batch_swe_bench_instances(tmp_path: Path):COMMENT
LOWtests/test_parsing.py29def test_thought_action_parser():CODE
LOWtests/test_parsing.py39def test_xml_thought_action_parser():CODE
LOWtests/test_parsing.py83def test_function_calling_parser():CODE
LOWtests/test_parsing.py128def test_function_calling_parser_error_message():CODE
LOWtests/test_utils.py9def test_convert_path_to_abspath():CODE
LOWtests/test_utils.py14def test_convert_paths_to_abspath():CODE
LOWtests/conftest.py40def test_ctf_trajectories_path(test_data_path) -> Path:CODE
LOWtests/conftest.py123def swe_agent_test_repo_clone(tmp_path):CODE
LOWtests/test_batch_instance.py11def test_simple_batch_from_swe_bench_to_full_batch_instance(test_data_sources_path):CODE
LOWtests/test_batch_instance.py26def test_simple_batch_treats_repo_names_containing_github_as_existing_repos(repo_name):CODE
LOWtests/test_batch_instance.py38def test_simple_batch_treats_github_urls_as_github_repos():CODE
LOWtests/test_batch_instance.py59def test_get_swe_bench_instances():CODE
LOWtests/test_agent.py31def thought_action_agent_config():CODE
LOWtests/test_agent.py41def function_calling_agent_config():CODE
LOWtests/test_agent.py149def test_run_step_by_step_checking_history(dummy_env: SWEEnv, default_agent: DefaultAgent, tmp_path):CODE
LOWtests/test_agent.py211def test_show_no_output_template(dummy_env: SWEEnv, default_agent: DefaultAgent, tmp_path):CODE
LOWtests/test_agent.py224def test_successful_submission(dummy_env: SWEEnv, default_agent: DefaultAgent, tmp_path):CODE
LOWtests/test_swesmith.py25 def test_with_mirror_and_token(self):CODE
LOWtests/test_swesmith.py38 def test_with_mirror_no_token(self):CODE
LOWtests/test_swesmith.py116 def test_other_http_error_raises(self, mock_urlopen):CODE
LOWtests/test_swesmith.py191 def test_private_repo_no_token_raises(self, mock_private, tmp_path):CODE
LOWtests/test_run_hooks.py15def open_pr_hook_init_for_sop():CODE
LOWtests/test_run_hooks.py33def test_should_open_pr_fail_submission(open_pr_hook_init_for_sop, agent_run_result):CODE
LOWtests/test_run_hooks.py39def test_should_open_pr_fail_exit(open_pr_hook_init_for_sop, agent_run_result):CODE
LOWtests/test_run_hooks.py45def test_should_open_pr_fail_invalid_url(open_pr_hook_init_for_sop, agent_run_result):CODE
LOWtests/test_run_hooks.py51def test_should_open_pr_fail_closed(open_pr_hook_init_for_sop, agent_run_result):CODE
LOWtests/test_run_hooks.py57def test_should_open_pr_fail_assigned(open_pr_hook_init_for_sop, agent_run_result):CODE
LOWtests/test_run_hooks.py63def test_should_open_pr_fail_locked(open_pr_hook_init_for_sop, agent_run_result):CODE
LOWtests/test_run_hooks.py69def test_should_open_pr_fail_has_pr(open_pr_hook_init_for_sop, agent_run_result):CODE
LOWtests/test_run_hooks.py75def test_should_open_pr_success_has_pr_override(open_pr_hook_init_for_sop, agent_run_result):CODE
LOWtests/test_run_hooks.py82def test_save_apply_patch_hook_concurrent_workers_save_to_correct_dirs(tmp_path):CODE
LOWtests/test_run.py6def test_run_cli_no_arg_error():CODE
LOWtests/test_run.py30def test_run_cli_subcommand_help():CODE
LOWtests/test_env.py21def test_init_swe_env_conservative_clone(test_env_args):CODE
LOWtests/test_env.py51def test_env_communicate_with_handling(test_env_args):CODE
LOWtests/test_env.py57def test_env_communicate_with_handling_timeout(test_env_args):CODE
LOWtests/test_env.py64def test_env_interrupt_session(test_env_args):CODE
LOWtests/test_run_single.py24def test_run_single_raises_exception():CODE
LOWtests/test_run_single.py33def agent_config_with_commands():CODE
LOWtests/test_run_single.py84def test_run_ies_repo_ps_matrix(CODE
LOWtests/utils.py7def make_python_tool_importable(file_path: str | Path, module_name: str | None = None) -> None:CODE
LOWtests/test_tools_command_parsing.py6def test_command_parsing_formats():CODE
LOWtests/test_tools_command_parsing.py82def test_argument_name_patterns():CODE
LOWtests/test_tools_command_parsing.py107def test_signature_argument_consistency():CODE
LOWtests/test_tools_command_parsing.py131def test_function_calling_tool_generation():CODE
LOWtests/test_tools_command_parsing.py176def test_custom_argument_format():CODE
LOWtests/test_models.py41def test_user_agent_header_default():CODE
LOWtests/test_models.py63def test_user_agent_header_preserves_existing():CODE
LOWtests/test_models.py86def test_user_agent_header_with_other_extra_headers():CODE
LOWtests/test_env_utils.py19def test_format_trajectory_markdown(test_trajectory):CODE
LOWtests/test_env_utils.py25def test_remove_triple_backticks():CODE
LOWtests/test_env_utils.py46def test_parse_gh_repo_url_fails():CODE
LOWtests/test_env_utils.py63def test_parse_gh_issue_url_fails():CODE
LOWtests/test_env_utils.py75def test_get_associated_commit_urls():CODE
LOWtests/test_quick_stats.py10def test_quick_stats_empty_directory():CODE
59 more matches not shown…
Excessive Try-Catch Wrapping52 hits · 80 pts
SeverityFileLineSnippetContext
MEDIUMtools/windowed/lib/windowed_file.py210 print(f"Error: Text not found: {search}")CODE
MEDIUMtools/windowed/lib/windowed_file.py244 print(f"Error: Text not found: {search}")CODE
LOWtools/web_browser/lib/web_browser_utils.py61 except Exception as e:CODE
MEDIUMtools/web_browser/lib/web_browser_utils.py58def wrapper(*args, **kwargs):CODE
LOWtools/web_browser/lib/browser_manager.py230 except Exception:CODE
LOWtools/web_browser/lib/browser_manager.py240 except Exception:CODE
LOWtools/web_browser/lib/browser_manager.py247 except Exception:CODE
LOWdocs/usage/memory_sentinel.py134 except Exception as e:CODE
MEDIUMdocs/usage/hello_world_output.txt334 print(f"Error: {type(e).__name__}: {e}")' --new_str 'if __name__ == "__main__":CODE
MEDIUMdocs/usage/hello_world_output.txt340 print(f"Error: {type(e).__name__}: {e}")CODE
MEDIUMdocs/usage/hello_world_output.txt347 print(f"Error: {type(e).__name__}: {e}")CODE
MEDIUMdocs/usage/hello_world_output.txt354 print(f"Error: {type(e).__name__}: {e}")'CODE
MEDIUMdocs/usage/hello_world_output.txt370 13 print(f"Error: {type(e).__name__}: {e}")CODE
MEDIUMdocs/usage/hello_world_output.txt377 20 print(f"Error: {type(e).__name__}: {e}")CODE
MEDIUMdocs/usage/hello_world_output.txt384 27 print(f"Error: {type(e).__name__}: {e}")CODE
MEDIUMdocs/usage/hello_world_output.txt516 + print(f"Error: {type(e).__name__}: {e}")CODE
MEDIUMdocs/usage/hello_world_output.txt523 + print(f"Error: {type(e).__name__}: {e}")CODE
MEDIUMdocs/usage/hello_world_output.txt530 + print(f"Error: {type(e).__name__}: {e}")CODE
MEDIUMdocs/usage/hello_world_output.txt188 print(f"Error: {type(e).__name__}: {e}")'CODE
LOWdocs/usage/hello_world_output.txt333 except Exception as e:CODE
LOWdocs/usage/hello_world_output.txt339 except Exception as e:CODE
LOWdocs/usage/hello_world_output.txt346 except Exception as e:CODE
LOWdocs/usage/hello_world_output.txt353 except Exception as e:CODE
LOWdocs/usage/hello_world_output.txt187 except Exception as e:CODE
LOWsweagent/__init__.py57 except Exception:CODE
LOWsweagent/__init__.py67 except Exception:CODE
LOWsweagent/tools/tools.py283 except Exception:CODE
LOWsweagent/inspector/static.py43except Exception as e:STRING
LOWsweagent/inspector/static.py82 except Exception:CODE
MEDIUMsweagent/inspector/static.py49def _load_file(file_name, gold_patches, test_patches):CODE
LOWsweagent/utils/config.py26 except Exception:CODE
LOWsweagent/agent/models.py745 except Exception as e:CODE
LOWsweagent/agent/agents.py345 except Exception as e:CODE
LOWsweagent/agent/agents.py371 except Exception as e:CODE
LOWsweagent/agent/agents.py860 except Exception as e:CODE
LOWsweagent/agent/agents.py891 except Exception as e:CODE
LOWsweagent/agent/agents.py978 except Exception as f:CODE
LOWsweagent/agent/agents.py1053 except Exception as e:CODE
LOWsweagent/agent/agents.py1205 except Exception as e:CODE
LOWsweagent/agent/problem_statement.py208 except Exception as e:CODE
LOWsweagent/agent/problem_statement.py272 except Exception as e:CODE
LOWsweagent/agent/reviewer.py256 except Exception as e:CODE
LOWsweagent/agent/reviewer.py303 except Exception as e:CODE
LOWsweagent/agent/reviewer.py342 except Exception as e:CODE
LOWsweagent/agent/reviewer.py362 except Exception as e:CODE
LOWsweagent/agent/reviewer.py430 except Exception as e:CODE
LOWsweagent/run/quick_stats.py46 except Exception as e:CODE
LOWsweagent/run/remove_unfinished.py30 except Exception as e:CODE
LOWsweagent/run/run_batch.py319 except Exception as e:CODE
LOWsweagent/run/run_batch.py365 except Exception:CODE
LOWsweagent/run/run_batch.py402 except Exception as e:CODE
MEDIUMsweagent/run/run_batch.py189def _model_id(self) -> str:CODE
Unused Imports39 hits · 39 pts
SeverityFileLineSnippetContext
LOWtools/windowed/lib/windowed_file.py1CODE
LOWtools/windowed/lib/windowed_file.py2CODE
LOWtools/windowed/lib/windowed_file.py4CODE
LOWtools/registry/lib/registry.py4CODE
LOWtools/registry/lib/registry.py4CODE
LOWtools/registry/lib/registry.py4CODE
LOWtools/web_browser/lib/web_browser_utils.py1CODE
LOWtools/web_browser/lib/browser_manager.py1CODE
LOWtools/web_browser/lib/web_browser_config.py1CODE
LOWtools/web_browser/lib/web_browser_config.py4CODE
LOWtests/test_parsing.py1CODE
LOWtests/test_utils.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_packaging.py1CODE
LOWtests/test_swesmith.py1CODE
LOWtests/test_run.py1CODE
LOWtests/test_env.py1CODE
LOWtests/test_run_single.py1CODE
LOWtests/test_run_replay.py1CODE
LOWtests/test_models.py1CODE
LOWtests/test_env_utils.py1CODE
LOWtests/test_quick_stats.py1CODE
LOWtests/tools/test_split_string.py1CODE
LOWtests/test_commands/_interactive_dummy.py2CODE
LOWtests/test_data/data_sources/ctf/crypto/Katy/solver.py1CODE
LOWsweagent/__init__.py1CODE
LOWsweagent/types.py7CODE
LOWsweagent/tools/bundle.py1CODE
LOWsweagent/tools/commands.py19CODE
LOWsweagent/inspector/server.py1CODE
LOWsweagent/inspector/static.py1CODE
LOWsweagent/utils/config.py1CODE
LOWsweagent/utils/log.py1CODE
LOWsweagent/agent/history_processors.py1CODE
LOWsweagent/agent/models.py1CODE
LOWsweagent/agent/agents.py1CODE
LOWsweagent/agent/reviewer.py5CODE
LOWsweagent/agent/hooks/abstract.py7CODE
LOWsweagent/run/run_traj_to_demo.py6CODE
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsweagent/agent/problem_statement.py0convenience discriminator for (de)serialization/cli. do not change.STRING
HIGHsweagent/environment/repo.py0convenience discriminator for (de)serialization/cli. do not change.STRING
HIGHsweagent/run/batch_instances.py0convenience discriminator for (de)serialization/cli. do not change.STRING
HIGHsweagent/run/run_replay.py0path to a .env file to load environment variables from.STRING
HIGHsweagent/run/run_single.py0path to a .env file to load environment variables from.STRING
HIGHsweagent/run/run_batch.py0path to a .env file to load environment variables from.STRING
Redundant / Tautological Comments19 hits · 26 pts
SeverityFileLineSnippetContext
LOW…_from_url__t-0.00__p-0.95__c-3.00__install-1/args.yaml84 \ return fi # Check if the file already exists if [ -e \"\CODE
LOW…_from_url__t-0.00__p-0.95__c-3.00__install-1/args.yaml94 code: 'submit() { cd $ROOT # Check if the patch file exists and is non-empty ifCODE
LOW…_from_url__t-0.00__p-0.95__c-3.00__install-1/args.yaml144 code: 'search_file() { # Check if the first argument is provided if [CODE
LOW…_from_url__t-0.00__p-0.95__c-3.00__install-1/args.yaml153 file is open fi local file="$CURRENT_FILE" # Set file to theCODE
LOW…_from_url__t-0.00__p-0.95__c-3.00__install-1/args.yaml156 -nH -- "$search_term" "$file") # Check if no matches were found if [CODE
LOW…_from_url__t-0.00__p-0.95__c-3.00__install-1/args.yaml226 "$CURRENT_FILE")_backup" # Read the file line by line into an array mapfileCODE
LOW…__default__t-0.00__p-0.95__c-3.00__install-1/args.yaml85 \ return fi # Check if the file already exists if [ -e \"\CODE
LOW…__default__t-0.00__p-0.95__c-3.00__install-1/args.yaml95 code: 'submit() { cd $ROOT # Check if the patch file exists and is non-empty ifCODE
LOW…__default__t-0.00__p-0.95__c-3.00__install-1/args.yaml145 code: 'search_file() { # Check if the first argument is provided if [CODE
LOW…__default__t-0.00__p-0.95__c-3.00__install-1/args.yaml154 file is open fi local file="$CURRENT_FILE" # Set file to theCODE
LOW…__default__t-0.00__p-0.95__c-3.00__install-1/args.yaml157 -nH -- "$search_term" "$file") # Check if no matches were found if [CODE
LOW…__default__t-0.00__p-0.95__c-3.00__install-1/args.yaml227 "$CURRENT_FILE")_backup" # Read the file line by line into an array mapfileCODE
LOWsweagent/tools/parsing.py155 # Check if it's not nested within another blockCOMMENT
LOWsweagent/tools/parsing.py293 # Check if all required arguments are thereSTRING
LOWsweagent/tools/parsing.py300 # Check if all arguments are validSTRING
LOWsweagent/tools/parsing.py490 # Check if required keys are presentCOMMENT
LOWsweagent/tools/parsing.py503 # Check if required keys are present in 'command' objectCOMMENT
LOWsweagent/run/run_batch.py383 # Check if there's an existing trajectory for this instanceCOMMENT
LOWsweagent/run/hooks/open_pr.py231 # Check if adding this step would exceed the character limitCOMMENT
Self-Referential Comments8 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUMconfig/bash_only.yaml130 ### Create a new file:COMMENT
MEDIUMtests/test_quick_stats.py19 # Create a sample .traj file with required structureCOMMENT
MEDIUMtests/test_quick_stats.py24 # Create a minimal valid .traj fileCOMMENT
MEDIUM…_from_url__t-0.00__p-0.95__c-3.00__install-1/args.yaml86 \ return fi # Create the file an empty new line printf \"\\\CODE
MEDIUM…__default__t-0.00__p-0.95__c-3.00__install-1/args.yaml87 \ return fi # Create the file an empty new line printf \"\\\CODE
MEDIUMsweagent/environment/swe_env.py62 """This class represents the environment in which we solve the tasks.STRING
MEDIUMsweagent/run/rich_test.py39 # Create a spinner for this taskCOMMENT
MEDIUMsweagent/run/common.py196 """This class implements a basic CLI for SWE-agent. It is based on pydantic-settings, i.e., takesSTRING
Deep Nesting22 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/web_browser/lib/browser_manager.py216CODE
LOWdocs/usage/memory_sentinel.py95CODE
LOWsweagent/tools/parsing.py469CODE
LOWsweagent/tools/utils.py8CODE
LOWsweagent/tools/utils.py46CODE
LOWsweagent/inspector/server.py295CODE
LOWsweagent/inspector/server.py254CODE
LOWsweagent/inspector/static.py49CODE
LOWsweagent/inspector/static.py96CODE
LOWsweagent/utils/log.py57CODE
LOWsweagent/utils/log.py93CODE
LOWsweagent/utils/log.py160CODE
LOWsweagent/agent/history_processors.py320CODE
LOWsweagent/agent/models.py328CODE
LOWsweagent/agent/models.py875CODE
LOWsweagent/agent/models.py384CODE
LOWsweagent/agent/models.py840CODE
LOWsweagent/agent/problem_statement.py294CODE
LOWsweagent/agent/reviewer.py40CODE
LOWsweagent/run/run.py70CODE
LOWsweagent/run/compare_runs.py69CODE
LOWsweagent/run/run_batch.py268CODE
Decorative Section Separators7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMsweagent/tools/tools.py250 # --------------------COMMENT
MEDIUMsweagent/tools/tools.py315 # -------------COMMENT
MEDIUMsweagent/tools/tools.py370 # -----------------------------COMMENT
MEDIUMsweagent/agent/history_processors.py20# -----------------COMMENT
MEDIUMsweagent/agent/history_processors.py71# ------------------COMMENT
MEDIUMsweagent/agent/agents.py522 # ----------COMMENT
MEDIUMsweagent/agent/reviewer.py579 # ----------COMMENT
Structural Annotation Overuse15 hits · 18 pts
SeverityFileLineSnippetContext
LOWdocs/usage/hello_world_output.txt324 ## Step 5: Think about edge cases and make sure the fix handles themCOMMENT
LOWdocs/usage/hello_world_output.txt85 ## Step 1: Find and read code relevant to the PR descriptionCOMMENT
LOWdocs/usage/hello_world_output.txt172 ## Step 2: Create a script to reproduce the errorCOMMENT
LOWdocs/usage/hello_world_output.txt232 ## Step 3: Edit the source code to resolve the issueCOMMENT
LOWdocs/usage/hello_world_output.txt295 ## Step 4: Rerun the script to confirm the fixCOMMENT
LOWdocs/usage/hello_world_output.txt76 outlined.\n\n## Step 1: Find and read code relevant to the PR description\n\nFirst, let's explore the reposiCODE
LOWdocs/usage/hello_world_output.txt159 Python, function definitions need to end with a colon before the function body. The error message in the PR CODE
LOWdocs/usage/hello_world_output.txt221 definition.\n\n## Step 3: Edit the source code to resolve the issue\n\nNow, let's fix both instances of the CODE
LOWdocs/usage/hello_world_output.txt288 choices=[Choices(finish_reason='tool_calls', index=0, message=Message(content="## Step 4: Rerun the script tCODE
LOWdocs/usage/hello_world_output.txt309 zero. This confirms that our fix for the syntax error is working correctly.\n\n## Step 5: Think about edge cCODE
LOWdocs/usage/adding_custom_tools.md27## Step 1: Write the Command ScriptCOMMENT
LOWdocs/usage/adding_custom_tools.md59## Step 2: Define the Tool ConfigurationCOMMENT
LOWdocs/usage/adding_custom_tools.md97## Step 3: Tell the agent to use the new toolCOMMENT
LOWdocs/usage/adding_custom_tools.md119## Step 4: Let's test itCOMMENT
LOWsweagent/run/batch_instances.py276 # IMPORTANT: Do not call this `path`, because then if people do not specify instance.type,COMMENT
Slop Phrases6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMconfig/default_backticks.yaml2# This template is heavily inspired by anthropic's computer use demo, but you can useCOMMENT
MEDIUMconfig/default.yaml2# This template is heavily inspired by anthropic's computer use demo, but you can useCOMMENT
MEDIUMconfig/demo/no_instructions.yaml2# This template is heavily inspired by anthropic's computer use demo, but you can useCOMMENT
MEDIUMconfig/demo/only_bash.yaml2# This template is heavily inspired by anthropic's computer use demo, but you can useCOMMENT
MEDIUMconfig/demo/default.yaml2# This template is heavily inspired by anthropic's computer use demo, but you can useCOMMENT
MEDIUMconfig/benchmarks/anthropic_filemap_multilingual.yaml1# This template is heavily inspired by anthropic, but you can use it with any LM. It is almostCOMMENT
Modern Structural Boilerplate12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtools/windowed/lib/windowed_file.py177 def set_window_text(self, new_text: str, *, line_range: Optional[Tuple[int, int]] = None) -> None:CODE
LOWsweagent/__init__.py108__all__ = [CODE
LOWsweagent/inspector/static.py18logger = logging.getLogger(__name__)CODE
LOWsweagent/utils/log.py160def set_stream_handler_levels(level: int) -> None:CODE
LOWsweagent/agent/history_processors.py38def _set_content_text(entry: HistoryItem, text: str) -> None:CODE
LOWsweagent/agent/history_processors.py53def _set_cache_control(entry: HistoryItem) -> None:CODE
LOWsweagent/agent/models.py632 def _update_stats(self, *, input_tokens: int, output_tokens: int, cost: float) -> None:CODE
LOWsweagent/environment/swe_env.py256 def set_env_variables(self, env_variables: dict[str, str]) -> None:CODE
LOWsweagent/run/run_single.py99 def set_default_output_dir(self) -> None:CODE
LOWsweagent/run/run_batch.py103 def set_default_output_dir(self) -> None:CODE
LOWsweagent/run/inspector_cli.py115 def update_content(self) -> None:CODE
LOWsweagent/run/_progress.py103 def _update_total_costs(self) -> None:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtests/test_data/data_sources/debug_20240322.json1[{"repo": "scikit-learn/scikit-learn", "instance_id": "scikit-learn__scikit-learn-11574", "base_commit": "dd69361a0d9c6cCODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/test_swesmith.py87 assert _is_repo_private("org/repo", "fake-token") is FalseCODE
LOWtests/test_swesmith.py99 assert _is_repo_private("org/repo", "fake-token") is TrueCODE
LOWtests/test_swesmith.py113 assert _is_repo_private("org/repo", "fake-token") is TrueCODE
LOWtests/test_swesmith.py128 _is_repo_private("org/repo", "fake-token")CODE
LOWtests/test_models.py19 api_key=SecretStr("dummy_key"),CODE
LOWtests/test_models.py46 api_key=SecretStr("dummy_key"),CODE
LOWtests/test_models.py70 api_key=SecretStr("dummy_key"),CODE
LOWtests/test_models.py92 api_key=SecretStr("dummy_key"),CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWmkdocs.yml161 - assets/mkdocstrings.cssCOMMENT
LOWmkdocs.yml181 # note: >-COMMENT
LOWtests/test_run_batch.py101# "test",COMMENT
LOWtests/tools/test_default_utils.py101# cmd = f"{sys.executable} {DEFAULT_TOOLS_BIN}/goto 50"COMMENT
LOW…test_data/data_sources/ctf/misc/networking_1/README.md1# Networking 1COMMENT
LOW.devcontainer/sample_keys.cfg1# All keys are commented out by default. Make sure to remove the leading '#' of the relevant linesCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/installation/keys.md29See the following links for tutorials on obtaining [Anthropic](https://docs.anthropic.com/en/api/getting-started), [OpenCODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsweagent/agent/agents.py856 submission_command = "git add -A && git diff --cached > /root/model.patch"CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsweagent/agent/problem_statement.py219Download an image from URL and convert it to base64 markdown format. Args: url: The URL of the imagSTRING
Synthetic Comment Markers1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHdocs/usage/memory_sentinel.py13Script was generated by Claude 3.7 with the following prompt:STRING