Repository Analysis

jazzband/pip-tools

A set of tools to keep your pinned Python dependencies fresh.

19.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of jazzband/pip-tools, a Python project with 8,009 GitHub stars. SynthScan v2.0 examined 20,220 lines of code across 109 source files, recording 429 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 19.4 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).

19.4
Adjusted Score
19.4
Raw Score
100%
Time Factor
2026-07-29
Last Push
8.0K
Stars
Python
Language
20.2K
Lines of Code
109
Files
429
Pattern Hits
2026-08-02
Scan Date
0.00
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 0MEDIUM 13LOW 416

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 429 distinct pattern matches across 11 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 Identifiers295 hits · 242 pts
SeverityFileLineSnippetContext
LOWpiptools/sync.py155def _direct_url_has_archive_hash(direct_url: DirectUrl) -> bool:CODE
LOWpiptools/build.py55def maybe_statically_parse_project_metadata(CODE
LOWpiptools/build.py212def _temporary_constraints_file_set_for_pip(CODE
LOWpiptools/build.py284def _build_project_wheel_metadata(CODE
LOWpiptools/build.py326def _prepare_build_requirements(CODE
LOWpiptools/utils.py122def _build_direct_reference_best_efforts(ireq: InstallRequirement) -> str:CODE
LOWpiptools/utils.py404def get_required_pip_specification() -> SpecifierSet:CODE
LOWpiptools/utils.py418def get_sys_path_for_python_executable(python_executable: str) -> list[str]:CODE
LOWpiptools/utils.py445def override_defaults_from_config_file(CODE
LOWpiptools/utils.py478def _assign_config_to_cli_context(CODE
LOWpiptools/utils.py622def _normalize_keys_in_config(config: dict[str, _t.Any]) -> dict[str, _t.Any]:CODE
LOWpiptools/utils.py626def _invert_negative_bool_options_in_config(CODE
LOWpiptools/resolver.py78def combine_install_requirements(CODE
LOWpiptools/resolver.py171 def _filter_out_unsafe_constraints(STRING
LOWpiptools/resolver.py716 def _get_install_requirements(STRING
LOWpiptools/resolver.py753 def _get_reverse_dependencies(CODE
LOWpiptools/resolver.py778 def _get_install_requirement_from_candidate(CODE
LOWpiptools/_internal/_pip_api/install_requirements.py14def create_install_requirement(CODE
LOWpiptools/_internal/_pip_api/install_requirements.py37def create_install_requirement_from_line(CODE
LOWpiptools/_internal/_pip_api/package_finder.py16def finder_allows_prereleases_of_req(CODE
LOWpiptools/_internal/_pip_api/package_finder.py33def finder_allows_all_prereleases(finder: PackageFinder) -> bool:CODE
LOWpiptools/_internal/_pip_api/pip_version.py16def get_pip_version_for_python_executable(python_executable: str) -> Version:CODE
LOWpiptools/repositories/local.py20def ireq_satisfied_by_existing_pin(CODE
LOWpiptools/repositories/pypi.py483def open_local_or_remote_file(link: Link, session: Session) -> Iterator[FileStream]:CODE
LOWpiptools/scripts/sync.py174def _validate_python_executable(python_executable: str) -> None:CODE
LOWpiptools/scripts/sync.py260def _get_installed_distributions(CODE
LOWpiptools/scripts/_deprecations.py9def filter_deprecated_pip_args(args: list[str]) -> list[str]:CODE
LOWpiptools/_compat/pip_compat.py133def _rewrite_comes_from_to_hardcoded_stdin_value(_: str, /) -> str:CODE
LOWpiptools/_compat/pip_compat.py138def _relativize_comes_from_location(original_comes_from: str, /) -> str:CODE
LOWpiptools/_compat/pip_compat.py170def _normalize_comes_from_location(original_comes_from: str, /) -> str:CODE
LOWtests/test_circular_imports.py44def _discover_path_importables(pkg_pth: Path, pkg_name: str) -> Iterator[str]:CODE
LOWtests/test_circular_imports.py66def _allowed_deprecation_warning_filters() -> list[str]:CODE
LOWtests/test_repository_local.py11def test_get_hashes_local_repository_cache_miss(CODE
LOWtests/test_repository_local.py24def test_get_hashes_local_repository_cache_hit(from_line, repository):CODE
LOWtests/test_repository_local.py43def test_toggle_reuse_hashes_local_repository(CODE
LOWtests/test_utils.py139def test_format_requirement_url(from_line, line, expected):CODE
LOWtests/test_utils.py144def test_format_requirement_editable_vcs(from_editable):CODE
LOWtests/test_utils.py149def test_format_requirement_editable_vcs_with_password(from_editable):CODE
LOWtests/test_utils.py156def test_format_requirement_editable_local_path(from_editable):CODE
LOWtests/test_utils.py161def test_format_requirement_ireq_with_hashes(from_line):CODE
LOWtests/test_utils.py272def test_is_pinned_requirement(from_line, line, expected):CODE
LOWtests/test_utils.py277def test_is_pinned_requirement_editable(from_editable):CODE
LOWtests/test_utils.py282def test_key_from_ireq_normalization(from_line):CODE
LOWtests/test_utils.py748def test_callback_config_file_defaults_unreadable_toml(make_config_file):CODE
LOWtests/test_utils.py758def test_select_config_file_no_files(tmpdir_cwd):CODE
LOWtests/test_utils.py763def test_select_config_file_returns_config_in_cwd(make_config_file, filename):CODE
LOWtests/test_utils.py768def test_select_config_file_returns_empty_config_file_in_cwd(tmpdir_cwd):CODE
LOWtests/test_utils.py775def test_select_config_file_cannot_find_config_in_cwd(tmpdir_cwd, make_config_file):CODE
LOWtests/test_utils.py780def test_select_config_file_with_config_file_in_subdir(tmpdir_cwd, make_config_file):CODE
LOWtests/test_utils.py789def test_select_config_file_prefers_pip_tools_toml_over_pyproject_toml(tmpdir_cwd):CODE
LOWtests/test_utils.py178def test_format_requirement_ireq_with_hashes_and_markers(from_line):CODE
LOWtests/test_utils.py243def test_get_hashes_from_ireq(from_line):CODE
LOWtests/test_utils.py298def test_key_from_req_on_install_requirement(CODE
LOWtests/test_utils.py318def test_key_from_req_on_specifier_requirement(CODE
LOWtests/test_utils.py346def test_is_url_requirement_filename(caplog, from_line, line):CODE
LOWtests/test_utils.py455def test_get_compile_command_with_config(tmpdir_cwd, config_file, expected_command):CODE
LOWtests/test_utils.py472def test_get_compile_command_does_not_include_default_config_if_reqs_file_in_subdir(CODE
LOWtests/test_utils.py493def test_get_compile_command_escaped_filenames(tmpdir_cwd):CODE
LOWtests/test_utils.py506def test_get_compile_command_with_files(tmpdir_cwd, filename):CODE
LOWtests/test_utils.py525def test_get_compile_command_sort_args(tmpdir_cwd):CODE
235 more matches not shown…
Unused Imports87 hits · 86 pts
SeverityFileLineSnippetContext
LOWpiptools/sync.py1CODE
LOWpiptools/build.py1CODE
LOWpiptools/logging.py1CODE
LOWpiptools/cache.py1CODE
LOWpiptools/__init__.py1CODE
LOWpiptools/utils.py1CODE
LOWpiptools/resolver.py1CODE
LOWpiptools/exceptions.py1CODE
LOWpiptools/writer.py1CODE
LOWpiptools/__main__.py1CODE
LOWpiptools/locations.py1CODE
LOWpiptools/_internal/_subprocess.py3CODE
LOWpiptools/_internal/_pip_api/__init__.py6CODE
LOWpiptools/_internal/_pip_api/__init__.py8CODE
LOWpiptools/_internal/_pip_api/__init__.py9CODE
LOWpiptools/_internal/_pip_api/__init__.py9CODE
LOWpiptools/_internal/_pip_api/__init__.py9CODE
LOWpiptools/_internal/_pip_api/__init__.py14CODE
LOWpiptools/_internal/_pip_api/__init__.py14CODE
LOWpiptools/_internal/_pip_api/__init__.py18CODE
LOWpiptools/_internal/_pip_api/__init__.py18CODE
LOWpiptools/_internal/_pip_api/__init__.py18CODE
LOWpiptools/_internal/_pip_api/__init__.py18CODE
LOWpiptools/_internal/_pip_api/cli_options.py5CODE
LOWpiptools/_internal/_pip_api/install_requirements.py1CODE
LOWpiptools/_internal/_pip_api/package_finder.py8CODE
LOWpiptools/_internal/_pip_api/pip_version.py1CODE
LOWpiptools/repositories/local.py1CODE
LOWpiptools/repositories/__init__.py1CODE
LOWpiptools/repositories/__init__.py3CODE
LOWpiptools/repositories/__init__.py4CODE
LOWpiptools/repositories/pypi.py1CODE
LOWpiptools/repositories/base.py1CODE
LOWpiptools/scripts/sync.py1CODE
LOWpiptools/scripts/options.py1CODE
LOWpiptools/scripts/_deprecations.py3CODE
LOWpiptools/scripts/compile.py1CODE
LOWpiptools/_compat/path_compat.py6CODE
LOWpiptools/_compat/_tomllib_compat.py1CODE
LOWpiptools/_compat/_tomllib_compat.py6CODE
LOWpiptools/_compat/_tomllib_compat.py6CODE
LOWpiptools/_compat/_tomllib_compat.py6CODE
LOWpiptools/_compat/_tomllib_compat.py8CODE
LOWpiptools/_compat/_tomllib_compat.py8CODE
LOWpiptools/_compat/_tomllib_compat.py8CODE
LOWpiptools/_compat/pip_compat.py1CODE
LOWpiptools/_compat/pip_compat.py37CODE
LOWpiptools/_compat/__init__.py1CODE
LOWpiptools/_compat/__init__.py3CODE
LOWpiptools/_compat/__init__.py3CODE
LOWpiptools/_compat/__init__.py3CODE
LOWpiptools/_compat/__init__.py3CODE
LOWpiptools/_compat/__init__.py3CODE
LOWpiptools/_compat/tempfile_compat.py6CODE
LOWtests/test_circular_imports.py13CODE
LOWtests/test_repository_local.py1CODE
LOWtests/test_utils.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_logging.py1CODE
LOWtests/test_sync.py1CODE
27 more matches not shown…
Self-Referential Comments10 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMpiptools/writer.py135 "# This file is autogenerated by pip-compile with Python "CODE
MEDIUMtests/test_repository_local.py25 # Create an install requirement with the hashes included in its optionsCOMMENT
MEDIUMtests/test_repository_local.py46 # Create an install requirement with the hashes included in its optionsCOMMENT
MEDIUMtests/conftest.py343 # Create a README to avoid setuptools warnings.STRING
MEDIUMtests/conftest.py346 # Create a module to make the package importable.STRING
MEDIUMtests/conftest.py512 # Create a nested directory structure if config_file_name includes directoriesCOMMENT
MEDIUMtests/test_writer.py212 "# This file is autogenerated by pip-compile with Python "CODE
MEDIUMtests/test_writer.py231 "# This file is autogenerated by pip-compile with Python "CODE
MEDIUMtests/test_cache.py23 # Create the file and write to itCOMMENT
MEDIUMtests/test_cache.py85 # Create a cache object. The keys are packages, and the values are listsCOMMENT
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippetContext
LOWREADME.md121django==4.1.7COMMENT
LOWREADME.md381# by the following command:COMMENT
LOWREADME.md581#COMMENT
LOWREADME.md601 # pytestCOMMENT
LOWpiptools/build.py221 # NOTE: required on Windows so that the underlying `pip install`COMMENT
LOWtests/test_cli_compile.py3061 # small-fake-with-build-deps (pyproject.toml::build-system.backend::editable)COMMENT
LOWdocs/requirements.txt1#COMMENT
LOWdocs/requirements.txt21certifi==2026.1.4COMMENT
LOWdocs/requirements.txt41 # click-extraCOMMENT
LOWdocs/requirements.txt61markupsafe==3.0.3COMMENT
LOWdocs/requirements.txt81 # furoCOMMENT
LOWdocs/requirements.txt101 # via sphinxCOMMENT
LOWdocs/requirements.txt141typing-extensions==4.15.0COMMENT
LOWexamples/readme/constraints.txt1#COMMENT
LOWexamples/readme/constraints.txt21 # hatchlingCOMMENT
LOW.github/workflows/ci.yml481 ${{ runner.os }}-pip-COMMENT
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWpiptools/sync.py42CODE
LOWpiptools/sync.py96CODE
LOWpiptools/utils.py305CODE
LOWpiptools/resolver.py550CODE
LOWpiptools/scripts/sync.py198CODE
LOWpiptools/scripts/compile.py47CODE
LOWpiptools/scripts/compile.py145CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtox.ini90 # FIXME: re-enable the "-r" + "-c" paradigm once the pip bug is fixed.COMMENT
MEDIUMtox.ini166 # FIXME: re-enable the "-r" + "-c" paradigm once the pip bug is fixed.COMMENT
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpiptools/repositories/__init__.py6__all__ = ["LocalRequirementsRepository", "PyPIRepository"]CODE
LOWpiptools/_compat/_tomllib_compat.py11__all__ = ["TOMLDecodeError", "load", "loads"]CODE
LOWpiptools/_compat/__init__.py11__all__ = [CODE
LOWdocs/conf.py13logger = logging.getLogger(__name__)CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py83# -------------------------------------------------------------------------COMMENT
Redundant / Tautological Comments2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpiptools/utils.py143 # Check if there is any fragment to add to the URI.COMMENT
LOWpiptools/scripts/compile.py261 # Close the file at the end of the context executionSTRING
Excessive Try-Catch Wrapping4 hits · 2 pts
SeverityFileLineSnippetContext
LOWpiptools/utils.py533 except Exception as e:CODE
LOWtests/test_cli_compile.py3605 except Exception: # pragma: no coverSTRING
LOWtests/test_cli_compile.py3669 except Exception: # pragma: no coverSTRING
LOWtests/test_cli_compile.py3737 except Exception: # pragma: no coverSTRING
Structural Annotation Overuse1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpiptools/writer.py43 "# WARNING: The following packages were not pinned, but pip requires them to be"CODE