Repository Analysis

astral-sh/uv

An extremely fast Python package and project manager, written in Rust.

2.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of astral-sh/uv, a Rust project with 87,438 GitHub stars. SynthScan v2.0 examined 514,557 lines of code across 1280 source files, recording 1286 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 2.4 places this repository in the Likely human-written 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).

2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
87.4K
Stars
Rust
Language
514.6K
Lines of Code
1.3K
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.01
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 6HIGH 3MEDIUM 38LOW 1239

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 1286 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.

Over-Commented Block1120 hits · 908 pts
SeverityFileLineSnippetContext
LOWCargo.toml401# configuration and our benchmarking configuration, which is unfortunate.COMMENT
LOWcrates/uv-auth/src/index.rs21#[serde(rename_all = "kebab-case")]COMMENT
LOWcrates/uv-auth/src/store.rs61 /// HTTP Basic AuthenticationCOMMENT
LOWcrates/uv-auth/src/middleware.rs321 selfCOMMENT
LOWcrates/uv-auth/src/middleware.rs341 /// ## If the request only has a usernameCOMMENT
LOWcrates/uv-auth/src/realm.rs1use std::hash::{Hash, Hasher};COMMENT
LOWcrates/uv-keyring/tests/common/mod.rs1#![allow(dead_code)] // not all of these utilities are used by all testsCOMMENT
LOWcrates/uv-keyring/src/secret_service.rs101 target: Option<String>,COMMENT
LOWcrates/uv-keyring/src/secret_service.rs161COMMENT
LOWcrates/uv-keyring/src/secret_service.rs361 for item in &search.locked {COMMENT
LOWcrates/uv-keyring/src/error.rs21/// without a `SemVer` break. Clients should always have default handlingCOMMENT
LOWcrates/uv-keyring/src/error.rs41 NoEntry,COMMENT
LOWcrates/uv-keyring/src/lib.rs201 /// The specific reasons for invalidity are platform-dependent, but include length constraints.COMMENT
LOWcrates/uv-keyring/src/lib.rs221COMMENT
LOWcrates/uv-keyring/src/lib.rs241 /// Can return an [`Ambiguous`](Error::Ambiguous) errorCOMMENT
LOWcrates/uv-keyring/src/lib.rs261 }COMMENT
LOWcrates/uv-keyring/src/lib.rs281 ///COMMENT
LOWcrates/uv-keyring/src/lib.rs301 ///COMMENT
LOWcrates/uv-keyring/src/lib.rs321 /// on some platforms, and then only if a third-partyCOMMENT
LOWcrates/uv-keyring/src/credential.rs41 ///COMMENT
LOWcrates/uv-keyring/src/credential.rs61 }COMMENT
LOWcrates/uv-keyring/src/credential.rs81 /// Delete the underlying credential, if there is one.COMMENT
LOWcrates/uv-keyring/src/windows.rs61/// See the module header for the meanings of these fields.COMMENT
LOWcrates/uv-keyring/src/windows.rs101 /// The new credential replaces any existing one in the store.COMMENT
LOWcrates/uv-requirements/src/lookahead.rs21/// The lookahead resolver resolves requirements recursively for direct URLs, so that the resolverCOMMENT
LOWcrates/uv-requirements/src/specification.rs1//! Collecting the requirements to compile, sync or install.COMMENT
LOWcrates/uv-platform-tags/src/tags.rs101 /// `python_tag` |--> `abi_tag` |--> `platform_tag` |--> priorityCOMMENT
LOWcrates/uv-platform/src/arch.rs21 pub(crate) variant: Option<ArchVariant>,COMMENT
LOWcrates/uv-platform/src/lib.rs221 .cmp(&other.os.to_string())COMMENT
LOWcrates/uv-platform/src/cpuinfo.rs21 }COMMENT
LOWcrates/uv-scripts/src/lib.rs461 /// Given the following input string representing the contents of a Python script:COMMENT
LOWcrates/uv-scripts/src/lib.rs541 // ```pythonCOMMENT
LOWcrates/uv-distribution/src/distribution_database.rs41use crate::{Error, LocalWheel, Reporter, RequiresDist};COMMENT
LOWcrates/uv-distribution/src/distribution_database.rs561 /// instead be enforced by the caller.COMMENT
LOWcrates/uv-distribution/src/index/built_wheel_index.rs281 wheel,COMMENT
LOWcrates/uv-distribution/src/metadata/lowering.rs281 )COMMENT
LOW…ates/uv-distribution/src/metadata/dependency_groups.rs21///COMMENT
LOWcrates/uv-distribution/src/metadata/requires_dist.rs301 requires_dist: metadata.requires_dist,COMMENT
LOWcrates/uv-distribution/src/metadata/requires_dist.rs321/// all = [COMMENT
LOWcrates/uv-distribution/src/metadata/requires_dist.rs341/// Or:COMMENT
LOWcrates/uv-pep508/src/verbatim_url.rs21/// A wrapper around [`Url`] that preserves the original string.COMMENT
LOWcrates/uv-pep508/src/verbatim_url.rs481COMMENT
LOWcrates/uv-pep508/src/lib.rs1//! A library for [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/)COMMENT
LOWcrates/uv-pep508/src/lib.rs61/// Error with a span attached. Not that those aren't `String` but `Vec<char>` indices.COMMENT
LOWcrates/uv-pep508/src/lib.rs121/// We need this to allow anyhow's `.context()` and `AsDynError`.COMMENT
LOWcrates/uv-pep508/src/lib.rs701///COMMENT
LOWcrates/uv-pep508/src/lib.rs901COMMENT
LOWcrates/uv-pep508/src/unnamed.rs61 }COMMENT
LOWcrates/uv-pep508/src/unnamed.rs341/// - A semicolon (marker) or hash (comment), _preceded_ by a space. We parse the URL until the lastCOMMENT
LOWcrates/uv-pep508/src/marker/lowering.rs41/// Critically, any variants that could be involved in a known-incompatible marker pair shouldCOMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs1//! This module implements marker tree operations using Algebraic Decision Diagrams (ADD).COMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs21//! Specifically, a marker tree is represented as a Reduced Ordered ADD. An ADD is ordered ifCOMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs641 self.create_node(value_node.var.clone(), children)COMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs861 // subtle, but since 1) edges is a disjoint covering of theCOMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs1161///COMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs1181 /// string marker and value.COMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs1301 // The edges of a version variable, representing a disjoint set of ranges that coverCOMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs1461 }COMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs1521 /// ```COMMENT
LOWcrates/uv-pep508/src/marker/algebra.rs1701 },COMMENT
1060 more matches not shown…
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALcrates/uv-client/src/httpcache/mod.rs685 if self.response.headers.cc.max_age_seconds.is_some() {CODE
CRITICALcrates/uv-client/src/httpcache/mod.rs694 if self.config.shared && self.response.headers.cc.s_maxage_seconds.is_some() {CODE
CRITICALcrates/uv-client/src/httpcache/mod.rs731 || self.response.headers.cc.s_maxage_seconds.is_some()CODE
CRITICALcrates/uv-client/src/httpcache/mod.rs860 if let Some(&max_stale) = self.request.headers.cc.max_stale_seconds.as_ref() {CODE
CRITICALcrates/uv-client/src/httpcache/mod.rs930 if let Some(&s_maxage) = self.response.headers.cc.s_maxage_seconds.as_ref() {CODE
CRITICALcrates/uv-client/src/httpcache/mod.rs939 if let Some(&max_age) = self.response.headers.cc.max_age_seconds.as_ref() {CODE
Self-Referential Comments16 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMcrates/uv-python/python/packaging/__init__.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMtest/requirements/transformers/pyproject.toml1# This file is a translation ofCOMMENT
MEDIUMscripts/uv-run-remote-script-test.py1# This file is used to test `uv run <url>` in ../crates/uv/tests/run.rsCOMMENT
MEDIUMscripts/update_schemastore.py34 # Create a new branch tagged with the current uv commit up to date with the latestCOMMENT
MEDIUMscripts/check_embedded_python.py23 # Create a temporary directory.COMMENT
MEDIUMscripts/check_embedded_python.py25 # Create a virtual environment with `uv`.COMMENT
MEDIUMscripts/check_cache_compat.py122 # Create a temporary directory.COMMENT
MEDIUMscripts/check_system_python.py134 # Create a temporary directory.COMMENT
MEDIUMscripts/check_system_python.py189 # Create a virtual environment with `uv`.COMMENT
MEDIUMscripts/benchmark/src/benchmark/resolver.py356 # Create a Poetry project.COMMENT
MEDIUMscripts/benchmark/src/benchmark/resolver.py640 # Create a PDM project.COMMENT
MEDIUMscripts/benchmark/src/benchmark/resolver.py1037 # Create a Poetry project.COMMENT
MEDIUMscripts/smoke-test/commands.sh10# Create a virtual environment and install a package with `uv pip`COMMENT
MEDIUM.github/workflows/release.yml308 # Create a GitHub Release while uploading all files to itCOMMENT
MEDIUM.github/workflows/release.yml334 # Create a GitHub Release while uploading all files to itCOMMENT
MEDIUM.github/workflows/build-docker.yml288 # Initialize a variable to store all tag docker metadata patternsCOMMENT
Unused Imports43 hits · 43 pts
SeverityFileLineSnippetContext
LOWcrates/uv-build/python/uv_build/__init__.py21CODE
LOWcrates/uv-build/python/uv_build/__init__.py21CODE
LOWcrates/uv-build/python/uv_build/__init__.py22CODE
LOWcrates/uv-virtualenv/src/activator/activate_this.py31CODE
LOWcrates/uv-python/python/get_interpreter_info.py666CODE
LOWcrates/uv-python/python/packaging/_manylinux.py8CODE
LOW…ed/excluded/bird-feeder/check_installed_bird_feeder.py1CODE
LOW…ed/excluded/bird-feeder/check_installed_bird_feeder.py4CODE
LOW…luded/excluded/bird-feeder/src/bird_feeder/__init__.py1CODE
LOW…oject-in-excluded/packages/seeds/src/seeds/__init__.py1CODE
LOW…lbatross-project-in-excluded/src/albatross/__init__.py1CODE
LOW…ce/packages/bird-feeder/check_installed_bird_feeder.py1CODE
LOW…ce/packages/bird-feeder/check_installed_bird_feeder.py4CODE
LOW…space/packages/bird-feeder/src/bird_feeder/__init__.py1CODE
LOW…ss-root-workspace/packages/seeds/src/seeds/__init__.py1CODE
LOW…ces/albatross-root-workspace/src/albatross/__init__.py1CODE
LOW…ce/packages/bird-feeder/check_installed_bird_feeder.py1CODE
LOW…ce/packages/bird-feeder/check_installed_bird_feeder.py4CODE
LOW…space/packages/bird-feeder/src/bird_feeder/__init__.py1CODE
LOW…virtual-workspace/packages/seeds/src/seeds/__init__.py1CODE
LOW…workspace/packages/albatross/src/albatross/__init__.py1CODE
LOW…aces/albatross-in-example/check_installed_albatross.py4CODE
LOW…le/examples/bird-feeder/check_installed_bird_feeder.py1CODE
LOW…le/examples/bird-feeder/check_installed_bird_feeder.py4CODE
LOW…ample/examples/bird-feeder/src/bird_feeder/__init__.py1CODE
LOW…kspaces/albatross-in-example/src/albatross/__init__.py1CODE
LOW…deptry_reproducer/python/deptry_reproducer/__init__.py1CODE
LOW…ges/built-by-uv/src/built_by_uv/arithmetic/__init__.py1CODE
LOWpython/uv/_find_uv.py1CODE
LOWpython/uv/__init__.py1CODE
LOWpython/uv/__init__.py3CODE
LOWscripts/publish-crates.py12CODE
LOWscripts/update_schemastore.py8CODE
LOWscripts/sync-python-version-constants.py19CODE
LOWscripts/check_cache_compat.py7CODE
LOWscripts/vendor-packaging.py16CODE
LOWscripts/check_system_python.py126CODE
LOWscripts/generate-known-stdlib.py8CODE
LOWscripts/transform_readme.py8CODE
LOWscripts/update-latest-changelog-section.py7CODE
LOWscripts/patch-dist-manifest-checksums.py10CODE
LOWscripts/check-trampoline-version-consistency.py12CODE
LOWscripts/setup-crates-io-publish.py25CODE
Decorative Section Separators9 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMcrates/uv-types/src/traits.rs68/// ┌────────────────┐COMMENT
MEDIUMcrates/uv-types/src/traits.rs70/// └───────▲────────┘COMMENT
MEDIUMcrates/uv-types/src/traits.rs73/// ┌───────┴────────┐COMMENT
MEDIUMcrates/uv-types/src/traits.rs74/// ┌─────────►│ uv-dispatch │◄─────────┐COMMENT
MEDIUMcrates/uv-types/src/traits.rs75/// │ └───────▲────────┘ │COMMENT
MEDIUMcrates/uv-types/src/traits.rs78/// ┌───────┴────────┐ ┌───────┴────────┐ ┌────────┴────────────────┐COMMENT
MEDIUMcrates/uv-types/src/traits.rs80/// └───────▲────────┘ └───────▲────────┘ └────────▲────────────────┘COMMENT
MEDIUMcrates/uv-types/src/traits.rs82/// └─────────────┐ │ ┌──────────────┘COMMENT
MEDIUMcrates/uv-types/src/traits.rs85/// └────────────────┘COMMENT
AI Slop Vocabulary11 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMcrates/uv-distribution-types/src/any.rs75/// Like [`InstalledVersion`], but with [`CanonicalUrl`] to ensure robust URL comparisons.COMMENT
MEDIUMcrates/uv-client/src/httpcache/mod.rs254 /// whether a new request can utilize a cached response or not. This isCOMMENT
MEDIUMcrates/uv-extract/src/stream.rs520 // that leverage this feature anyway.COMMENT
MEDIUMcrates/uv-windows/src/exception.rs37/// halfway through a Rust operation. It needs to be robust to operating with unknown programCOMMENT
MEDIUMcrates/uv/tests/project/init.rs1937 // robust to errors in discovery.COMMENT
MEDIUMcrates/uv-trampoline/src/bounce.rs198/// PEP 405 specifies a more robust procedure (checking both the parent and grandparentCOMMENT
MEDIUMcrates/uv-trampoline/src/bounce.rs434 // See also <https://github.com/astral-sh/uv/pull/18170> which explores a more robust solutionCOMMENT
MEDIUMcrates/uv-build-frontend/src/lib.rs762 // allow us to leverage the hook in _most_ cases while still avoiding incorrect metadata forCOMMENT
MEDIUMcrates/uv-python/src/environment.rs326 // should be generally robust.COMMENT
MEDIUMcrates/uv-python/src/interpreter.rs156 /// This routine mimics the CPython `getpath.py` logic in order to make a more robust assessmentCOMMENT
LOWpython/uv/__main__.py12 # If it's already set, then just use itCOMMENT
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHdist-workspace.toml57# Whether CI should include auto-generated code to build local artifactsCOMMENT
HIGHcrates/uv-types/src/requirements.rs33/// A set of requirements as requested by a parent requirement.COMMENT
HIGHcrates/uv-resolver/src/error.rs583 /// negative terms) are shown as requested.COMMENT
Hyper-Verbose Identifiers20 hits · 22 pts
SeverityFileLineSnippetContext
LOWcrates/uv-build/python/uv_build/__init__.py92def get_requires_for_build_sdist(CODE
LOWcrates/uv-build/python/uv_build/__init__.py100def get_requires_for_build_wheel(CODE
LOWcrates/uv-build/python/uv_build/__init__.py108def prepare_metadata_for_build_wheel(CODE
LOWcrates/uv-build/python/uv_build/__init__.py128def get_requires_for_build_editable(CODE
LOWcrates/uv-build/python/uv_build/__init__.py136def prepare_metadata_for_build_editable(CODE
LOWcrates/uv/tests/sync/sync.rs6457 def prepare_metadata_for_build_editable(metadata_directory, config_settings=None):CODE
LOWcrates/uv-python/python/get_interpreter_info.py110def _running_under_legacy_virtualenv() -> bool:CODE
LOWcrates/uv-python/python/get_interpreter_info.py283 def _should_use_osx_framework_prefix() -> bool:CODE
LOWcrates/uv-python/python/get_interpreter_info.py420def get_operating_system_and_architecture():CODE
LOWcrates/uv-python/python/packaging/_manylinux.py83def _glibc_version_string_confstr() -> "str | None":CODE
LOWcrates/uv-python/python/packaging/_manylinux.py102def _glibc_version_string_ctypes() -> "str | None":CODE
LOWscripts/publish-crates.py110def build_cargo_publish_command(CODE
LOWscripts/create-python-mirror.py65def collect_metadata_from_git_history() -> List[Dict]:CODE
LOWscripts/check-trampoline-version-consistency.py21def get_locked_windows_version(lockfile_path: Path) -> str | None:CODE
LOWscripts/setup-crates-io-publish.py114def load_workspace_package_metadata() -> dict[str, object]:CODE
LOWscripts/setup-crates-io-publish.py123def publish_placeholder_crate(CODE
LOWscripts/setup-crates-io-publish.py248def handle_trusted_publisher_error(exc: httpx.HTTPStatusError) -> None:CODE
LOWscripts/publish/test_publish.py287def check_index_for_provenance(CODE
LOWscripts/publish/test_publish.py562def test_reupload_with_check_url(CODE
LOWscripts/publish/test_publish.py630def test_reupload_modified_files(CODE
Verbosity Indicators12 hits · 20 pts
SeverityFileLineSnippetContext
LOWcrates/uv-publish/src/lib.rs752 // Step 1: Reserve an upload slot.COMMENT
LOWcrates/uv-publish/src/lib.rs807 // Step 2: Upload the file directly to S3 (if needed).COMMENT
LOWcrates/uv-publish/src/lib.rs911 // Step 3: Finalize the upload.COMMENT
LOWcrates/uv/tests/pip_install/pip_install.rs15884 // Step 1: Install as editable first.COMMENT
LOWcrates/uv/tests/pip_install/pip_install.rs15900 // Step 2: Use `--no-sources`; we should retain the package.COMMENT
LOWcrates/uv/tests/sync/sync.rs16983 // Step 1: `uv sync --no-sources` should install `anyio` from PyPI.COMMENT
LOWcrates/uv/tests/sync/sync.rs16999 // Step 2: `uv sync` should switch to an editable installation.COMMENT
LOWcrates/uv/tests/sync/sync.rs17016 // Step 3: `uv sync --no-sources` again should switch back to PyPI package.COMMENT
LOWcrates/uv/src/commands/pip/tree.rs238 // Step 1: Add each installed package.COMMENT
LOWcrates/uv/src/commands/pip/tree.rs252 // Step 2: Add all dependencies.COMMENT
LOWcrates/uv/src/commands/pip/tree.rs286 // Step 2: Reverse the graph.COMMENT
LOWcrates/uv/src/commands/pip/tree.rs291 // Step 3: Filter the graph to those nodes reachable from the target packages.COMMENT
Structural Annotation Overuse9 hits · 15 pts
SeverityFileLineSnippetContext
LOWcrates/uv-publish/src/lib.rs752 // Step 1: Reserve an upload slot.COMMENT
LOWcrates/uv-publish/src/lib.rs807 // Step 2: Upload the file directly to S3 (if needed).COMMENT
LOWcrates/uv-publish/src/lib.rs911 // Step 3: Finalize the upload.COMMENT
LOWcrates/uv/tests/pip_install/pip_install.rs15884 // Step 1: Install as editable first.COMMENT
LOWcrates/uv/tests/pip_install/pip_install.rs15900 // Step 2: Use `--no-sources`; we should retain the package.COMMENT
LOWcrates/uv/src/commands/pip/tree.rs238 // Step 1: Add each installed package.COMMENT
LOWcrates/uv/src/commands/pip/tree.rs252 // Step 2: Add all dependencies.COMMENT
LOWcrates/uv/src/commands/pip/tree.rs286 // Step 2: Reverse the graph.COMMENT
LOWcrates/uv/src/commands/pip/tree.rs291 // Step 3: Filter the graph to those nodes reachable from the target packages.COMMENT
Example Usage Blocks8 hits · 12 pts
SeverityFileLineSnippetContext
LOWscripts/publish-crates.py8# Usage:COMMENT
LOWscripts/install-cargo-extensions.sh8## Usage:COMMENT
LOWscripts/check-release-artifact-sboms.sh7## Usage:COMMENT
LOWscripts/codesign-macos.sh5# Usage:COMMENT
LOWscripts/nextest-setup-hook-unix.sh7# Usage:COMMENT
LOWscripts/apply-ci-snapshots.sh4# Usage:COMMENT
LOWscripts/cargo.sh6## Usage:COMMENT
LOWscripts/setup-crates-io-publish.py16# Usage:COMMENT
Deep Nesting11 hits · 11 pts
SeverityFileLineSnippetContext
LOWcrates/uv-virtualenv/src/_virtualenv.py51CODE
LOWcrates/uv-python/fetch-download-metadata.py218CODE
LOWcrates/uv-python/fetch-download-metadata.py572CODE
LOWcrates/uv-python/fetch-download-metadata.py682CODE
LOWcrates/uv-python/python/get_interpreter_info.py420CODE
LOWcrates/uv-python/python/packaging/_manylinux.py214CODE
LOWagents/hooks/post-edit-format.py49CODE
LOWscripts/registries-test.py69CODE
LOWscripts/registries-test.py170CODE
LOWscripts/setup-crates-io-publish.py276CODE
LOWscripts/publish/test_publish.py717CODE
Excessive Try-Catch Wrapping7 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMcrates/uv/tests/project/run.rs4498 print(f"Error: Expected pythonw.exe but got: {executable}", file=sys.stderr)CODE
LOWscripts/registries-test.py257 except Exception as e:CODE
LOWscripts/registries-test.py339 except Exception as e:CODE
MEDIUMscripts/repair-sdist-cargo-lock.py26 print(f"Error: {sdist_path} is not a valid tar file", file=sys.stderr)CODE
LOWscripts/create-python-mirror.py87 except Exception as e:CODE
LOWscripts/create-python-mirror.py183 except Exception as e:CODE
LOWscripts/create-python-mirror.py287 except Exception as e:CODE
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…ges/built-by-uv/src/built_by_uv/arithmetic/__init__.py3__all__ = ["circle_area"]CODE
LOWpython/uv/__init__.py5__all__ = ["find_uv_bin"]CODE
LOWscripts/update_schemastore.py21def update_schemastore(schemastore: Path, *, root: Path) -> None:CODE
LOWscripts/create-python-mirror.py42logger = logging.getLogger(__name__)CODE
LOWscripts/setup-crates-io-publish.py229def set_trustpub_only(client: httpx.Client, crate_name: str, enabled: bool) -> None:CODE
Redundant / Tautological Comments4 hits · 5 pts
SeverityFileLineSnippetContext
LOWscripts/update_schemastore.py70 # Check if the schema has changedCOMMENT
LOWscripts/nextest-setup-hook-unix.sh18# Set UV_TEST_CODESIGN_IDENTITY to enable signing. See `scripts/codesign-macos.sh`.COMMENT
LOWscripts/apply-ci-snapshots.sh83# Check if any artifacts were downloadedCOMMENT
LOWscripts/generate-crate-readmes.py123 # Check if README already existsSTRING
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcrates/uv-cache/src/lib.rs401 /// Populate the cache scaffold.COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcrates/uv/tests/project/edit.rs11272 packages.child("placeholder").touch()?;CODE