Install and Run Python Applications in Isolated Environments
This report presents the forensic synthetic code analysis of pypa/pipx, a Python project with 12,881 GitHub stars. SynthScan v2.0 examined 35,132 lines of code across 284 source files, recording 773 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 21.8 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).
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.
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.
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.
The scanner identified 773 distinct pattern matches across 9 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_requires_python.py | 42 | def test_rejected_constraint_reads_the_backend_complaint(output: str, expected: str | None) -> None: | CODE |
| LOW⚡ | tests/test_requires_python.py | 58 | def test_unsatisfied_constraint_reports_only_a_mismatch( | CODE |
| LOW⚡ | tests/test_requires_python.py | 68 | def test_interpreter_for_takes_the_newest_installed_match(mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | tests/test_requires_python.py | 75 | def test_interpreter_for_skips_a_version_the_system_lacks(mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | tests/test_requires_python.py | 86 | def test_interpreter_for_fetches_when_the_caller_allows_it(mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | tests/test_requires_python.py | 96 | def test_interpreter_for_reports_a_system_without_a_match(mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | tests/test_requires_python.py | 106 | def test_interpreter_for_reports_a_constraint_no_release_meets() -> None: | CODE |
| LOW | tests/test_requires_python.py | 122 | def project_excluding_this_python(tmp_path: Path) -> Path: | CODE |
| LOW | tests/test_requires_python.py | 141 | def test_install_moves_to_a_python_the_package_supports( | CODE |
| LOW⚡ | tests/test_ensurepath.py | 51 | def test_ensure_path_dry_run_does_not_append(mock_userpath: FakeUserpath, capsys: pytest.CaptureFixture[str]) -> None: | CODE |
| LOW⚡ | tests/test_ensurepath.py | 61 | def test_ensure_path_dry_run_reports_prepend(mock_userpath: FakeUserpath, capsys: pytest.CaptureFixture[str]) -> None: | CODE |
| LOW⚡ | tests/test_ensurepath.py | 69 | def test_ensure_path_non_dry_run_still_appends(mock_userpath: FakeUserpath, capsys: pytest.CaptureFixture[str]) -> None: | CODE |
| LOW⚡ | tests/test_ensurepath.py | 77 | def test_ensure_pipx_paths_dry_run_footer(mock_userpath: FakeUserpath, capsys: pytest.CaptureFixture[str]) -> None: | CODE |
| LOW | tests/test_ensurepath.py | 106 | def test_ensure_pipx_paths_global_updates_system_profile( | CODE |
| LOW | tests/test_ensurepath.py | 122 | def test_ensure_pipx_paths_global_skips_userpath(mocker: MockerFixture, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_ensurepath.py | 133 | def test_ensure_pipx_paths_global_dry_run_does_not_write( | CODE |
| LOW | tests/test_ensurepath.py | 146 | def test_ensure_pipx_paths_global_configuration_is_world_readable(mocker: MockerFixture, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_ensurepath.py | 159 | def test_ensure_pipx_paths_global_reports_existing_configuration( | CODE |
| LOW | tests/test_ensurepath.py | 174 | def test_ensurepath_cli_global_writes_system_configuration( | CODE |
| LOW | tests/test_inject.py | 54 | def test_inject_json_reports_locked_environment( | CODE |
| LOW | tests/test_inject.py | 87 | def test_inject_json_reports_already_installed( | CODE |
| LOW | tests/test_inject.py | 118 | def test_inject_json_reports_partial_failure( | CODE |
| LOW | tests/test_inject.py | 160 | def test_inject_json_reports_no_packages( | CODE |
| LOW | tests/test_inject.py | 201 | def test_inject_rejects_pylock( | CODE |
| LOW | tests/test_inject.py | 230 | def test_inject_single_package(pipx_temp_env, capsys, caplog, pkg_spec): | CODE |
| LOW | tests/test_inject.py | 256 | def test_inject_main_package_extra( | CODE |
| LOW | tests/test_inject.py | 287 | def test_inject_simple_global(pipx_temp_env, capsys): | CODE |
| LOW | tests/test_inject.py | 293 | def test_inject_simple_legacy_venv(pipx_temp_env, capsys, metadata_version): | CODE |
| LOW | tests/test_inject.py | 322 | def test_inject_include_apps_from_dependency( | CODE |
| LOW | tests/test_inject.py | 342 | def test_inject_main_package_preserves_included_dependency( | CODE |
| LOW | tests/test_inject.py | 355 | def test_inject_force_replaces_included_dependency_resources( | CODE |
| LOW | tests/test_inject.py | 375 | def test_inject_include_apps_from_missing_dependency_rolls_back( | CODE |
| LOW | tests/test_inject.py | 403 | def test_inject_with_req_file(pipx_temp_env, capsys, caplog, tmp_path, with_packages): | CODE |
| LOW | tests/test_inject.py | 441 | def test_force_inject_reinstalls_without_storing_force(pipx_temp_env, caplog): | STRING |
| LOW | tests/test_inject.py | 463 | def test_inject_inherits_cooldown( | STRING |
| LOW | tests/conftest.py | 76 | def make_project_with_dependency(root: Path, tmp_path: Path) -> Callable[[str], Path]: | STRING |
| LOW | tests/conftest.py | 118 | def copied_dependency_resource( | STRING |
| LOW | tests/test_list.py | 99 | def test_list_returns_problem_for_corrupt_metadata(pipx_temp_env: None, metadata: str) -> None: | CODE |
| LOW | tests/test_list.py | 107 | def test_list_suffix_legacy_venv(pipx_temp_env, monkeypatch, capsys, metadata_version): | CODE |
| LOW | tests/test_list.py | 185 | def test_list_json_rejects_human_filter( | CODE |
| LOW | tests/test_list.py | 195 | def test_list_selected_package_text(pipx_temp_env: None, capsys: pytest.CaptureFixture[str]) -> None: | CODE |
| LOW | tests/test_list.py | 206 | def test_list_selected_packages_json(pipx_temp_env: None, capsys: pytest.CaptureFixture[str]) -> None: | CODE |
| LOW | tests/test_list.py | 225 | def test_list_selected_package_short( | CODE |
| LOW | tests/test_list.py | 239 | def test_list_selected_package_with_suffix(pipx_temp_env: None, capsys: pytest.CaptureFixture[str]) -> None: | CODE |
| LOW | tests/test_list.py | 248 | def test_list_selected_package_pinned(pipx_temp_env: None, capsys: pytest.CaptureFixture[str]) -> None: | CODE |
| LOW | tests/test_list.py | 259 | def test_list_rejects_missing_selected_package( | CODE |
| LOW | tests/test_list.py | 267 | def test_list_injected_apps_without_symlinks( | CODE |
| LOW | tests/test_list.py | 282 | def test_list_waits_for_install(pipx_temp_env: None, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_list.py | 307 | def test_install_does_not_wait_for_other_environment(pipx_temp_env: None, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_list.py | 345 | def test_list_standalone_interpreter(pipx_temp_env, monkeypatch, mocked_github_api, capsys): | CODE |
| LOW | tests/test_list.py | 372 | def test_list_does_not_trigger_maintenance(pipx_temp_env, caplog): | CODE |
| LOW | tests/test_list.py | 401 | def test_list_pinned_packages(pipx_temp_env, monkeypatch, capsys): | CODE |
| LOW | tests/test_list.py | 414 | def test_list_pinned_packages_include_injected(pipx_temp_env, monkeypatch, capsys): | CODE |
| LOW | tests/test_list.py | 432 | def test_list_installed_packages_error(monkeypatch, tmp_path, fake_process): | CODE |
| LOW | tests/test_uninstall.py | 95 | def test_uninstall_json_reports_missing( | CODE |
| LOW | tests/test_uninstall.py | 123 | def test_uninstall_ignores_disappearing_resources( | CODE |
| LOW | tests/test_uninstall.py | 149 | # def test_uninstall_circular_deps(pipx_temp_env): | COMMENT |
| LOW | tests/test_uninstall.py | 155 | def test_uninstall_legacy_venv(pipx_temp_env, metadata_version): | CODE |
| LOW | tests/test_uninstall.py | 166 | def test_uninstall_legacy_venv_inspects_once(pipx_temp_env: None, mocker: MockerFixture) -> None: | CODE |
| LOW | tests/test_uninstall.py | 199 | def test_uninstall_removes_selected_dependency_resources(pipx_temp_env: None, local_extras_project: Path) -> None: | CODE |
| 530 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hatch_build.py | 1 | CODE | |
| LOW | tests/test_requires_python.py | 1 | CODE | |
| LOW | tests/test_inject.py | 1 | CODE | |
| LOW | tests/test_uninject.py | 1 | CODE | |
| LOW | tests/test_backends_install.py | 1 | CODE | |
| LOW | tests/test_script.py | 1 | CODE | |
| LOW | tests/test_upgrade.py | 1 | CODE | |
| LOW | tests/test_completions_expose.py | 1 | CODE | |
| LOW | tests/test_execute.py | 1 | CODE | |
| LOW | tests/test_util.py | 1 | CODE | |
| LOW | tests/test_outdated.py | 1 | CODE | |
| LOW | tests/test_standalone_interpreter.py | 1 | CODE | |
| LOW | tests/test_upgrade_all.py | 1 | CODE | |
| LOW | tests/test_backends.py | 1 | CODE | |
| LOW | tests/test_self_managed.py | 1 | CODE | |
| LOW | tests/test_reset.py | 1 | CODE | |
| LOW | tests/test_run_uv.py | 1 | CODE | |
| LOW | tests/test_install.py | 1 | CODE | |
| LOW | tests/test_cache.py | 1 | CODE | |
| LOW | scripts/release.py | 3 | CODE | |
| LOW | src/pipx/venv.py | 12 | CODE | |
| LOW | src/pipx/interpreter.py | 25 | CODE | |
| LOW | src/pipx/requires_python.py | 1 | CODE | |
| LOW | src/pipx/script.py | 1 | CODE | |
| LOW | src/pipx/backends/_base.py | 1 | CODE | |
| LOW | src/pipx/backends/__init__.py | 1 | CODE | |
| LOW | src/pipx/backends/__init__.py | 6 | CODE | |
| LOW | src/pipx/backends/uv.py | 1 | CODE | |
| LOW | src/pipx/backends/pip.py | 1 | CODE | |
| LOW | src/pipx/commands/pin.py | 1 | CODE | |
| LOW | src/pipx/commands/manifest.py | 1 | CODE | |
| LOW | src/pipx/commands/health.py | 1 | CODE | |
| LOW | src/pipx/commands/execute.py | 1 | CODE | |
| LOW | src/pipx/commands/reset.py | 1 | CODE | |
| LOW | src/pipx/commands/run_uv.py | 1 | CODE | |
| LOW | src/pipx/commands/cache.py | 1 | CODE | |
| LOW | src/pipx/commands/__init__.py | 1 | CODE | |
| LOW | src/pipx/commands/__init__.py | 1 | CODE | |
| LOW | src/pipx/commands/__init__.py | 2 | CODE | |
| LOW | src/pipx/commands/__init__.py | 3 | CODE | |
| LOW | src/pipx/commands/__init__.py | 4 | CODE | |
| LOW | src/pipx/commands/__init__.py | 5 | CODE | |
| LOW | src/pipx/commands/__init__.py | 5 | CODE | |
| LOW | src/pipx/commands/__init__.py | 5 | CODE | |
| LOW | src/pipx/commands/__init__.py | 6 | CODE | |
| LOW | src/pipx/commands/__init__.py | 6 | CODE | |
| LOW | src/pipx/commands/__init__.py | 6 | CODE | |
| LOW | src/pipx/commands/__init__.py | 6 | CODE | |
| LOW | src/pipx/commands/__init__.py | 7 | CODE | |
| LOW | src/pipx/commands/__init__.py | 7 | CODE | |
| LOW | src/pipx/commands/__init__.py | 8 | CODE | |
| LOW | src/pipx/commands/__init__.py | 8 | CODE | |
| LOW | src/pipx/commands/__init__.py | 8 | CODE | |
| LOW | src/pipx/commands/__init__.py | 9 | CODE | |
| LOW | src/pipx/commands/__init__.py | 9 | CODE | |
| LOW | src/pipx/commands/__init__.py | 9 | CODE | |
| LOW | src/pipx/commands/__init__.py | 10 | CODE | |
| LOW | src/pipx/commands/__init__.py | 11 | CODE | |
| LOW | src/pipx/commands/__init__.py | 11 | CODE | |
| LOW | src/pipx/commands/__init__.py | 12 | CODE | |
| 24 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hatch_build.py | 28 | __all__ = [ | CODE |
| LOW | src/pipx/animate.py | 143 | __all__ = [ | CODE |
| LOW⚡ | src/pipx/shared_libs.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pipx/shared_libs.py | 233 | __all__ = [ | CODE |
| LOW | src/pipx/paths.py | 171 | __all__ = [ | CODE |
| LOW | src/pipx/util.py | 574 | __all__ = [ | STRING |
| LOW | src/pipx/package_specifier.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pipx/package_specifier.py | 305 | __all__ = [ | STRING |
| LOW | src/pipx/venv.py | 798 | __all__ = [ | STRING |
| LOW | src/pipx/self_install.py | 67 | __all__ = [ | CODE |
| LOW | src/pipx/pipx_metadata_file.py | 385 | __all__ = [ | STRING |
| LOW | src/pipx/emojis.py | 37 | __all__ = [ | CODE |
| LOW | src/pipx/result.py | 85 | __all__ = [ | CODE |
| LOW | src/pipx/interpreter.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pipx/interpreter.py | 222 | __all__ = [ | CODE |
| LOW | src/pipx/requires_python.py | 87 | __all__ = [ | CODE |
| LOW | src/pipx/standalone_python.py | 252 | __all__ = [ | CODE |
| LOW | src/pipx/main.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pipx/main.py | 1917 | __all__ = [ | CODE |
| LOW | src/pipx/script.py | 187 | __all__ = [ | CODE |
| LOW | src/pipx/script.py | 227 | __all__ = [ | STRING |
| LOW | src/pipx/venv_inspect.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pipx/venv_inspect.py | 534 | __all__ = [ | CODE |
| LOW | src/pipx/backends/_base.py | 158 | __all__ = [ | CODE |
| LOW | src/pipx/backends/__init__.py | 67 | __all__ = [ | CODE |
| LOW | src/pipx/backends/uv.py | 291 | __all__ = [ | STRING |
| LOW | src/pipx/backends/pip.py | 178 | __all__ = [ | CODE |
| LOW | src/pipx/commands/pin.py | 116 | def _update_pin_info(venv: Venv, package_name: str, *, is_main_package: bool, pinned: bool) -> None: | CODE |
| LOW | src/pipx/commands/pin.py | 183 | __all__ = [ | CODE |
| LOW | src/pipx/commands/run.py | 551 | __all__ = [ | STRING |
| LOW | src/pipx/commands/list_packages.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pipx/commands/list_packages.py | 163 | __all__ = [ | CODE |
| LOW | src/pipx/commands/manifest.py | 374 | __all__ = [ | CODE |
| LOW | src/pipx/commands/health.py | 184 | __all__ = [ | CODE |
| LOW | src/pipx/commands/transaction.py | 35 | __all__ = [ | CODE |
| LOW | src/pipx/commands/execute.py | 60 | __all__ = [ | CODE |
| LOW | src/pipx/commands/reset.py | 97 | __all__ = [ | CODE |
| LOW | src/pipx/commands/run_uv.py | 176 | __all__ = [ | CODE |
| LOW | src/pipx/commands/cache.py | 30 | __all__ = [ | CODE |
| LOW | src/pipx/commands/__init__.py | 22 | __all__ = [ | CODE |
| LOW | src/pipx/commands/uninject.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pipx/commands/uninject.py | 262 | __all__ = [ | STRING |
| LOW | src/pipx/commands/run_pip.py | 128 | __all__ = [ | CODE |
| LOW | src/pipx/commands/upgrade.py | 499 | __all__ = [ | STRING |
| LOW | src/pipx/commands/inject.py | 358 | __all__ = [ | STRING |
| LOW | src/pipx/commands/interpreter.py | 157 | __all__ = [ | CODE |
| LOW | src/pipx/commands/common.py | 614 | __all__ = [ | CODE |
| LOW | src/pipx/commands/ensure_path.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pipx/commands/uninstall.py | 237 | __all__ = [ | CODE |
| LOW | src/pipx/commands/environment.py | 97 | __all__ = [ | CODE |
| LOW | src/pipx/commands/install.py | 880 | __all__ = [ | CODE |
| LOW | src/pipx/commands/outdated.py | 267 | __all__ = [ | CODE |
| LOW | src/pipx/commands/expose.py | 119 | __all__ = [ | CODE |
| LOW | src/pipx/commands/reinstall.py | 234 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 256 | CODE | |
| LOW | tests/helpers.py | 110 | CODE | |
| LOW | scripts/release.py | 48 | CODE | |
| LOW | scripts/list_test_packages.py | 46 | CODE | |
| LOW | scripts/update_package_cache.py | 54 | CODE | |
| LOW | src/pipx/animate.py | 79 | CODE | |
| LOW | src/pipx/venv.py | 203 | CODE | |
| LOW | src/pipx/venv.py | 366 | CODE | |
| LOW | src/pipx/venv.py | 662 | CODE | |
| LOW | src/pipx/pipx_metadata_file.py | 255 | CODE | |
| LOW | src/pipx/standalone_python.py | 99 | CODE | |
| LOW | src/pipx/standalone_python.py | 111 | CODE | |
| LOW | src/pipx/venv_inspect.py | 65 | CODE | |
| LOW | src/pipx/commands/pin.py | 18 | CODE | |
| LOW | src/pipx/commands/list_packages.py | 88 | CODE | |
| LOW | src/pipx/commands/list_packages.py | 109 | CODE | |
| LOW | src/pipx/commands/manifest.py | 36 | CODE | |
| LOW | src/pipx/commands/upgrade.py | 81 | CODE | |
| LOW | src/pipx/commands/interpreter.py | 89 | CODE | |
| LOW | src/pipx/commands/common.py | 342 | CODE | |
| LOW | src/pipx/commands/install.py | 56 | CODE | |
| LOW | src/pipx/commands/install.py | 601 | CODE | |
| LOW | src/pipx/commands/outdated.py | 162 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_shared_libs.py | 40 | # Create a fake venv structure | COMMENT |
| MEDIUM⚡ | tests/test_shared_libs.py | 47 | # Create a pyvenv.cfg pointing to a non-existent Python | COMMENT |
| MEDIUM⚡ | tests/test_shared_libs.py | 57 | # Create a fake venv structure | COMMENT |
| MEDIUM | tests/test_shared_libs.py | 70 | # Create a pyvenv.cfg pointing to the existing Python | COMMENT |
| MEDIUM | src/pipx/interpreter.py | 135 | # The following code was copied from https://github.com/uranusjr/pipx-standalone | COMMENT |
| MEDIUM | src/pipx/main.py | 1829 | "# This file is a cache directory tag created by pipx.\n" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_pipx_metadata_file.py | 160 | .replace('"cooldown_days": null, ', "") | CODE |
| HIGH | scripts/release.py | 33 | repo.git.push(push_target, "HEAD:main") | CODE |
| HIGH | scripts/release.py | 35 | repo.git.push(push_target, str(tag)) | CODE |
| HIGH | src/pipx/constants.py | 105 | autoload -U compinit && compinit | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/pipx/shared_libs.py | 74 | except Exception: | CODE |
| LOW | src/pipx/shared_libs.py | 224 | except Exception: | CODE |
| LOW | src/pipx/main.py | 77 | except Exception: | CODE |
| LOW | src/pipx/main.py | 1543 | except Exception as e: | STRING |
| LOW | src/pipx/main.py | 1905 | except Exception: | CODE |
| MEDIUM | src/pipx/main.py | 70 | def prog_name() -> str: | CODE |
| MEDIUM | src/pipx/main.py | 1738 | def setup_log_file() -> Path: | CODE |
| LOW | src/pipx/commands/run.py | 546 | except Exception as e: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/pipx/util.py | 177 | CODE | |
| LOW | src/pipx/commands/upgrade.py | 185 | CODE | |
| LOW | src/pipx/commands/install.py | 56 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/pipx/util.py | 208 | # Set PYTHONSAFEPATH to prevent adding CWD to sys.path in subprocess Python commands | COMMENT |