Repository Analysis

pypa/pip

The Python package installer

17.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pypa/pip, a Python project with 10,231 GitHub stars. SynthScan v2.0 examined 194,612 lines of code across 784 source files, recording 3119 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 17.0 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.0
Adjusted Score
17.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.2K
Stars
Python
Language
194.6K
Lines of Code
784
Files
3.1K
Pattern Hits
2026-07-14
Scan Date
0.07
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 4HIGH 51MEDIUM 98LOW 2966

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 3119 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 Identifiers1676 hits · 1506 pts
SeverityFileLineSnippetContext
LOWnoxfile.py47def should_update_common_wheels(session: nox.Session) -> bool:CODE
LOWtools/release/__init__.py19def get_version_from_arguments(session: Session) -> str | None:CODE
LOWtools/release/__init__.py150def get_next_development_version(version: str) -> str:CODE
LOWtools/release/__init__.py199def isolated_temporary_checkout(CODE
LOWtools/release/check_version.py11def is_this_a_good_version_number(string: str) -> str | None:CODE
LOWtests/conftest.py119def pytest_collection_modifyitems(config: Config, items: list[pytest.Function]) -> None:CODE
LOWtests/conftest.py382def scoped_global_tempdir_manager(request: pytest.FixtureRequest) -> Iterator[None]:CODE
LOWtests/conftest.py399 def not_code_files_and_folders(path: str, names: list[str]) -> Iterable[str]:CODE
LOWtests/conftest.py460def _common_wheel_editable_install(CODE
LOWtests/conftest.py1045def html_index_with_onetime_server(CODE
LOWtests/unit/test_format_control.py31def test_only_binary_overrides() -> None:CODE
LOWtests/unit/test_format_control.py45def test_none_preserves_other_side() -> None:CODE
LOWtests/unit/test_format_control.py52def test_comma_separated_values() -> None:CODE
LOWtests/unit/test_utils_subprocess.py49def test_call_subprocess_stdout_only(CODE
LOWtests/unit/test_utils_subprocess.py231 def test_info_logging__subprocess_error(CODE
LOWtests/unit/test_utils_subprocess.py280 def test_info_logging_with_show_stdout_true(CODE
LOWtests/unit/test_utils_subprocess.py382def test_unicode_decode_error(caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtests/unit/test_network_session.py114def test_accept_encoding_is_fixed() -> None:CODE
LOWtests/unit/test_network_session.py153def test_user_agent_user_data(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_network_session.py173 def test_http_cache_is_not_enabled(self, tmpdir: Path) -> None:CODE
LOWtests/unit/test_network_session.py178 def test_trusted_hosts_adapter(self, tmpdir: Path) -> None:CODE
LOWtests/unit/test_network_session.py247 def test_add_trusted_host__logging(self, caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtests/unit/test_network_session.py283 def test_iter_secure_origins__trusted_hosts_empty(self) -> None:CODE
LOWtests/unit/test_network_session.py393 def test_no_proxy_env_ignores_environment_proxies(CODE
LOWtests/unit/test_network_session.py410 def test_no_proxy_env_keeps_command_line_proxy(CODE
LOWtests/unit/test_network_session.py426 def test_environment_trusted_without_no_proxy_env(CODE
LOWtests/unit/test_network_session.py435 def test_empty_proxy_bypasses_environment_proxies(CODE
LOWtests/unit/test_network_session.py450 def test_unset_proxy_is_distinct_from_empty(CODE
LOWtests/unit/test_network_session.py482 def test_connection_closed_by_peer(CODE
LOWtests/unit/test_network_session.py519 def test_missing_python_ssl_support(CODE
LOWtests/unit/test_network_session.py536 def test_uses_failed_request_url(CODE
LOWtests/unit/test_target_python.py28 def test_init__py_version_info(CODE
LOWtests/unit/test_target_python.py46 def test_init__py_version_info_none(self) -> None:CODE
LOWtests/unit/test_target_python.py118 def test_get_unsorted_tags__uses_cached_value(self) -> None:CODE
LOWtests/unit/test_utils_filesystem.py32 def test_yieled_in_reverse_order(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py52 def test_empty_directory_tree(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py71 def test_nested_empty_directories(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py83 def test_mixed_empty_and_non_empty(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py102 def test_deeply_nested_file_marks_parents(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py118 def test_multiple_files_at_various_levels(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py142 def test_directory_with_wheel_file(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py152 def test_directory_with_non_wheel_files(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py163 def test_mixed_wheel_and_non_wheel_dirs(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py181 def test_nested_wheel_marks_parents(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py196 def test_wheel_file_extension_matching(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils_filesystem.py215 def test_empty_directory_tree_no_wheels(self, tmp_path: Path) -> None:CODE
LOWtests/unit/test_utils.py108 def test_egglink_in_usersite_notvenv(self) -> None:CODE
LOWtests/unit/test_utils.py117 def test_egglink_in_usersite_venv_noglobal(self) -> None:CODE
LOWtests/unit/test_utils.py123 def test_egglink_in_usersite_venv_global(self) -> None:CODE
LOWtests/unit/test_utils.py135 def test_egglink_in_sitepkgs_notvenv(self) -> None:CODE
LOWtests/unit/test_utils.py144 def test_egglink_in_sitepkgs_venv_noglobal(self) -> None:CODE
LOWtests/unit/test_utils.py153 def test_egglink_in_sitepkgs_venv_global(self) -> None:CODE
LOWtests/unit/test_utils.py165 def test_egglink_in_both_notvenv(self) -> None:CODE
LOWtests/unit/test_utils.py174 def test_egglink_in_both_venv_noglobal(self) -> None:CODE
LOWtests/unit/test_utils.py183 def test_egglink_in_both_venv_global(self) -> None:CODE
LOWtests/unit/test_utils.py195 def test_noegglink_in_sitepkgs_notvenv(self) -> None:CODE
LOWtests/unit/test_utils.py201 def test_noegglink_in_sitepkgs_venv_noglobal(self) -> None:CODE
LOWtests/unit/test_utils.py207 def test_noegglink_in_sitepkgs_venv_global(self) -> None:CODE
LOWtests/unit/test_utils.py214def test_rmtree_errorhandler_nonexistent_directory(tmpdir: Path) -> None:CODE
LOWtests/unit/test_utils.py517 def test_glibc_version_string_confstr_fail(CODE
1616 more matches not shown…
Unused Imports668 hits · 618 pts
SeverityFileLineSnippetContext
LOWtools/protected_pip.py1CODE
LOWtools/release/__init__.py6CODE
LOWtools/release/check_version.py3CODE
LOWtests/conftest.py1CODE
LOWtests/unit/test_utils_subprocess.py1CODE
LOWtests/unit/test_network_session.py1CODE
LOWtests/unit/test_target_python.py1CODE
LOWtests/unit/test_utils.py6CODE
LOWtests/unit/test_packaging.py1CODE
LOWtests/unit/test_options.py1CODE
LOWtests/unit/test_link.py1CODE
LOWtests/unit/test_network_download.py1CODE
LOWtests/unit/test_req_uninstall.py1CODE
LOWtests/unit/test_command_debug.py1CODE
LOWtests/unit/test_exceptions.py3CODE
LOWtests/unit/test_utils_datetime.py1CODE
LOWtests/unit/test_utils_pylock.py1CODE
LOWtests/unit/test_base_command.py1CODE
LOWtests/unit/test_utils_unpacking.py1CODE
LOWtests/unit/test_wheel.py3CODE
LOWtests/unit/test_req.py1CODE
LOWtests/unit/test_resolution_legacy_resolver.py1CODE
LOWtests/unit/test_release_control.py1CODE
LOWtests/unit/test_cmdoptions.py1CODE
LOWtests/unit/test_req_file.py1CODE
LOWtests/unit/test_cli_spinners.py1CODE
LOWtests/unit/test_utils_virtualenv.py1CODE
LOWtests/unit/test_index.py1CODE
LOWtests/unit/test_self_check_outdated.py1CODE
LOWtests/unit/test_utils_temp_dir.py1CODE
LOWtests/unit/test_build_constraints.py3CODE
LOWtests/unit/test_command_show.py1CODE
LOWtests/unit/test_collector.py1CODE
LOWtests/unit/test_network_auth.py1CODE
LOWtests/unit/test_vcs.py1CODE
LOWtests/unit/test_wheel_builder.py1CODE
LOWtests/unit/resolution_resolvelib/test_provider.py1CODE
LOWtests/unit/resolution_resolvelib/test_resolver.py1CODE
LOWtests/lib/server.py17CODE
LOWtests/lib/server.py17CODE
LOWtests/lib/server.py17CODE
LOWtests/lib/index.py1CODE
LOWtests/lib/filesystem.py3CODE
LOWtests/lib/__init__.py1CODE
LOWtests/lib/venv.py1CODE
LOWtests/lib/requests_mocks.py3CODE
LOWtests/lib/wheel.py3CODE
LOW…ts/data/packages/pep517_wrapper_buildsys/mybuildsys.py3CODE
LOW…ts/data/packages/pep517_wrapper_buildsys/mybuildsys.py5CODE
LOW…ts/data/packages/pep517_wrapper_buildsys/mybuildsys.py5CODE
LOW…ts/data/packages/pep517_wrapper_buildsys/mybuildsys.py5CODE
LOW…ts/data/src/pep518_with_namespace_package-1.0/setup.py3CODE
LOWtests/data/src/requires_simple/setup.py1CODE
LOW…ts/data/src/pep518_with_extra_and_markers-1.0/setup.py5CODE
LOWtests/data/src/pep518-3.0/setup.py4CODE
LOWtests/data/src/chattymodule/backend.py1CODE
LOWtests/data/src/chattymodule/backend.py5CODE
LOWtests/functional/test_config_settings.py1CODE
LOWtests/functional/test_install_upgrade.py8CODE
LOWtests/functional/test_configuration.py3CODE
608 more matches not shown…
Deep Nesting215 hits · 210 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py119CODE
LOWtests/conftest.py663CODE
LOWtests/conftest.py952CODE
LOWtests/unit/test_network_download.py341CODE
LOWtests/lib/__init__.py950CODE
LOWtests/functional/test_lock.py233CODE
LOWtests/functional/test_lock.py257CODE
LOWsrc/pip/_internal/exceptions.py345CODE
LOWsrc/pip/_internal/wheel_builder.py207CODE
LOWsrc/pip/_internal/network/auth.py166CODE
LOWsrc/pip/_internal/network/download.py63CODE
LOWsrc/pip/_internal/network/download.py241CODE
LOWsrc/pip/_internal/network/session.py112CODE
LOWsrc/pip/_internal/utils/logging.py278CODE
LOWsrc/pip/_internal/utils/logging.py206CODE
LOWsrc/pip/_internal/utils/pylock.py32CODE
LOWsrc/pip/_internal/utils/pylock.py147CODE
LOWsrc/pip/_internal/utils/subprocess.py59CODE
LOWsrc/pip/_internal/utils/filesystem.py19CODE
LOWsrc/pip/_internal/utils/compatibility_tags.py99CODE
LOWsrc/pip/_internal/utils/unpacking.py64CODE
LOWsrc/pip/_internal/utils/unpacking.py118CODE
LOWsrc/pip/_internal/utils/unpacking.py164CODE
LOWsrc/pip/_internal/utils/unpacking.py274CODE
LOWsrc/pip/_internal/models/release_control.py74CODE
LOWsrc/pip/_internal/models/format_control.py61CODE
LOWsrc/pip/_internal/cli/parser.py257CODE
LOWsrc/pip/_internal/cli/autocompletion.py16CODE
LOWsrc/pip/_internal/cli/autocompletion.py135CODE
LOWsrc/pip/_internal/cli/main_parser.py51CODE
LOWsrc/pip/_internal/operations/check.py60CODE
LOWsrc/pip/_internal/operations/freeze.py30CODE
LOWsrc/pip/_internal/operations/prepare.py616CODE
LOWsrc/pip/_internal/operations/install/wheel.py435CODE
LOWsrc/pip/_internal/req/req_install.py417CODE
LOWsrc/pip/_internal/req/req_install.py713CODE
LOWsrc/pip/_internal/req/req_uninstall.py149CODE
LOWsrc/pip/_internal/req/req_uninstall.py279CODE
LOWsrc/pip/_internal/req/req_uninstall.py432CODE
LOWsrc/pip/_internal/req/__init__.py38CODE
LOWsrc/pip/_internal/req/req_file.py347CODE
LOWsrc/pip/_internal/req/constructors.py590CODE
LOWsrc/pip/_internal/resolution/resolvelib/provider.py120CODE
LOWsrc/pip/_internal/resolution/resolvelib/factory.py448CODE
LOWsrc/pip/_internal/resolution/resolvelib/factory.py525CODE
LOWsrc/pip/_internal/resolution/resolvelib/resolver.py76CODE
LOWsrc/pip/_internal/vcs/bazaar.py100CODE
LOWsrc/pip/_internal/commands/configuration.py202CODE
LOWsrc/pip/_internal/commands/configuration.py218CODE
LOWsrc/pip/_internal/commands/show.py85CODE
LOWsrc/pip/_internal/commands/show.py181CODE
LOWsrc/pip/_internal/commands/list.py284CODE
LOWsrc/pip/_internal/commands/search.py116CODE
LOWsrc/pip/_internal/commands/install.py370CODE
LOWsrc/pip/_internal/commands/install.py605CODE
LOWsrc/pip/_internal/metadata/_json.py44CODE
LOWsrc/pip/_internal/metadata/_json.py47CODE
LOWsrc/pip/_internal/metadata/base.py546CODE
LOWsrc/pip/_internal/metadata/importlib/_dists.py224CODE
LOWsrc/pip/_vendor/packaging/tags.py325CODE
155 more matches not shown…
Self-Referential Comments62 hits · 174 pts
SeverityFileLineSnippetContext
MEDIUM.readthedocs-custom-redirects.yml1# This file is read by tools/update-rtd-redirects.py.COMMENT
MEDIUMtools/release/__init__.py89 # Create a unique list.COMMENT
MEDIUMtests/conftest.py290 # Create a directory to use as our home location.COMMENT
MEDIUMtests/conftest.py294 # Create a directory to use as a fake rootCOMMENT
MEDIUMtests/conftest.py545 # Create the virtual environmentCOMMENT
MEDIUMtests/unit/test_utils.py371 with open(f, "w"): # Create the fileCODE
MEDIUMtests/unit/test_req_uninstall.py84 # Create the required filesCOMMENT
MEDIUMtests/unit/test_index.py509 # Create a link with upload time clearly after the cutoffCOMMENT
MEDIUMtests/unit/test_index.py911 # Create a test TargetPython that we can check for.COMMENT
MEDIUMtests/unit/resolution_resolvelib/test_requirement.py19# Create a requirement from a project name - "pip"COMMENT
MEDIUMtests/unit/resolution_resolvelib/test_requirement.py20# Create a requirement from a name + version constraint - "pip >= 20.0"COMMENT
MEDIUMtests/unit/resolution_resolvelib/test_requirement.py21# Create a requirement from a wheel filenameCOMMENT
MEDIUMtests/unit/resolution_resolvelib/test_requirement.py22# Create a requirement from a sdist filenameCOMMENT
MEDIUMtests/unit/resolution_resolvelib/test_requirement.py23# Create a requirement from a local directory (which has no obvious name!)COMMENT
MEDIUMtests/lib/__init__.py523 # Create a Directory to use as a scratch padSTRING
MEDIUMtests/lib/venv.py68 # Create a new virtual environment.COMMENT
MEDIUMtests/lib/configuration_helpers.py46 # Create a temporary fileCOMMENT
MEDIUM…ts/data/packages/pep517_wrapper_buildsys/mybuildsys.py16 # Create the marker file to record that the hook was calledCOMMENT
MEDIUMtests/functional/test_list.py773 # Create a test package and create .egg-info dirCOMMENT
MEDIUMtests/functional/test_list.py789 # Create a test package and create .egg-info dirCOMMENT
MEDIUMtests/functional/test_show.py372 # Create a test package and create .egg-info dirSTRING
MEDIUMtests/functional/test_show.py387 # Create a test package and create .egg-info dirSTRING
MEDIUMtests/functional/test_show.py406 # Create a test package and create .egg-info dirSTRING
MEDIUMtests/functional/test_freeze.py878 # Create a test package and create .egg-info dirCOMMENT
MEDIUMtests/functional/test_freeze.py893 # Create a test package and create .egg-info dirCOMMENT
MEDIUMtests/functional/test_freeze.py330 # Create a new commit to ensure that the commit has only one branchSTRING
MEDIUMtests/functional/test_install_vcs_git.py459 # Create a second branch with the same SHA.COMMENT
MEDIUMtests/functional/test_install_vcs_git.py478 # Create a second branch.COMMENT
MEDIUMtests/functional/test_check.py311 # Create a test package with dependency missingCOMMENT
MEDIUMtests/functional/test_check.py333 # Create a test package with dependency missingCOMMENT
MEDIUMtests/functional/test_install_user.py342 # Create a custom Python script that disables user site and runs pip via execSTRING
MEDIUMtests/functional/test_install.py776 # Create a project named pkga that depends on the simple-1.0.tar.gz with a directCOMMENT
MEDIUMtests/functional/test_install.py2475 # Create a test package, install it and then uninstall itSTRING
MEDIUMtests/functional/test_vcs_git.py157 # Create a tag with the same name as the branch.COMMENT
MEDIUMdocs/pip_sphinxext.py285 # Create a tab for each OSCOMMENT
MEDIUMsrc/pip/_internal/req/constructors.py192 # Create a steppable iterator, so we can handle \-continuations.COMMENT
MEDIUMsrc/pip/_internal/commands/list.py242 # Create a set to remove duplicate packages, and cast it to a listCOMMENT
MEDIUMsrc/pip/_internal/commands/install.py423 # Create a target directory for using with the target optionCOMMENT
MEDIUMsrc/pip/_vendor/__init__.py26# Define a small helper function to alias our vendored modules to the real onesCOMMENT
MEDIUMsrc/pip/_vendor/packaging/tags.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMsrc/pip/_vendor/packaging/metadata.py290# This class is for writing RFC822 messagesCOMMENT
MEDIUMsrc/pip/_vendor/packaging/metadata.py307# This class is for writing RFC822 messagesCOMMENT
MEDIUMsrc/pip/_vendor/packaging/version.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMsrc/pip/_vendor/packaging/__init__.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMsrc/pip/_vendor/packaging/utils.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMsrc/pip/_vendor/packaging/requirements.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMsrc/pip/_vendor/packaging/_structures.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMsrc/pip/_vendor/packaging/markers.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMsrc/pip/_vendor/packaging/specifiers.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMsrc/pip/_vendor/truststore/_windows.py528 # Create a custom cert chain engine which exclusively trustsCOMMENT
MEDIUMsrc/pip/_vendor/distlib/util.py1603 # The above classes only come into play if a timeoutSTRING
MEDIUMsrc/pip/_vendor/idna/idnadata.py1# This file is automatically generated by tools/idna-dataCOMMENT
MEDIUMsrc/pip/_vendor/idna/uts46data.py1# This file is automatically generated by tools/idna-dataCOMMENT
MEDIUMsrc/pip/_vendor/requests/sessions.py622 # Create the Request.COMMENT
MEDIUM…pip/_vendor/pyproject_hooks/_in_process/_in_process.py27# This file is run as a script, and `import wrappers` is not zip-safe, so weCOMMENT
MEDIUMsrc/pip/_vendor/rich/console.py2014 """This function is called when a `BrokenPipeError` is raised.STRING
MEDIUMsrc/pip/_vendor/urllib3/util/url.py266 output = [] # Initialize the variable to use to store outputCODE
MEDIUMsrc/pip/_vendor/urllib3/util/connection.py23# This function is copied from socket.py in the Python 2.7 standardCOMMENT
MEDIUMsrc/pip/_vendor/urllib3/util/connection.py104 """This function is designed to work in the context ofSTRING
MEDIUMsrc/pip/_vendor/urllib3/http2/probe.py66 """This function is for testing purposes only. Gets the current state of the probe cache"""STRING
2 more matches not shown…
Modern Structural Boilerplate169 hits · 171 pts
SeverityFileLineSnippetContext
LOWtools/release/__init__.py124def update_version_file(version: str, filepath: str) -> None:CODE
LOWtests/unit/test_logging.py19logger = logging.getLogger(__name__)CODE
LOWtests/unit/test_network_auth.py178 def set_password(self, system: str, username: str, password: str) -> None:CODE
LOWtests/lib/server.py217 def set_responses(self, responses: Iterable["WSGIApplication"]) -> None:STRING
LOWtests/lib/venv.py44 def _update_paths(self) -> None:CODE
LOWsrc/pip/_internal/configuration.py159 def set_value(self, key: str, value: Any) -> None:CODE
LOWsrc/pip/_internal/cache.py22logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/exceptions.py40logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/wheel_builder.py27logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/self_outdated_check.py44logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/build_env/__init__.py16__all__ = [CODE
LOWsrc/pip/_internal/build_env/installer.py34logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/network/auth.py150 def _set_password(self, service_name: str, username: str, password: str) -> None:CODE
LOWsrc/pip/_internal/network/xmlrpc.py17logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/network/download.py40logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/network/session.py60logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/network/session.py423 def update_index_urls(self, new_index_urls: list[str]) -> None:CODE
LOWsrc/pip/_internal/network/cache.py121 def set_body(self, key: str, body: bytes) -> None:CODE
LOWsrc/pip/_internal/network/cache.py125 def set_body_from_io(self, key: str, body_file: BinaryIO) -> None:CODE
LOWsrc/pip/_internal/network/lazy_wheel.py5__all__ = ["HTTPRangeRequestUnsupported", "dist_from_wheel_url"]CODE
LOWsrc/pip/_internal/utils/misc.py41__all__ = [CODE
LOWsrc/pip/_internal/utils/misc.py58logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/utils/egg_link.py13__all__ = [CODE
LOWsrc/pip/_internal/utils/compat.py11__all__ = ["get_locale_encoding", "get_path_uid", "tomllib", "WINDOWS"]CODE
LOWsrc/pip/_internal/utils/compat.py14logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/utils/temp_dir.py19logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/utils/temp_dir.py53 def set_delete(self, kind: str, value: bool) -> None:CODE
LOWsrc/pip/_internal/utils/packaging.py9logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/utils/virtualenv.py8logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/utils/wheel.py15logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/utils/unpacking.py24logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/utils/unpacking.py103def set_extracted_file_to_default_mode_plus_executable(path: str) -> None:CODE
LOWsrc/pip/_internal/models/link.py31logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/models/direct_url.py18__all__ = [CODE
LOWsrc/pip/_internal/models/search_scope.py14logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/cli/cmdoptions.py39logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/cli/index_command.py32logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/cli/parser.py24logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/cli/spinners.py24logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/cli/base_command.py43__all__ = ["Command"]CODE
LOWsrc/pip/_internal/cli/base_command.py45logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/cli/main_parser.py17__all__ = ["create_main_parser", "parse_command"]CODE
LOWsrc/pip/_internal/cli/main.py11logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/cli/req_command.py63logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/operations/check.py24logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/operations/freeze.py22logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/operations/install/wheel.py65logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/req/req_install.py58logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/req/req_install.py377 def _set_requirement(self) -> None:CODE
LOWsrc/pip/_internal/req/req_install.py572 def set_dist(self, distribution: BaseDistribution) -> None:CODE
LOWsrc/pip/_internal/req/req_install.py653 def update_editable(self) -> None:CODE
LOWsrc/pip/_internal/req/req_set.py8logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/req/__init__.py15__all__ = [CODE
LOWsrc/pip/_internal/req/__init__.py22logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/req/req_file.py34__all__ = ["parse_requirements"]CODE
LOWsrc/pip/_internal/req/req_file.py100logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/req/constructors.py45__all__ = [CODE
LOWsrc/pip/_internal/req/constructors.py51logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/resolution/legacy/resolver.py52logger = logging.getLogger(__name__)CODE
LOWsrc/pip/_internal/resolution/legacy/resolver.py317 def _set_req_to_reinstall(self, req: InstallRequirement) -> None:CODE
109 more matches not shown…
Cross-File Repetition29 hits · 145 pts
SeverityFileLineSnippetContext
HIGHtests/data/packages/LocalExtras/setup.py0convert a path to uri. the path will be made absolute and will not have quoted path parts.STRING
HIGHtests/data/packages/LocalEnvironMarker/setup.py0convert a path to uri. the path will be made absolute and will not have quoted path parts.STRING
HIGHtests/data/packages/LocalExtras-0.0.2/setup.py0convert a path to uri. the path will be made absolute and will not have quoted path parts.STRING
HIGHtests/functional/test_list.py0test that check should include package in working directory if working directory is added in pythonpathSTRING
HIGHtests/functional/test_show.py0test that check should include package in working directory if working directory is added in pythonpathSTRING
HIGHtests/functional/test_freeze.py0test that check should include package in working directory if working directory is added in pythonpathSTRING
HIGHtests/functional/test_check.py0test that check should include package in working directory if working directory is added in pythonpathSTRING
HIGHsrc/pip/_internal/vcs/git.py0return the path to python project root, relative to the repo root. return none if the project root is in the repo root.STRING
HIGHsrc/pip/_internal/vcs/mercurial.py0return the path to python project root, relative to the repo root. return none if the project root is in the repo root.STRING
HIGHsrc/pip/_internal/vcs/versioncontrol.py0return the path to python project root, relative to the repo root. return none if the project root is in the repo root.STRING
HIGHsrc/pip/_internal/commands/download.py0%prog [options] <requirement specifier> ... %prog [options] -r <requirements file> ... %prog [options] [-e] <vcs projectSTRING
HIGHsrc/pip/_internal/commands/lock.py0%prog [options] <requirement specifier> ... %prog [options] -r <requirements file> ... %prog [options] [-e] <vcs projectSTRING
HIGHsrc/pip/_internal/commands/install.py0%prog [options] <requirement specifier> ... %prog [options] -r <requirements file> ... %prog [options] [-e] <vcs projectSTRING
HIGHsrc/pip/_internal/commands/wheel.py0%prog [options] <requirement specifier> ... %prog [options] -r <requirements file> ... %prog [options] [-e] <vcs projectSTRING
HIGHsrc/pip/_vendor/rich/live.py0iter_values = iter(values) try: previous_value = next(iter_values) except stopiteration: return for value in iter_valuesSTRING
HIGHsrc/pip/_vendor/rich/progress.py0iter_values = iter(values) try: previous_value = next(iter_values) except stopiteration: return for value in iter_valuesSTRING
HIGHsrc/pip/_vendor/rich/__main__.py0iter_values = iter(values) try: previous_value = next(iter_values) except stopiteration: return for value in iter_valuesSTRING
HIGHsrc/pip/_vendor/platformdirs/macos.py0:returns: state directory tied to the user, same as `user_data_dir`STRING
HIGHsrc/pip/_vendor/platformdirs/android.py0:returns: state directory tied to the user, same as `user_data_dir`STRING
HIGHsrc/pip/_vendor/platformdirs/windows.py0:returns: state directory tied to the user, same as `user_data_dir`STRING
HIGHsrc/pip/_vendor/platformdirs/macos.py0:returns: runtime directory shared by users, same as `user_runtime_dir`STRING
HIGHsrc/pip/_vendor/platformdirs/android.py0:returns: runtime directory shared by users, same as `user_runtime_dir`STRING
HIGHsrc/pip/_vendor/platformdirs/windows.py0:returns: runtime directory shared by users, same as `user_runtime_dir`STRING
HIGHsrc/pip/_vendor/platformdirs/macos.py0:yield: all user and site configuration directories.STRING
HIGHsrc/pip/_vendor/platformdirs/unix.py0:yield: all user and site configuration directories.STRING
HIGHsrc/pip/_vendor/platformdirs/api.py0:yield: all user and site configuration directories.STRING
HIGHsrc/pip/_vendor/platformdirs/unix.py0:returns: preference directory tied to the user, same as ``user_config_dir``STRING
HIGHsrc/pip/_vendor/platformdirs/android.py0:returns: preference directory tied to the user, same as ``user_config_dir``STRING
HIGHsrc/pip/_vendor/platformdirs/windows.py0:returns: preference directory tied to the user, same as ``user_config_dir``STRING
Excessive Try-Catch Wrapping79 hits · 83 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_utils_subprocess.py364 except Exception as exc:CODE
LOWsrc/pip/_internal/cache.py203 except Exception as e:CODE
LOWsrc/pip/_internal/cache.py275 except Exception as e:CODE
LOWsrc/pip/_internal/wheel_builder.py198 except Exception as e:CODE
LOWsrc/pip/_internal/build_env/installer.py246 except Exception as exc:CODE
LOWsrc/pip/_internal/network/auth.py179 except Exception as exc:CODE
LOWsrc/pip/_internal/network/auth.py276 except Exception as exc:CODE
LOWsrc/pip/_internal/network/auth.py569 except Exception:CODE
LOWsrc/pip/_internal/network/session.py188 except Exception:CODE
LOWsrc/pip/_internal/utils/logging.py231 except Exception:CODE
LOWsrc/pip/_internal/utils/pylock.py280 except Exception as exc:CODE
LOWsrc/pip/_internal/utils/pylock.py287 except Exception as exc:CODE
LOWsrc/pip/_internal/utils/pylock.py294 except Exception as exc:CODE
LOWsrc/pip/_internal/utils/subprocess.py140 except Exception as exc:CODE
LOWsrc/pip/_internal/utils/retry.py39 except Exception:CODE
LOWsrc/pip/_internal/utils/unpacking.py325 except Exception as exc:CODE
LOWsrc/pip/_internal/cli/index_command.py205 except Exception:CODE
LOWsrc/pip/_internal/cli/index_command.py214 except Exception:CODE
MEDIUMsrc/pip/_internal/cli/parser.py223 print(f"An error occurred during configuration: {exc}")CODE
LOWsrc/pip/_internal/cli/spinners.py148 except Exception:CODE
LOWsrc/pip/_internal/cli/spinners.py208 except Exception:CODE
LOWsrc/pip/_internal/req/__init__.py94 except Exception:CODE
LOWsrc/pip/_internal/req/pep723.py34 except Exception as exc:CODE
LOWsrc/pip/_internal/index/package_finder.py917 except Exception:CODE
LOWsrc/pip/_internal/commands/configuration.py275 except Exception:CODE
LOWsrc/pip/_internal/commands/install.py664 except Exception:CODE
LOWsrc/pip/_vendor/packaging/direct_url.py74 except Exception as e:CODE
LOWsrc/pip/_vendor/packaging/pylock.py155 except Exception as e:CODE
LOWsrc/pip/_vendor/packaging/pylock.py186 except Exception as e:CODE
LOWsrc/pip/_vendor/packaging/pylock.py199 except Exception as e:CODE
LOWsrc/pip/_vendor/packaging/pylock.py214 except Exception as e:CODE
LOWsrc/pip/_vendor/packaging/pylock.py600 except Exception as e:CODE
LOWsrc/pip/_vendor/packaging/pylock.py620 except Exception as e:CODE
LOWsrc/pip/_vendor/packaging/pylock.py642 except Exception as e:CODE
LOWsrc/pip/_vendor/truststore/_api.py131 except Exception:CODE
LOWsrc/pip/_vendor/pygments/util.py127 except Exception:STRING
MEDIUMsrc/pip/_vendor/pygments/util.py124def text_analyse(text):CODE
LOWsrc/pip/_vendor/pygments/lexer.py584 except Exception as err:CODE
LOWsrc/pip/_vendor/pygments/lexers/__init__.py165 except Exception as err:CODE
LOWsrc/pip/_vendor/pygments/formatters/__init__.py114 except Exception as err:CODE
LOWsrc/pip/_vendor/distlib/util.py365 except Exception:CODE
LOWsrc/pip/_vendor/distlib/util.py946 except Exception as e:STRING
LOWsrc/pip/_vendor/distlib/util.py1006 except Exception:STRING
LOWsrc/pip/_vendor/distlib/util.py1073 except Exception:STRING
LOWsrc/pip/_vendor/distlib/util.py1177 except Exception:STRING
LOWsrc/pip/_vendor/distlib/scripts.py292 except Exception:CODE
LOWsrc/pip/_vendor/distlib/scripts.py305 except Exception:CODE
LOWsrc/pip/_vendor/rich/logging.py179 except Exception:CODE
LOWsrc/pip/_vendor/rich/console.py87except Exception:CODE
LOWsrc/pip/_vendor/rich/console.py91except Exception:CODE
LOWsrc/pip/_vendor/rich/console.py95except Exception:CODE
LOWsrc/pip/_vendor/rich/_fileno.py19 except Exception:CODE
LOWsrc/pip/_vendor/rich/traceback.py207 except Exception:CODE
LOWsrc/pip/_vendor/rich/traceback.py458 except Exception:CODE
LOWsrc/pip/_vendor/rich/traceback.py833 except Exception as error:CODE
LOWsrc/pip/_vendor/rich/markup.py195 except Exception as error:CODE
LOWsrc/pip/_vendor/rich/repr.py83 except Exception as error:CODE
LOWsrc/pip/_vendor/rich/pretty.py86 except Exception: # pragma: no coverageCODE
LOWsrc/pip/_vendor/rich/pretty.py167 except Exception:CODE
LOWsrc/pip/_vendor/rich/pretty.py574 except Exception:CODE
19 more matches not shown…
Decorative Section Separators28 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMnoxfile.py115# -----------------------------------------------------------------------------COMMENT
MEDIUMnoxfile.py117# -----------------------------------------------------------------------------COMMENT
MEDIUMnoxfile.py368# -----------------------------------------------------------------------------COMMENT
MEDIUMnoxfile.py370# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/update-rtd-redirects.py34# --------------------------------------------------------------------------------------COMMENT
MEDIUMtools/update-rtd-redirects.py36# --------------------------------------------------------------------------------------COMMENT
MEDIUMtools/update-rtd-redirects.py54# --------------------------------------------------------------------------------------COMMENT
MEDIUMtools/update-rtd-redirects.py56# --------------------------------------------------------------------------------------COMMENT
MEDIUMtests/lib/__init__.py482 # ---------------------------STRING
MEDIUMtests/lib/__init__.py1387# -------------------------------------------------------------------------STRING
MEDIUMtests/lib/__init__.py1389# -------------------------------------------------------------------------STRING
MEDIUMsrc/pip/_vendor/packaging/dependency_groups.py23# -----------COMMENT
MEDIUMsrc/pip/_vendor/packaging/dependency_groups.py25# -----------COMMENT
MEDIUMsrc/pip/_vendor/packaging/dependency_groups.py64# ------------------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/dependency_groups.py66# ------------------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/dependency_groups.py250# --------------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/dependency_groups.py252# --------------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/dependency_groups.py269# ----------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/dependency_groups.py271# ----------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/_parser.py95# --------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/_parser.py97# --------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/_parser.py289# --------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/pip/_vendor/packaging/_parser.py291# --------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/pip/_vendor/pygments/lexer.py325# ------------------------------------------------------------------------------COMMENT
MEDIUMsrc/pip/_vendor/requests/compat.py30# -------------------COMMENT
MEDIUMsrc/pip/_vendor/requests/compat.py32# -------------------COMMENT
MEDIUMsrc/pip/_vendor/requests/compat.py68# --------------COMMENT
MEDIUMsrc/pip/_vendor/requests/compat.py70# --------------COMMENT
AI Structural Patterns70 hits · 70 pts
SeverityFileLineSnippetContext
LOWtests/lib/wheel.py289CODE
LOWsrc/pip/_internal/utils/subprocess.py59CODE
LOWsrc/pip/_internal/models/link.py227CODE
LOWsrc/pip/_internal/req/req_install.py68CODE
LOWsrc/pip/_internal/vcs/versioncontrol.py615CODE
LOWsrc/pip/_vendor/packaging/pylock.py535CODE
LOWsrc/pip/_vendor/msgpack/fallback.py226CODE
LOWsrc/pip/_vendor/msgpack/fallback.py653CODE
LOWsrc/pip/_vendor/distlib/util.py958CODE
LOWsrc/pip/_vendor/requests/sessions.py557CODE
LOWsrc/pip/_vendor/requests/models.py321CODE
LOWsrc/pip/_vendor/requests/models.py422CODE
LOWsrc/pip/_vendor/rich/logging.py65CODE
LOWsrc/pip/_vendor/rich/console.py163CODE
LOWsrc/pip/_vendor/rich/console.py625CODE
LOWsrc/pip/_vendor/rich/console.py1648CODE
LOWsrc/pip/_vendor/rich/console.py1747CODE
LOWsrc/pip/_vendor/rich/console.py1932CODE
LOWsrc/pip/_vendor/rich/style.py127CODE
LOWsrc/pip/_vendor/rich/traceback.py83CODE
LOWsrc/pip/_vendor/rich/traceback.py286CODE
LOWsrc/pip/_vendor/rich/traceback.py340CODE
LOWsrc/pip/_vendor/rich/__init__.py77CODE
LOWsrc/pip/_vendor/rich/__init__.py120CODE
LOWsrc/pip/_vendor/rich/pretty.py113CODE
LOWsrc/pip/_vendor/rich/pretty.py171CODE
LOWsrc/pip/_vendor/rich/pretty.py273CODE
LOWsrc/pip/_vendor/rich/columns.py31CODE
LOWsrc/pip/_vendor/rich/_inspect.py37CODE
LOWsrc/pip/_vendor/rich/text.py144CODE
LOWsrc/pip/_vendor/rich/text.py329CODE
LOWsrc/pip/_vendor/rich/live.py57CODE
LOWsrc/pip/_vendor/rich/syntax.py276CODE
LOWsrc/pip/_vendor/rich/syntax.py317CODE
LOWsrc/pip/_vendor/rich/table.py189CODE
LOWsrc/pip/_vendor/rich/table.py365CODE
LOWsrc/pip/_vendor/rich/progress_bar.py33CODE
LOWsrc/pip/_vendor/rich/prompt.py80CODE
LOWsrc/pip/_vendor/rich/prompt.py97CODE
LOWsrc/pip/_vendor/rich/prompt.py112CODE
LOWsrc/pip/_vendor/rich/progress.py104CODE
LOWsrc/pip/_vendor/rich/progress.py306CODE
LOWsrc/pip/_vendor/rich/progress.py372CODE
LOWsrc/pip/_vendor/rich/progress.py397CODE
LOWsrc/pip/_vendor/rich/progress.py421CODE
LOWsrc/pip/_vendor/rich/progress.py714CODE
LOWsrc/pip/_vendor/rich/progress.py1077CODE
LOWsrc/pip/_vendor/rich/progress.py1310CODE
LOWsrc/pip/_vendor/rich/panel.py40CODE
LOWsrc/pip/_vendor/rich/panel.py74CODE
LOWsrc/pip/_vendor/rich/json.py25CODE
LOWsrc/pip/_vendor/rich/json.py54CODE
LOWsrc/pip/_vendor/urllib3/fields.py76CODE
LOWsrc/pip/_vendor/urllib3/_base_connection.py142CODE
LOWsrc/pip/_vendor/urllib3/__init__.py117CODE
LOWsrc/pip/_vendor/urllib3/response.py716CODE
LOWsrc/pip/_vendor/urllib3/connection.py600CODE
LOWsrc/pip/_vendor/urllib3/connection.py621CODE
LOWsrc/pip/_vendor/urllib3/connection.py683CODE
LOWsrc/pip/_vendor/urllib3/connectionpool.py175CODE
10 more matches not shown…
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHsrc/pip/_vendor/distro/distro.py676 The initialization method of this class gathers information from the available data sources, and storesSTRING
HIGHsrc/pip/_vendor/rich/measure.py82Get a measurement for a renderable. Args: console (~rich.console.Console): Console instance. STRING
HIGHsrc/pip/_vendor/rich/console.py829Set Live instance. Used by Live context manager (no need to call directly). Args: live (Live): LiveSTRING
HIGHsrc/pip/_vendor/rich/console.py1479Get a Style instance by its theme name or parse a definition. Args: name (str): The name of a styleSTRING
HIGHsrc/pip/_vendor/rich/console.py1902Get caller frame information. Args: offset (int): the caller offset within the current frame stack.STRING
HIGHsrc/pip/_vendor/rich/style.py495Parse a style definition. Args: style_definition (str): A string containing a style. RaiseSTRING
HIGHsrc/pip/_vendor/rich/markup.py112Render console markup in to a Text instance. Args: markup (str): A string containing console markup. STRING
HIGHsrc/pip/_vendor/rich/highlighter.py21Highlight a str or Text instance. Args: text (Union[str, ~Text]): Text to highlight. RaiseSTRING
HIGHsrc/pip/_vendor/rich/progress_bar.py129Renders the pulse animation. Args: console (Console): Console instance. width (int): WiSTRING
HIGHsrc/pip/_vendor/rich/prompt.py228Process response from user, convert to prompt type. Args: value (str): String typed by user. STRING
HIGHsrc/pip/_vendor/rich/progress.py1244Track progress file reading from a binary file. Args: file (BinaryIO): A file-like object opened inSTRING
HIGHsrc/pip/_vendor/rich/progress.py1323Track progress while reading from a binary file. Args: path (Union[str, PathLike[str]]): The path tSTRING
HIGHsrc/pip/_vendor/rich/_win32_console.py96Retrieves the current input mode of a console's input buffer or the current output mode of a console screen buffer. STRING
Over-Commented Block48 hits · 48 pts
SeverityFileLineSnippetContext
LOWpyproject.toml361# with hostname, pid, and a timestamp.COMMENT
LOWtests/functional/test_self_update.py21 # in editable mode. This could fail, as we'll need to uninstall the runningCOMMENT
LOW.github/ISSUE_TEMPLATE/config.yml1# Documentation for this file can be found at:COMMENT
LOWsrc/pip/_internal/pyproject.py101 package=req_name,COMMENT
LOWsrc/pip/_internal/network/session.py81COMMENT
LOWsrc/pip/_internal/network/session.py361 # Accept-Encoding" responses shared across interpreters (pypa/pip#13979).COMMENT
LOWsrc/pip/_internal/network/session.py381 # Add a small amount of back off between failed requests inCOMMENT
LOWsrc/pip/_internal/network/utils.py21COMMENT
LOWsrc/pip/_internal/network/utils.py81 chunk_size,COMMENT
LOWsrc/pip/_internal/utils/subprocess.py81 log_failed_cmd: if false, failed commands are not logged, only raised.COMMENT
LOWsrc/pip/_internal/utils/packaging.py41 # constructed). This method adds a cache to requirement object creation toCOMMENT
LOWsrc/pip/_internal/utils/glibc.py41 # manpage says, "If filename is NULL, then the returned handle is for theCOMMENT
LOWsrc/pip/_internal/utils/glibc.py81# ('glibc', '2.9')COMMENT
LOWsrc/pip/_internal/models/installation_report.py21 # record origin.json.COMMENT
LOWsrc/pip/_internal/cli/main.py21# https://pip.pypa.io/en/stable/user_guide/#using-pip-from-your-program.COMMENT
LOWsrc/pip/_internal/operations/prepare.py781 self.build_isolation,COMMENT
LOWsrc/pip/_internal/operations/install/wheel.py281 # Currently, projects using versioned entry points will either haveCOMMENT
LOWsrc/pip/_internal/index/collector.py141 # We don't want to blindly returned cached data forCOMMENT
LOWsrc/pip/_internal/commands/cache.py241 # Additionally, non-alphanumeric values in the distribution areCOMMENT
LOWsrc/pip/_internal/metadata/pkg_resources.py281 if dist:COMMENT
LOWsrc/pip/_vendor/__init__.py21# is done to support downstream re-distributors like Debian and Fedora whoCOMMENT
LOWsrc/pip/_vendor/packaging/metadata.py181COMMENT
LOWsrc/pip/_vendor/packaging/metadata.py201 # answer with what to do in that case. As such, we'll do the onlyCOMMENT
LOWsrc/pip/_vendor/packaging/metadata.py241# The various parse_FORMAT functions here are intended to be as lenient asCOMMENT
LOWsrc/pip/_vendor/packaging/metadata.py361 # We use get_all() here, even for fields that aren't multiple use,COMMENT
LOWsrc/pip/_vendor/packaging/metadata.py381COMMENT
LOWsrc/pip/_vendor/packaging/metadata.py421 raw_name = _EMAIL_TO_RAW_MAPPING.get(name)COMMENT
LOWsrc/pip/_vendor/packaging/metadata.py441 if raw_name in _STRING_FIELDS and len(value) == 1:COMMENT
LOWsrc/pip/_vendor/packaging/metadata.py461 # The project urls is implemented in the metadata spec as a list ofCOMMENT
LOWsrc/pip/_vendor/packaging/markers.py341 # packaging.requirements.Requirement. If any additional logic isCOMMENT
LOWsrc/pip/_vendor/packaging/licenses/__init__.py1#######################################################################################COMMENT
LOWsrc/pip/_vendor/packaging/licenses/__init__.py21# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR ACOMMENT
LOWsrc/pip/_vendor/truststore/_openssl.py21_HASHED_CERT_FILENAME_RE = re.compile(r"^[0-9a-fA-F]{8}\.[0-9]$")COMMENT
LOWsrc/pip/_vendor/pygments/lexer.py681 #: a single state 'root'. The top of the stack is called "the current state".COMMENT
LOWsrc/pip/_vendor/distlib/compat.py41 import xmlrpclibCOMMENT
LOWsrc/pip/_vendor/distlib/util.py301 return resultCOMMENT
LOWsrc/pip/_vendor/distlib/util.py1801 """Normalize a python package name a la PEP 503"""COMMENT
LOWsrc/pip/_vendor/distro/distro.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/pip/_vendor/distro/distro.py81#:COMMENT
LOWsrc/pip/_vendor/requests/sessions.py461 #: :class:`Request <Request>`. The dictionary values may be lists forCOMMENT
LOWsrc/pip/_vendor/requests/sessions.py481 #: cert file (.pem). If Tuple, ('cert', 'key') pair.COMMENT
LOWsrc/pip/_vendor/tomli/_parser.py21 from collections.abc import IterableCOMMENT
LOWsrc/pip/_vendor/certifi/core.py21 def where() -> str:COMMENT
LOWsrc/pip/_vendor/certifi/core.py61 # it in a global variable.COMMENT
LOWsrc/pip/_vendor/rich/highlighter.py161 #COMMENT
LOWsrc/pip/_vendor/rich/highlighter.py181 # Calendar date with hours, minutes, and seconds (e.g., 2008-08-30 17:21:59 or 20080830 172159).COMMENT
LOWsrc/pip/_vendor/urllib3/util/wait.py1from __future__ import annotationsCOMMENT
LOWsrc/pip/_vendor/urllib3/util/response.py61 # we're only interested in the result if it's not a multipart messageCOMMENT
Cross-Language Confusion9 hits · 42 pts
SeverityFileLineSnippetContext
HIGHtests/functional/test_completion.py21 PIP_AUTO_COMPLETE=1 "$1" 2>/dev/null ) )STRING
HIGHtests/functional/test_completion.py51 PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null )STRING
HIGHsrc/pip/_internal/commands/completion.py20 PIP_AUTO_COMPLETE=1 "$1" 2>/dev/null ) )CODE
HIGHsrc/pip/_internal/commands/completion.py29 PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null )CODE
HIGHsrc/pip/_vendor/distlib/compat.py573 def new_child(self): # like Django's Context.push()CODE
HIGHsrc/pip/_vendor/rich/logging.py172 # Handles pythonw, where stdout/stderr are null, and we return NullFileCOMMENT
HIGHsrc/pip/_vendor/rich/tree.py171 style_stack.push(get_style(node.style))CODE
HIGHsrc/pip/_vendor/rich/tree.py172 guide_style_stack.push(get_style(node.guide_style))CODE
HIGHsrc/pip/_vendor/rich/highlighter.py117 r"\b(?P<bool_true>true)\b|\b(?P<bool_false>false)\b|\b(?P<null>null)\b",CODE
Hallucination Indicators4 hits · 35 pts
SeverityFileLineSnippetContext
CRITICALtests/unit/test_network_auth.py23 pip._internal.network.auth.get_keyring_provider.cache_clear()CODE
CRITICALsrc/pip/_internal/cli/req_command.py275 return pip._internal.resolution.resolvelib.resolver.Resolver(CODE
CRITICALsrc/pip/_internal/cli/req_command.py290 return pip._internal.resolution.legacy.resolver.Resolver(CODE
CRITICALsrc/pip/_vendor/pygments/sphinxext.py87 self.state.document.settings.record_dependencies.add(fn)STRING
Redundant / Tautological Comments18 hits · 26 pts
SeverityFileLineSnippetContext
LOWnoxfile.py444 "# Check if there's any Git-untracked files before building the wheel",CODE
LOWsrc/pip/_internal/network/download.py320 # Check if the adapter is the CacheControlAdapter (i.e. caching is enabled)COMMENT
LOWsrc/pip/_internal/utils/filesystem.py30 # Check if path is writable by current user.COMMENT
LOWsrc/pip/_internal/operations/check.py83 # Check if it's missingCOMMENT
LOWsrc/pip/_internal/operations/check.py92 # Check if there's a conflictCOMMENT
LOWsrc/pip/_internal/operations/prepare.py623 # Check if the relevant file is already availableCOMMENT
LOWsrc/pip/_internal/resolution/resolvelib/factory.py758 # Check if only final releases are allowed for this packageCOMMENT
LOWsrc/pip/_internal/resolution/resolvelib/resolver.py133 # Check if there is already an installation under the same name,COMMENT
LOWsrc/pip/_internal/locations/__init__.py346 # Check if this path mismatch is caused by distutils config files. ThoseCOMMENT
LOWsrc/pip/_internal/index/package_finder.py1013 # Check if only final releases are allowed for this packageCOMMENT
LOWsrc/pip/_internal/distributions/sdist.py66 # Check if the current environment provides build dependenciesCOMMENT
LOWsrc/pip/_vendor/packaging/metadata.py626 # Check if content-type is valid or defaulted to `text/plain` and thus wasCOMMENT
LOWsrc/pip/_vendor/requests/models.py579 # Check if file, fo, generator, iterator.COMMENT
LOWsrc/pip/_vendor/urllib3/connection.py736 # Check if the target origin supports HTTP/2.COMMENT
LOWsrc/pip/_vendor/urllib3/connectionpool.py941 # Check if we should retry the HTTP response.COMMENT
LOWsrc/pip/_vendor/urllib3/util/request.py237 # Check if the body implements the buffer API.COMMENT
LOWsrc/pip/_vendor/urllib3/util/request.py241 # Check if the body is an iterableCOMMENT
LOWsrc/pip/_vendor/urllib3/util/response.py31 # Check if the object is a container for another file-like object thatCOMMENT
AI Slop Vocabulary16 hits · 24 pts
SeverityFileLineSnippetContext
LOWsrc/pip/_internal/network/auth.py500 # We are not able to prompt the user so simply return the responseCOMMENT
MEDIUMsrc/pip/_internal/network/session.py87# CI traffic to PyPI. Thus, it is okay if the list is not comprehensive.COMMENT
LOWsrc/pip/_internal/cli/parser.py170 # If its not a list, we should abort and just return the help textCOMMENT
LOWsrc/pip/_vendor/packaging/metadata.py214 # is unparsable, and we can just add the whole thing to ourCOMMENT
LOWsrc/pip/_vendor/packaging/metadata.py410 # This is already a string, so just add it.COMMENT
LOWsrc/pip/_vendor/packaging/metadata.py439 # what we should parse it as, and we have to just add it to our listCOMMENT
LOWsrc/pip/_vendor/packaging/specifiers.py995 # version. If it's not we can short circuit and just return False nowCOMMENT
LOWsrc/pip/_vendor/packaging/specifiers.py1020 # version. If it's not we can short circuit and just return False nowCOMMENT
LOWsrc/pip/_vendor/packaging/specifiers.py1424 # then we'll just return None since we don't know if this should haveCOMMENT
LOWsrc/pip/_vendor/distlib/compat.py246 # what file suffixes are executable, so just pass on cmd as-is.COMMENT
MEDIUMsrc/pip/_vendor/requests/sessions.py757 # Set defaults that the hooks can utilize to ensure they always haveSTRING
LOWsrc/pip/_vendor/requests/models.py723 # method. To prevent iterating over None, simply use an empty listCOMMENT
LOWsrc/pip/_vendor/requests/utils.py491 # a UNC path, then just return the value without quotes. Using theSTRING
LOWsrc/pip/_vendor/certifi/core.py70 # file, it will just return the file system location and theCOMMENT
MEDIUMsrc/pip/_vendor/urllib3/exceptions.py251 """Response needs to be chunked in order to read it as chunks."""STRING
LOWsrc/pip/_vendor/pkg_resources/__init__.py2# For now we'd simply use implicit Any/Unknown which would add redundant annotationsCOMMENT
Slop Phrases4 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/pip/_vendor/packaging/markers.py342 # added here, make sure to mirror/adapt Requirement.COMMENT
MEDIUMsrc/pip/_vendor/distlib/util.py1551 # you can use the following handler class, which does not allow HTTP traffic.STRING
LOWsrc/pip/_vendor/urllib3/response.py1146 # TODO make sure to initially read enough data to get past the headersCOMMENT
MEDIUMsrc/pip/_vendor/urllib3/util/wait.py12# There are two types of APIs you can use for waiting on sockets: the fancyCOMMENT
Fake / Example Data8 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_utils.py626 ("user@example.com", ("example.com", ("user", None))),CODE
LOWtests/unit/test_vcs.py352 (("user@example.com", "https"), ("example.com", ("user", None))),CODE
LOWsrc/pip/_internal/req/constructors.py73 return get_requirement("placeholder" + extras.lower()).extrasCODE
LOWsrc/pip/_internal/req/constructors.py135 get_requirement("placeholder" + extras.lower()).extras,CODE
LOWsrc/pip/_vendor/rich/text.py1340 """\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloSTRING
LOWsrc/pip/_vendor/rich/text.py1340 """\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloSTRING
LOWsrc/pip/_vendor/rich/__main__.py71 lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque in metus sed sapien ultricies pretium a atCODE
LOWsrc/pip/_vendor/rich/__main__.py71 lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque in metus sed sapien ultricies pretium a atCODE
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/functional/test_install.py206 # WARNING: The scripts pip, pip3, ... are installed in ... which is not on PATHCOMMENT
LOWsrc/pip/_internal/utils/unpacking.py281 # NOTE: This function can be removed once pip requires CPython ≥ 3.12.​COMMENT
LOWsrc/pip/_vendor/cachecontrol/caches/file_cache.py59 # NOTE: This method should not change as some may depend on it.COMMENT