Repository Analysis

replicate/cog

Containers for machine learning

4.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of replicate/cog, a Go project with 9,441 GitHub stars. SynthScan v2.0 examined 123,506 lines of code across 521 source files, recording 442 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 4.6 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).

4.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
9.4K
Stars
Go
Language
123.5K
Lines of Code
521
Files
442
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 6MEDIUM 66LOW 370

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 442 distinct pattern matches across 15 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 Identifiers180 hits · 188 pts
SeverityFileLineSnippetContext
LOWcrates/coglet-python/tests/test_coglet.py65 def test_server_active_is_false(self) -> None:CODE
LOWcrates/coglet-python/tests/test_coglet.py69 def test_server_active_is_property(self) -> None:CODE
LOWcrates/coglet-python/tests/test_coglet.py77 def test_server_active_not_settable(self) -> None:CODE
LOWcrates/coglet-python/tests/test_coglet.py84 def test_sdk_submodule_exists(self) -> None:CODE
LOWcrates/coglet-python/tests/test_coglet.py87 def test_sdk_has_slot_log_writer(self) -> None:CODE
LOWcrates/coglet-python/tests/test_coglet.py93 def test_all_excludes_internals(self) -> None:CODE
LOWcrates/coglet-python/tests/test_coglet.py637 def test_async_setup_with_async_predict(self, async_setup_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py644 def test_async_setup_with_sync_predict(CODE
LOWcrates/coglet-python/tests/test_coglet.py653 def test_async_setup_with_weights(CODE
LOWcrates/coglet-python/tests/test_coglet.py663 def test_async_setup_shares_event_loop_with_predict(CODE
LOWcrates/coglet-python/tests/test_coglet.py42 def test_build_info_fields_are_strings(self) -> None:CODE
LOWcrates/coglet-python/tests/test_coglet.py49 def test_build_info_version_matches_module_version(self) -> None:CODE
LOWcrates/coglet-python/tests/test_coglet.py486 def test_returns_ready_status(self, sync_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py491 def test_returns_version_info(self, sync_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py515 def test_includes_predict_time(self, sync_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py535 def test_direct_secret_is_wrapped(self, secret_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py543 def test_optional_secret_with_value_is_wrapped(self, secret_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py563 def test_plain_str_is_not_wrapped(self, secret_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py573 def test_optional_secret_omitted_stays_none(self, secret_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py586 def test_returns_array_output(self, generator_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py623 def test_returns_array_output(self, async_generator_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py789 def test_prediction_response_includes_id(self, sync_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py796 def test_cancel_running_sync_prediction(self, slow_sync_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py820 def test_cancel_running_async_prediction(self, slow_async_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py854 def test_repeated_cancel_is_idempotent(CODE
LOWcrates/coglet-python/tests/test_coglet.py894 def test_cancel_sync_prediction_connection_drop(self, slow_sync_predictor: Path):CODE
LOWcrates/coglet-python/tests/test_coglet.py230def async_generator_predictor(tmp_path: Path) -> Path:STRING
LOWcrates/coglet-python/tests/test_coglet.py284def async_setup_sync_predict_predictor(tmp_path: Path) -> Path:STRING
LOWcrates/coglet-python/tests/test_coglet.py310def async_setup_weights_predictor(tmp_path: Path) -> Path:STRING
LOWcrates/coglet-python/tests/test_coglet.py336def async_setup_event_loop_predictor(tmp_path: Path) -> Path:STRING
LOWpython/tests/test_model.py12 def test_subclass_becomes_dataclass(self) -> None:CODE
LOWpython/tests/test_model.py19 def test_subclass_can_be_instantiated(self) -> None:CODE
LOWpython/tests/test_model.py28 def test_subclass_with_defaults(self) -> None:CODE
LOWpython/tests/test_model.py37 def test_subclass_with_optional(self) -> None:CODE
LOWpython/tests/test_model.py70 def test_auto_dataclass_false(self) -> None:CODE
LOWpython/tests/test_model.py84 def test_primary_base_must_be_basemodel(self) -> None:CODE
LOWpython/tests/test_model.py97 def test_cannot_mixin_dataclass(self) -> None:CODE
LOWpython/tests/test_model.py113 def test_auto_dataclass_inheritance_mismatch(self) -> None:CODE
LOWpython/tests/test_input.py12 def test_input_returns_fieldinfo(self) -> None:CODE
LOWpython/tests/test_input.py21 def test_input_with_numeric_constraints(self) -> None:CODE
LOWpython/tests/test_input.py27 def test_input_with_string_constraints(self) -> None:CODE
LOWpython/tests/test_input.py38 def test_input_with_deprecated(self) -> None:CODE
LOWpython/tests/test_input.py42 def test_input_default_factory_raises_error(self) -> None:CODE
LOWpython/tests/test_input.py46 def test_input_immutable_defaults_stored_directly(self) -> None:CODE
LOWpython/tests/test_input.py73 def test_fieldinfo_none_defaults(self) -> None:CODE
LOWpython/tests/test_errors.py4def test_error_types_remain_importable() -> None:CODE
LOWpython/tests/test_experimental_feature_warning.py19 def test_prints_deprecation_to_stderr(self) -> None:CODE
LOWpython/tests/test_experimental_feature_warning.py41 def test_is_future_warning_subclass(self) -> None:CODE
LOWpython/tests/test_experimental_feature_warning.py54 def test_filterwarnings_compat(self) -> None:CODE
LOWpython/tests/test_predictor.py24def test_base_runner_run_delegates_to_legacy_predict_with_positional_args() -> None:CODE
LOWpython/tests/test_predictor.py34def test_base_runner_run_uses_cached_legacy_predict_owner() -> None:CODE
LOWpython/tests/test_predictor.py44def test_user_method_owner_finds_diamond_inheritance_before_framework_base() -> None:CODE
LOWpython/tests/test_predictor.py11def test_base_runner_run_and_predict_bridge() -> None:CODE
LOWpython/tests/test_predictor.py59def test_user_method_owner_ignores_mixin_after_framework_base() -> None:CODE
LOWpython/tests/test_predictor.py72def test_base_predictor_is_legacy_subclass() -> None:CODE
LOWpython/tests/test_predictor.py76def test_load_predictor_from_ref_defaults_to_runner(tmp_path: FilePath) -> None:CODE
LOWpython/tests/test_predictor.py91def test_load_predictor_from_ref_warns_for_legacy_predictor_class(CODE
LOWpython/tests/test_predictor.py109def test_load_predictor_from_ref_prefers_runner_when_both_default_classes_exist(CODE
LOWpython/tests/test_predictor.py130def test_load_predictor_from_ref_falls_back_to_predictor_when_default_runner_invalid(CODE
LOWpython/tests/test_predictor.py149def test_load_predictor_from_ref_rejects_run_and_predict(CODE
120 more matches not shown…
Decorative Section Separators61 hits · 134 pts
SeverityFileLineSnippetContext
MEDIUMmise.toml1# =============================================================================COMMENT
MEDIUMmise.toml3# =============================================================================COMMENT
MEDIUMmise.toml26# =============================================================================COMMENT
MEDIUMmise.toml72# =============================================================================COMMENT
MEDIUMmise.toml74# =============================================================================COMMENT
MEDIUMmise.toml94# =============================================================================COMMENT
MEDIUMmise.toml96# =============================================================================COMMENT
MEDIUMmise.toml283# =============================================================================STRING
MEDIUMmise.toml285# =============================================================================STRING
MEDIUMmise.toml384# =============================================================================STRING
MEDIUMmise.toml386# =============================================================================STRING
MEDIUMmise.toml450# =============================================================================STRING
MEDIUMmise.toml452# =============================================================================STRING
MEDIUMmise.toml523# =============================================================================STRING
MEDIUMmise.toml525# =============================================================================STRING
MEDIUMmise.toml539# =============================================================================STRING
MEDIUMmise.toml541# =============================================================================STRING
MEDIUMmise.toml621# =============================================================================STRING
MEDIUMmise.toml623# =============================================================================STRING
MEDIUMmise.toml645# =============================================================================STRING
MEDIUMmise.toml647# =============================================================================STRING
MEDIUMmise.toml677# =============================================================================STRING
MEDIUMmise.toml679# =============================================================================STRING
MEDIUMmise.toml785# =============================================================================STRING
MEDIUMmise.toml787# =============================================================================STRING
MEDIUMmise.toml818# =============================================================================STRING
MEDIUMmise.toml820# =============================================================================STRING
MEDIUMmise.toml840# =============================================================================STRING
MEDIUMmise.toml842# =============================================================================STRING
MEDIUMtools/test-harness/manifest.yaml2# =======================COMMENT
MEDIUMtools/test-harness/manifest.yaml45 # ── cog-examples (CPU) ──────────────────────────────────────────────COMMENT
MEDIUMtools/test-harness/manifest.yaml176 # ── cog-examples (GPU) ──────────────────────────────────────────────COMMENT
MEDIUMtools/test-harness/manifest.yaml202 # ── Local fixture models ─────────────────────────────────────────────COMMENT
MEDIUMtools/test-harness/manifest.yaml278 # ── External models (add your own below) ────────────────────────────COMMENT
MEDIUMcrates/coglet-python/tests/test_coglet.py16# =============================================================================COMMENT
MEDIUMcrates/coglet-python/tests/test_coglet.py18# =============================================================================COMMENT
MEDIUMcrates/coglet-python/src/output.rs293 // ── make_encodeable: primitives ──────────────────────────────────COMMENT
MEDIUMcrates/coglet-python/src/output.rs320 // ── make_encodeable: collections ─────────────────────────────────COMMENT
MEDIUMcrates/coglet-python/src/output.rs359 // ── make_encodeable: enum ────────────────────────────────────────COMMENT
MEDIUMcrates/coglet-python/src/output.rs379 // ── make_encodeable: datetime ────────────────────────────────────COMMENT
MEDIUMcrates/coglet-python/src/output.rs388 // ── make_encodeable: dataclass ───────────────────────────────────COMMENT
MEDIUMcrates/coglet-python/src/output.rs420 // ── make_encodeable: generator ───────────────────────────────────COMMENT
MEDIUMcrates/coglet-python/src/output.rs427 // ── make_encodeable: enum value in collection ────────────────────COMMENT
MEDIUMcrates/coglet-python/src/output.rs443 // ── encode_files / file_to_base64 ────────────────────────────────COMMENT
MEDIUMcrates/coglet-python/src/output.rs547 // ── process_output: end-to-end ───────────────────────────────────COMMENT
MEDIUMpython/cog/__init__.py107# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cog/__init__.py118# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/ci.yaml66# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml68# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml127# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml129# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml214# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml216# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml306# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml308# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml413# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml415# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml691# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml693# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml791# =============================================================================COMMENT
1 more matches not shown…
Over-Commented Block131 hits · 130 pts
SeverityFileLineSnippetContext
LOWmise.toml1# =============================================================================COMMENT
LOWCONTRIBUTING.md321git push origin v0.17.0COMMENT
LOWtools/install.sh1#!/bin/shCOMMENT
LOWtools/install.sh21# [1] https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.shCOMMENT
LOWtools/test-harness/manifest.yaml1# Cog Model Test ManifestCOMMENT
LOWtools/test-harness/manifest.yaml21# Example:COMMENT
LOWtools/test-harness/manifest.yaml281 # path: "."COMMENT
LOWtools/test-harness/manifest.yaml301 # - "script/select.sh dev"COMMENT
LOWcrates/coglet-python/src/audit.rs1//! Audit hooks to protect Rust-injected runtime objects.COMMENT
LOWcrates/coglet-python/src/audit.rs201 "Expected _TeeWriter with inner attribute",COMMENT
LOWcrates/coglet-python/src/cancel.rs1//! Cancellation support for predictions.COMMENT
LOWcrates/coglet-python/src/metric_scope.rs181 None => "MetricRecorder(inactive)".to_string(),COMMENT
LOWcrates/coglet-python/src/metric_scope.rs241 /// Returns a `dict[str, str]` (empty dict if no context was provided).COMMENT
LOWcrates/coglet-python/src/metric_scope.rs281/// Maximum number of dot-separated segments in a metric name.COMMENT
LOWcrates/coglet-python/src/metric_scope.rs381 }COMMENT
LOWcrates/coglet-python/src/metric_scope.rs561/// Python-callable: get the current Scope.COMMENT
LOWcrates/coglet-python/src/output.rs1//! Output processing for prediction results.COMMENT
LOWcrates/coglet-python/src/log_writer.rs1//! Log routing via prediction_id ContextVar.COMMENT
LOWcrates/coglet-python/src/log_writer.rs101// is in an unrecoverable state. We cannot safely continue because:COMMENT
LOWcrates/coglet-python/src/log_writer.rs241 Err(e) if e.is_instance_of::<pyo3::exceptions::PyLookupError>(py) => {COMMENT
LOWcrates/coglet-python/src/log_writer.rs261///COMMENT
LOWcrates/coglet-python/src/log_writer.rs281impl SlotLogWriter {COMMENT
LOWcrates/coglet-python/src/worker_bridge.rs81COMMENT
LOWcrates/coglet-python/src/sentry_integration.rs1//! Sentry error reporting integration.COMMENT
LOWcrates/coglet-python/src/input.rs1//! Input processing for cog predictors.COMMENT
LOWcrates/coglet-python/src/input.rs61COMMENT
LOWcrates/coglet-python/src/input.rs101 file_fields: HashSet<String>,COMMENT
LOWcrates/coglet-python/src/input.rs261/// Coerce input dict values to the appropriate cog types.COMMENT
LOWcrates/coglet-python/src/bin/stub_gen.rs1//! Generate Python stub files for coglet.COMMENT
LOWcrates/coglet/src/health.rs1//! Health status types for coglet runtime.COMMENT
LOWcrates/coglet/src/input_validation.rs21COMMENT
LOWcrates/coglet/src/input_validation.rs41 /// `pkg/schema/openapi.go` (`buildInputSchema`), which emits `nullable`,COMMENT
LOWcrates/coglet/src/version.rs1//! Version information for coglet.COMMENT
LOWcrates/coglet/src/webhook.rs1//! Webhook sender for async predictions.COMMENT
LOWcrates/coglet/src/service.rs1//! PredictionService: Transport-agnostic prediction lifecycle management.COMMENT
LOWcrates/coglet/src/fd_redirect.rs1//! File descriptor redirection for subprocess isolation.COMMENT
LOWcrates/coglet/src/bridge/protocol.rs281 /// Output exceeds size threshold for bridge codec serialization but is not a file-like return typeCOMMENT
LOWcrates/coglet/src/bridge/mod.rs1//! IPC bridge for coglet parent-worker communication.COMMENT
LOWcrates/coglet/src/permit/slot.rs1//! PredictionSlot - holds Prediction and Permit side-by-side.COMMENT
LOWpython/cog/__init__.py101 raise TypeError(COMMENT
LOWintegration-tests/harness/cmd_pty.go21func (c *PtyRunCommand) Name() string { return "pty-run" }COMMENT
LOWintegration-tests/login/login_test.go1//go:build integrationCOMMENT
LOWexamples/managed-weights/cog.yaml1# Test fixture for the v1 managed-weights OCI pipeline.COMMENT
LOWexamples/hello-context/requirements.txt1# This is a normal Python requirements.txt file.COMMENT
LOWexamples/hello-context/requirements.txt21# You can also pin Git repos to a specific commit:COMMENT
LOWexamples/hello-context/cog.yaml21COMMENT
LOWexamples/hello-replicate/requirements.txt1# This is a normal Python requirements.txt file.COMMENT
LOWexamples/hello-replicate/requirements.txt21COMMENT
LOWexamples/hello-replicate/cog.yaml21COMMENT
LOW.github/workflows/ci.yaml21 # Default Python version for non-matrix jobsCOMMENT
LOW.github/workflows/ci.yaml41 # mise-action caches ~/.local/share/mise but NOT external tool state:COMMENT
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/release-publish.yaml1---COMMENT
LOW.github/workflows/release-build.yaml1---COMMENT
LOWpkg/docker/command/command.go61 ExcludePatterns []stringCOMMENT
LOWpkg/config/build_options.go1package configCOMMENT
LOWpkg/dockerfile/standard_generator.go481// It is idempotent — subsequent calls are no-ops. Must be called beforeCOMMENT
LOWpkg/dockerfile/cacert.go21 CACertContainerPath = "/usr/local/share/ca-certificates/" + CACertFilenameCOMMENT
LOWpkg/weights/pull.go81// - Files already present locally are skipped (no registry I/O).COMMENT
LOWpkg/weights/lockfile/lockfile.go21COMMENT
71 more matches not shown…
Cross-File Repetition5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHREADME.md0load the model into memory to make running multiple inferences efficientSTRING
HIGHdocs/llms.txt0load the model into memory to make running multiple inferences efficientSTRING
HIGHdocs/getting-started-own-model.md0load the model into memory to make running multiple inferences efficientSTRING
HIGHdocs/python.md0load the model into memory to make running multiple inferences efficientSTRING
HIGHdocs/getting-started.md0load the model into memory to make running multiple inferences efficientSTRING
Unused Imports20 hits · 20 pts
SeverityFileLineSnippetContext
LOWcrates/coglet-python/coglet/__init__.py3CODE
LOWcrates/coglet-python/coglet/__init__.py3CODE
LOWcrates/coglet-python/coglet/__init__.py3CODE
LOWcrates/coglet-python/coglet/__init__.py3CODE
LOWcrates/coglet-python/coglet/__init__.py4CODE
LOWpython/cog/__init__.py27CODE
LOWpython/cog/__init__.py29CODE
LOWpython/cog/__init__.py30CODE
LOWpython/cog/__init__.py31CODE
LOWpython/cog/__init__.py31CODE
LOWpython/cog/__init__.py32CODE
LOWpython/cog/__init__.py33CODE
LOWpython/cog/__init__.py33CODE
LOWpython/cog/__init__.py34CODE
LOWpython/cog/__init__.py34CODE
LOWpython/cog/__init__.py34CODE
LOWpython/cog/__init__.py34CODE
LOWpython/cog/__init__.py34CODE
LOWpython/cog/__init__.py34CODE
LOWpython/cog/__init__.py34CODE
Verbosity Indicators8 hits · 14 pts
SeverityFileLineSnippetContext
LOWpkg/doctor/check_python_deprecated_imports.go133 // Step 1: Walk the AST to find which deprecated names are present in this file.COMMENT
LOWpkg/doctor/check_python_deprecated_imports.go164 // Step 2: Remove deprecated names from their import statements via AST.COMMENT
LOWpkg/doctor/check_python_deprecated_imports.go187 // Step 3: Re-parse and use tree-sitter to find statements referencingCOMMENT
LOWpkg/doctor/check_python_deprecated_imports.go211 // Step 4: Remove orphaned "import X" statements via AST.COMMENT
LOWpkg/model/weight_builder.go191 // Step 1: resolve inventory (reuse cached if available).COMMENT
LOWpkg/model/weight_builder.go202 // Step 2: ingress the filtered files into the local store.COMMENT
LOWpkg/model/weight_builder.go207 // Step 3: decide fast-path vs recompute.COMMENT
LOWpkg/model/weight_builder.go277 // Step 5: stamp envelope + rewrite iff anything changed.COMMENT
Structural Annotation Overuse8 hits · 14 pts
SeverityFileLineSnippetContext
LOWpkg/doctor/check_python_deprecated_imports.go133 // Step 1: Walk the AST to find which deprecated names are present in this file.COMMENT
LOWpkg/doctor/check_python_deprecated_imports.go164 // Step 2: Remove deprecated names from their import statements via AST.COMMENT
LOWpkg/doctor/check_python_deprecated_imports.go187 // Step 3: Re-parse and use tree-sitter to find statements referencingCOMMENT
LOWpkg/doctor/check_python_deprecated_imports.go211 // Step 4: Remove orphaned "import X" statements via AST.COMMENT
LOWpkg/model/weight_builder.go191 // Step 1: resolve inventory (reuse cached if available).COMMENT
LOWpkg/model/weight_builder.go202 // Step 2: ingress the filtered files into the local store.COMMENT
LOWpkg/model/weight_builder.go207 // Step 3: decide fast-path vs recompute.COMMENT
LOWpkg/model/weight_builder.go277 // Step 5: stamp envelope + rewrite iff anything changed.COMMENT
Deep Nesting12 hits · 12 pts
SeverityFileLineSnippetContext
LOWpython/cog/predictor.py191CODE
LOWpython/cog/_inspector.py136CODE
LOWpython/cog/_inspector.py348CODE
LOWpython/cog/_inspector.py550CODE
LOWpython/cog/_adt.py166CODE
LOWpython/cog/_adt.py231CODE
LOWpython/cog/_adt.py350CODE
LOWpython/cog/_adt.py508CODE
LOWpython/cog/_adt.py574CODE
LOWpython/cog/_adt.py632CODE
LOWpython/cog/_adt.py705CODE
LOWpython/cog/model.py39CODE
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml142 "S603", # subprocess call — harness invokes cog/docker/git by designCODE
MEDIUMtools/test-harness/manifest.yaml27# setup commands to work. The harness checks before running and printsCOMMENT
MEDIUMpkg/schema/python/annotations.go254 // tree is robust to whitespace variations like "async def".COMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWtools/install.sh67 # Check if sudo is installedCOMMENT
LOWtools/install.sh170 # Check if macOSCOMMENT
LOWtools/install.sh185 # Check if `cog` command already existsCOMMENT
LOWpython/cog/_inspector.py515 # Check if module is partially loaded (common with import errors)COMMENT
Self-Referential Comments2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMcrates/coglet-python/tests/test_coglet.py346 # Create an event-loop-bound resource (Queue is bound to the running loop)COMMENT
MEDIUMcrates/coglet-python/src/bin/stub_gen.rs55 writeln!(f, "# This file is automatically generated by stub_gen")?;CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpython/cog/predictor.py64 Run the model once. Override this method to implement your model's prediction logic. Input parSTRING
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcrates/coglet-python/tests/test_coglet.py416 except Exception:CODE
LOWpython/tests/test_types.py51 except Exception:CODE
LOWpython/cog/_inspector.py439 except Exception:CODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcrates/coglet-python/coglet/__init__.py6__all__ = ["__version__", "__build__", "server", "CancelationException"]CODE
LOWpython/cog/__init__.py179__all__ = [CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpython/cog/input.py33CODE
LOWexamples/notebook/run.py14CODE