Repository Analysis

pex-tool/pex

A tool for generating .pex (Python EXecutable) files, lock files and venvs.

25.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pex-tool/pex, a Python project with 4,216 GitHub stars. SynthScan v2.0 examined 166,818 lines of code across 654 source files, recording 4190 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 25.1 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).

25.1
Adjusted Score
25.1
Raw Score
100%
Time Factor
2026-07-12
Last Push
4.2K
Stars
Python
Language
166.8K
Lines of Code
654
Files
4.2K
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 0HIGH 28MEDIUM 15LOW 4147

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 4190 distinct pattern matches across 17 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.

Unused Imports2835 hits · 2721 pts
SeverityFileLineSnippetContext
LOWsetup.py4CODE
LOWpex/requirement_key.py4CODE
LOWpex/requirement_key.py6CODE
LOWpex/requirement_key.py7CODE
LOWpex/requirement_key.py11CODE
LOWpex/bootstrap.py5CODE
LOWpex/bootstrap.py5CODE
LOWpex/bootstrap.py14CODE
LOWpex/bootstrap.py14CODE
LOWpex/pep_508.py4CODE
LOWpex/pep_508.py7CODE
LOWpex/pep_508.py12CODE
LOWpex/pep_508.py12CODE
LOWpex/atomic_directory.py4CODE
LOWpex/atomic_directory.py21CODE
LOWpex/atomic_directory.py21CODE
LOWpex/atomic_directory.py21CODE
LOWpex/atomic_directory.py21CODE
LOWpex/auth.py4CODE
LOWpex/auth.py15CODE
LOWpex/auth.py15CODE
LOWpex/auth.py15CODE
LOWpex/auth.py15CODE
LOWpex/auth.py15CODE
LOWpex/lang.py4CODE
LOWpex/lang.py9CODE
LOWpex/pth.py4CODE
LOWpex/pth.py14CODE
LOWpex/compatibility.py7CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py20CODE
LOWpex/compatibility.py37CODE
LOWpex/compatibility.py52CODE
LOWpex/compatibility.py53CODE
LOWpex/compatibility.py56CODE
LOWpex/compatibility.py57CODE
LOWpex/compatibility.py124CODE
LOWpex/compatibility.py125CODE
LOWpex/compatibility.py127CODE
LOWpex/compatibility.py132CODE
LOWpex/compatibility.py133CODE
LOWpex/compatibility.py134CODE
LOWpex/compatibility.py135CODE
LOWpex/compatibility.py136CODE
LOWpex/compatibility.py137CODE
LOWpex/compatibility.py138CODE
LOWpex/compatibility.py139CODE
LOWpex/compatibility.py140CODE
LOWpex/compatibility.py148CODE
LOWpex/compatibility.py149CODE
LOWpex/compatibility.py150CODE
2775 more matches not shown…
Hyper-Verbose Identifiers976 hits · 976 pts
SeverityFileLineSnippetContext
LOWpex/compatibility.py212 def is_valid_python_identifier(text):STRING
LOWpex/interpreter_constraints.py35def _iter_interpreter_implementations():CODE
LOWpex/targets.py454 def require_at_most_one_target(self, purpose):CODE
LOWpex/artifact_url.py144def _guaranteed_available_algorithms():STRING
LOWpex/pex_info.py261 def venv_site_packages_copies(self):CODE
LOWpex/pex_info.py266 def venv_site_packages_copies(self, value):CODE
LOWpex/pex_info.py271 def venv_system_site_packages(self):CODE
LOWpex/pex_info.py276 def venv_system_site_packages(self, value):CODE
LOWpex/pex_info.py403 def has_interpreter_constraints(self):CODE
LOWpex/pex_info.py436 def interpreter_selection_strategy(self):CODE
LOWpex/pex_info.py446 def interpreter_selection_strategy(self, value):CODE
LOWpex/variables.py662 def _ensure_writeable_pex_root(self, raw_pex_root):CODE
LOWpex/finders.py92def get_script_from_distributions(CODE
LOWpex/finders.py117def get_entry_point_from_console_script(CODE
LOWpex/layout.py205def _ensure_distributions_installed_serial(CODE
LOWpex/layout.py218def _ensure_distributions_installed_parallel(CODE
LOWpex/layout.py260def _ensure_distributions_installed(CODE
LOWpex/pep_427.py86def _headers_install_path_for_wheel(CODE
LOWpex/pep_427.py342 def external_attr_as_stat_mode(self):CODE
LOWpex/pep_427.py511 def iter_install_paths_by_name(self):CODE
LOWpex/pep_427.py687def install_wheel_interpreter(CODE
LOWpex/pep_427.py1043 def create_dst_installed_file(regenerate_hash):CODE
LOWpex/dist_metadata.py158 def render_metadata_file_description(self, metadata_file_rel_path):CODE
LOWpex/dist_metadata.py242def _find_installed_metadata_files(CODE
LOWpex/dist_metadata.py327def _is_dist_pkg_info_file_path(file_path):CODE
LOWpex/dist_metadata.py529 def canonicalized_project_name(self):CODE
LOWpex/dist_metadata.py777 def from_packaging_requirement(cls, requirement):CODE
LOWpex/dist_metadata.py925 def from_packaging_requirement(CODE
LOWpex/sh_boot.py45def _calculate_applicable_binary_names(CODE
LOWpex/interpreter.py162 def _normalize_macosx_deployment_target(value):CODE
LOWpex/interpreter.py611 def configured_macosx_deployment_target(self):CODE
LOWpex/interpreter.py810 def include_system_site_packages(self):CODE
LOWpex/interpreter.py1504 def iter_base_candidate_binary_paths(interpreter):CODE
LOWpex/interpreter.py862 def _resolve_pyvenv_canonical_python_binary(STRING
LOWpex/interpreter.py925 def latest_release_of_min_compatible_version(interps):STRING
LOWpex/interpreter.py1094 def _spawn_from_binary_external(STRING
LOWpex/common.py281 def deterministic_external_attr(self):CODE
LOWpex/requirements.py265def parse_requirement_from_project_name_and_specifier(CODE
LOWpex/requirements.py284def parse_requirement_from_dist(CODE
LOWpex/requirements.py378def _strip_requirement_options(line):CODE
LOWpex/requirements.py397def _try_parse_fragment_project_name_and_marker(url):CODE
LOWpex/requirements.py422 def from_project_name_and_version(cls, project_name_and_version):CODE
LOWpex/requirements.py433def _try_parse_project_name_and_specifier_from_path(path):CODE
LOWpex/requirements.py443def _try_parse_pip_local_formats(CODE
LOWpex/requirements.py849def parse_requirement_strings(requirements):STRING
LOWpex/pex_boot.py68def __entry_point_from_filename__(filename):CODE
LOWpex/executables.py75def create_sh_python_redirector_shebang(sh_script_content):CODE
LOWpex/resolver.py158def _uniqued_download_requests(requests=None):CODE
LOWpex/resolver.py601def _fingerprint_local_project(CODE
LOWpex/resolver.py1022 def _iter_resolved_distributions(CODE
LOWpex/resolver.py1053 def _categorize_build_requests(CODE
LOWpex/resolver.py1315 def _categorize_install_requests(CODE
LOWpex/resolver.py1342 def _resolve_direct_file_deps(CODE
LOWpex/environment.py321 def _update_candidate_distributions(self, distribution_iter):CODE
LOWpex/environment.py713 def _declare_namespace_packages(cls, resolved_dists):CODE
LOWpex/ziputils.py146 def start_of_zip_offset_from_eof(self):CODE
LOWpex/exceptions.py47def reportable_unexpected_error_msg(CODE
LOWpex/typing.py55 def _never_called_since_structurally_shadowed(*_args, **_kwargs):CODE
LOWpex/pex_bootstrapper.py98def iter_compatible_interpreters(CODE
LOWpex/pex_bootstrapper.py250def find_compatible_interpreter(CODE
916 more matches not shown…
Deep Nesting172 hits · 152 pts
SeverityFileLineSnippetContext
LOWpex/pth.py17CODE
LOWpex/pex_builder.py361CODE
LOWpex/pex_builder.py621CODE
LOWpex/pex_builder.py727CODE
LOWpex/interpreter_constraints.py363CODE
LOWpex/entry_points_txt.py23CODE
LOWpex/util.py34CODE
LOWpex/variables.py815CODE
LOWpex/layout.py312CODE
LOWpex/pep_427.py742CODE
LOWpex/pep_427.py835CODE
LOWpex/pep_427.py241CODE
LOWpex/os.py18CODE
LOWpex/dist_metadata.py285CODE
LOWpex/dist_metadata.py397CODE
LOWpex/dist_metadata.py641CODE
LOWpex/dist_metadata.py828CODE
LOWpex/specifier_sets.py196CODE
LOWpex/specifier_sets.py251CODE
LOWpex/specifier_sets.py131CODE
LOWpex/sdist.py57CODE
LOWpex/jobs.py531CODE
LOWpex/interpreter.py1341CODE
LOWpex/interpreter.py1463CODE
LOWpex/interpreter.py1348CODE
LOWpex/common.py178CODE
LOWpex/common.py963CODE
LOWpex/common.py392CODE
LOWpex/common.py856CODE
LOWpex/common.py912CODE
LOWpex/requirements.py723CODE
LOWpex/pex_boot.py146CODE
LOWpex/executables.py142CODE
LOWpex/pep_723.py144CODE
LOWpex/pep_723.py99CODE
LOWpex/resolver.py214CODE
LOWpex/resolver.py684CODE
LOWpex/resolver.py780CODE
LOWpex/resolver.py1185CODE
LOWpex/resolver.py1342CODE
LOWpex/pex.py379CODE
LOWpex/pex.py666CODE
LOWpex/environment.py283CODE
LOWpex/environment.py596CODE
LOWpex/environment.py785CODE
LOWpex/ziputils.py188CODE
LOWpex/pex_bootstrapper.py98CODE
LOWpex/pex_bootstrapper.py250CODE
LOWpex/pex_bootstrapper.py516CODE
LOWpex/build_properties.py106CODE
LOWpex/sysconfig.py42CODE
LOWpex/sysconfig.py88CODE
LOWpex/hashing.py230CODE
LOWpex/pyenv.py28CODE
LOWpex/pyenv.py173CODE
LOWpex/pyenv.py117CODE
LOWpex/toml.py133CODE
LOWpex/scie/__init__.py522CODE
LOWpex/scie/model.py80CODE
LOWpex/scie/model.py145CODE
112 more matches not shown…
Over-Commented Block91 hits · 91 pts
SeverityFileLineSnippetContext
LOWsetup.cfg61management =COMMENT
LOWpex/atomic_directory.py81 target_basename = os.path.basename(self._work_dir)COMMENT
LOWpex/pex_builder.py821 deterministic=deterministic,COMMENT
LOWpex/targets.py161 # but Pip, which follows PEP-440, will evaluate `>=3.8.1` as false and exclude theCOMMENT
LOWpex/dist_metadata.py81def is_tar_sdist(path):COMMENT
LOWpex/dist_metadata.py101 # | whl | 6332494 |COMMENT
LOWpex/dist_metadata.py501COMMENT
LOWpex/__init__.py1# Copyright 2014 Pex project contributors.COMMENT
LOWpex/sdist.py61):COMMENT
LOWpex/jobs.py761 if costing_function is not None:COMMENT
LOWpex/sh_boot.py201 # cache may behave differently)COMMENT
LOWpex/sh_boot.py221 #COMMENT
LOWpex/interpreter.py741 # A pyvenv is identified by a pyvenv.cfg file with a home key in one of the two followingCOMMENT
LOWpex/interpreter.py881 if os.path.dirname(resolved) == os.path.dirname(maybe_venv_python_binary):COMMENT
LOWpex/interpreter.py1481 # pypyCOMMENT
LOWpex/common.py461 members=None, # type: Optional[Iterable[Union[str, ZipInfo]]]COMMENT
LOWpex/executables.py81COMMENT
LOWpex/resolver.py941 def install_chroot(self):COMMENT
LOWpex/resolver.py961 # │ └── 1003685de2c3604dc6daab9540a66201c1d1f718COMMENT
LOWpex/resolver.py981 # When the pex is run, the runtime key is followed to the build time key, avoidingCOMMENT
LOWpex/resolver.py1621 )COMMENT
LOWpex/resolver.py1641 # distributions and then `pex.pep_427.install_wheel_chroot` to install each distribution in itsCOMMENT
LOWpex/environment.py441 dep_requirement = overrideCOMMENT
LOWpex/environment.py721 # We only care about dists with one or more namespace packages though; thus, the guard.COMMENT
LOWpex/environment.py801 # Prepend location to sys.path.COMMENT
LOWpex/whl.py41 dest_dir=atomic_dir.work_dir,COMMENT
LOWpex/ziputils.py101 # start of the central directory 2 bytesCOMMENT
LOWpex/ziputils.py201 if not self.has_header:COMMENT
LOWpex/sysconfig.py201# TODO(John Sirois): Consider using `sysconfig.get_path("scripts", expand=False)` in combinationCOMMENT
LOWpex/fetcher.py81 # `ssl` module, which generally happens in the main thread, triggers, through instantiationCOMMENT
LOWpex/fetcher.py101 # loading config due to unknown configuration options.COMMENT
LOWpex/wheel.py61 # Some WHEEL metadata in the wild has blank lines in between headers when it should not.COMMENT
LOWpex/wheel.py81 # them in a frozenset with unstable order which can cause issues when attemptingCOMMENT
LOWpex/distutils/__init__.py1# Copyright 2021 Pex project contributors.COMMENT
LOWpex/distutils/commands/__init__.py1# Copyright 2021 Pex project contributors.COMMENT
LOWpex/tools/__init__.py1# Copyright 2020 Pex project contributors.COMMENT
LOWpex/cache/dirs.py881 # wheel name which is unique on the host os up to the python and abi tags. In other words,COMMENT
LOWpex/cache/__init__.py1# Copyright 2024 Pex project contributors.COMMENT
LOWpex/resolve/locker.py301 artifact_url = ArtifactURL.from_url_info(COMMENT
LOWpex/resolve/locker.py341 # ...COMMENT
LOWpex/resolve/__init__.py1# Copyright 2021 Pex project contributors.COMMENT
LOWpex/resolve/locker_patches.py201 Wheel.find_most_preferred_tag = lambda *args, **kwargs: 0COMMENT
LOWpex/resolve/lockfile/create.py121 project_name_and_version = ProjectNameAndVersion.from_filename(f)COMMENT
LOWpex/resolve/lockfile/__init__.py1# Copyright 2021 Pex project contributors.COMMENT
LOWpex/resolve/pep_691/__init__.py1# Copyright 2022 Pex project contributors.COMMENT
LOWpex/bin/__init__.py1# Copyright 2014 Pex project contributors.COMMENT
LOWpex/build_system/pep_518.py101 # N.B.: We install extra requirements separately instead of having them resolved andCOMMENT
LOWpex/build_system/__init__.py1# Copyright 2022 Pex project contributors.COMMENT
LOWpex/cli/__init__.py1# Copyright 2021 Pex project contributors.COMMENT
LOWpex/cli/commands/pip/__init__.py1# Copyright 2025 Pex project contributors.COMMENT
LOWpex/pip/__init__.py1# Copyright 2022 Pex project contributors.COMMENT
LOWpex/pip/tool.py261 # type: (str) -> ErrorAnalysisCOMMENT
LOWpex/pip/tool.py401 # type: (...) -> Tuple[List[str], subprocess.Popen]COMMENT
LOWpex/pip/foreign_platform/__init__.py21COMMENT
LOWpex/pip/foreign_platform/requires_python.py41 if PYTHON_FULL_VERSIONS:COMMENT
LOWpex/http/__init__.py1# Copyright 2025 Pex project contributors.COMMENT
LOWpex/commands/__init__.py1# Copyright 2021 Pex project contributors.COMMENT
LOWbuild-backend/pex_build/setuptools/__init__.py1# Copyright 2024 Pex project contributors.COMMENT
LOWtests/test_requirements.py361 beautifulsoup4COMMENT
LOWtests/test_pep_723.py221 # /// scriptCOMMENT
31 more matches not shown…
Cross-Language Confusion17 hits · 80 pts
SeverityFileLineSnippetContext
HIGHpex/sh_boot.py266 if command -v "${{python}}" 2>/dev/null; thenSTRING
HIGHtests/resolve/lockfile/test_json_codec.py143 "requires_python": null,CODE
HIGHtests/resolve/lockfile/test_json_codec.py368 "requires_python": null,CODE
HIGHtests/resolve/lockfile/test_json_codec.py388 - "requires_python": null,CODE
HIGHtests/resolve/lockfile/test_lockfile.py61 "requires_python": null,STRING
HIGHtests/integration/cli/commands/test_lock.py442 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py514 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1109 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1131 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1364 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1493 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1559 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1595 "use_pep517": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1676 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1805 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1871 "requires_python": null,CODE
HIGHtests/integration/cli/commands/test_lock.py1907 "use_pep517": null,CODE
Cross-File Repetition11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHpex/tools/commands/repository.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGHtests/integration/test_override_replace.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGHtests/integration/test_issue_2822.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGHtests/integration/test_scoped_repos.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGHtests/integration/resolve/test_venv_resolver.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGH…integration/cli/commands/test_split_universal_locks.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGHtests/integration/cli/commands/test_run.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGHtests/integration/cli/commands/test_lock_report.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGH…on/cli/commands/test_lock_reproducibility_hash_seed.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGHtests/integration/venv_ITs/test_issue_2160.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
HIGHtesting/local_project.py0\ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta"STRING
AI Structural Patterns27 hits · 18 pts
SeverityFileLineSnippetContext
LOWpex/pep_427.py835CODE
LOWpex/resolver.py1546CODE
LOWpex/resolver.py1725CODE
LOWpex/resolver.py1797CODE
LOWpex/resolver.py1942CODE
LOWpex/resolver.py2032CODE
LOWpex/resolver.py1285CODE
LOWpex/resolve/lock_downloader.py77CODE
LOWpex/resolve/lock_downloader.py207CODE
LOWpex/resolve/resolvers.py247CODE
LOWpex/resolve/lock_resolver.py117CODE
LOWpex/resolve/lock_resolver.py204CODE
LOWpex/resolve/lock_resolver.py272CODE
LOWpex/resolve/lock_resolver.py332CODE
LOWpex/resolve/lock_resolver.py388CODE
LOWpex/resolve/lock_resolver.py432CODE
LOWpex/resolve/resolver_configuration.py65CODE
LOWpex/resolve/configured_resolver.py48CODE
LOWpex/resolve/pex_repository_resolver.py30CODE
LOWpex/resolve/lockfile/create.py169CODE
LOWpex/pip/version.py63CODE
LOWpex/pip/tool.py166CODE
LOWpex/pip/tool.py583CODE
LOWpex/pip/tool.py624CODE
LOWpex/pip/tool.py659CODE
LOWtesting/__init__.py140CODE
LOWtesting/__init__.py270CODE
AI Slop Vocabulary8 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMsetup.cfg82# patterns here than we would otherwise need if we could leverage `**` support.COMMENT
MEDIUMpex/atomic_directory.py95 # this compaction is more robust.COMMENT
LOWpex/fetcher.py186 # There was no *.sock component, so just use the full path.COMMENT
LOWpex/scie/model.py460 # hit, we just use major / minor. If the user wants control they can specifyCOMMENT
MEDIUMpex/resolve/pep_691/fingerprint_service.py166 # enough; we need not fail the whole endeavor. The partial artifact just remains partialSTRING
LOWpex/resolve/pep_691/fingerprint_service.py243 # just return them as-is.STRING
MEDIUMpex/pip/tool.py406 # prompt and we'd also like to know about this since it should never occur. We leverageCOMMENT
MEDIUMtests/integration/test_issue_1520.py45 # in conjunction with protobuf 4+COMMENT
Modern Structural Boilerplate16 hits · 16 pts
SeverityFileLineSnippetContext
LOWpex/build_properties.py18logger = logging.getLogger(__name__)CODE
LOWpex/tools/commands/graph.py27logger = logging.getLogger(__name__)CODE
LOWpex/tools/commands/venv.py31logger = logging.getLogger(__name__)CODE
LOWpex/tools/commands/interpreter.py26logger = logging.getLogger(__name__)CODE
LOWpex/tools/commands/repository.py45logger = logging.getLogger(__name__)CODE
LOWpex/resolve/lockfile/updater.py62logger = logging.getLogger(__name__)CODE
LOWpex/docs/command.py26logger = logging.getLogger(__name__)CODE
LOWpex/cli/commands/venv.py45logger = logging.getLogger(__name__)CODE
LOWpex/cli/commands/interpreter.py23logger = logging.getLogger(__name__)CODE
LOWpex/pip/dependencies/requires.py9logger = logging.getLogger(__name__)CODE
LOWpex/pip/package_repositories/link_collector.py10logger = logging.getLogger(__name__)CODE
LOWpex/http/server.py26logger = logging.getLogger(__name__)CODE
LOWtesting/mitmproxy.py26logger = logging.getLogger(__name__)CODE
LOWtesting/devpi.py33logger = logging.getLogger(__name__)CODE
LOWscripts/gen-scie-platform.py29logger = logging.getLogger(__name__)CODE
LOWscripts/py27/lint_enum.py30logger = logging.getLogger(__name__)CODE
Decorative Section Separators5 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMtests/integration/cli/commands/test_issue_2050.py229 #-----------------------------------------------------------------------------STRING
MEDIUM.github/workflows/track-pip-main.yml58 # -----------COMMENT
MEDIUM.github/workflows/track-pip-main.yml68 # ------------------COMMENT
MEDIUM.github/workflows/ci.yml96 # -----------COMMENT
MEDIUM.github/workflows/ci.yml105 # ----------------------------------------------COMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpex/compatibility.py4# This file contains several 2.x/3.x compatibility checkstyle violations for a reasonCOMMENT
MEDIUMtests/integration/test_interpreter_selection.py161 # Create a pex with interpreter constraints, but for not the default interpreter in the path.COMMENT
MEDIUMtests/integration/test_integration.py227 # Create a temporary pex containing just `requests` with no entrypoint.COMMENT
MEDIUMtests/integration/test_integration.py244 # Create a temporary pex containing just `requests` with no entrypoint.COMMENT
Excessive Try-Catch Wrapping10 hits · 11 pts
SeverityFileLineSnippetContext
LOWpex/atomic_directory.py312 except Exception:CODE
LOWpex/pth.py53 except Exception as e:CODE
LOWpex/jobs.py584 except Exception as e:CODE
LOWpex/jobs.py634 except Exception as e:CODE
LOWpex/jobs.py650 except Exception as e:CODE
LOWpex/result.py108 except Exception as e:CODE
LOWpex/exceptions.py65 except Exception:CODE
LOWbuild-backend/pex_build/__init__.py90 except Exception:CODE
LOWtests/integration/test_issue_2235.py38except Exception as e:CODE
MEDIUMtesting/__init__.py650 print("Error cloning pyenv on attempt", index + 1, "of 3:", e, file=sys.stderr)CODE
Fake / Example Data8 hits · 11 pts
SeverityFileLineSnippetContext
LOWtests/resolve/test_locker.py62 assert "git://example.org" == strip_credentials("git://git@example.org", Credentials("git"))CODE
LOWtests/resolve/test_locker.py63 assert "git://example.org" == strip_credentials("git://****@example.org", Credentials("****"))CODE
LOWtests/resolve/test_locker.py76 assert "git://git@example.org" == inject_credentials("git://example.org", Credentials("git"))CODE
LOWtests/resolve/test_locker.py77 assert "git://git@example.org" == inject_credentials(CODE
LOWtests/resolve/test_locker.py78 "git://****@example.org", Credentials("git")CODE
LOWtests/resolve/test_locker.py80 assert "http://joe:bob@example.org" == inject_credentials(CODE
LOWtests/resolve/test_locker.py83 assert "http://joe:bob@example.org" == inject_credentials(CODE
LOWtests/resolve/test_locker.py84 "http://joe:****@example.org", Credentials("joe", "bob")CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWpex/pex_builder.py284 # Check if 'script' is a console_script.COMMENT
LOWpex/pex_builder.py295 # Check if 'script' is an ordinary script.COMMENT
LOWpex/pex.py677 # Check if the arg is an expected startup arg.COMMENT
Overly Generic Function Names5 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_pex.py516 "my_package/my_module.py": 'def do_something():\n print("hello world!")\n',CODE
LOWtests/integration/test_reproducible.py285 def do_something():STRING
LOWtests/integration/test_integration.py385 def do_something():STRING
LOWtests/integration/test_integration.py1066 def do_something():STRING
LOWtesting/__init__.py176 os.path.join(name, "my_module.py"): 'def do_something():\n print("hello world!")\n',CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpex/distutils/commands/bdist_pex.py125 # In order for code to run to here, pex is on the sys.path - make sure to propagate theCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpex/pip/tool.py876 # WARNING: This command is only meant for debugging. Do not use this with automation forCOMMENT