Repository Analysis

replicate/cog

Containers for machine learning

4.2 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of replicate/cog, a Go project with 9,464 GitHub stars. SynthScan v2.0 examined 143,269 lines of code across 596 source files, recording 467 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 4.2 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.2
Adjusted Score
4.2
Raw Score
100%
Time Factor
2026-08-26
Last Push
9.5K
Stars
Go
Language
143.3K
Lines of Code
596
Files
467
Pattern Hits
2026-08-29
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 0HIGH 7MEDIUM 68LOW 392

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 467 distinct pattern matches across 16 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 Identifiers194 hits · 198 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
LOWplayground/src/components/dom.ts122export function replaceChildrenPreservingFocus(root: HTMLElement, ...children: Node[]): void {CODE
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_trace.py21def test_trace_provider_installs_before_model_import() -> None:CODE
LOWpython/tests/test_trace.py41def test_ratio_sampler_without_arg_defaults_to_one() -> None:STRING
LOWpython/tests/test_trace.py55def test_http_trace_endpoint_appends_signal_path_once() -> None:STRING
LOWpython/tests/test_trace.py67def test_invalid_default_trace_config_disables_tracing() -> None:STRING
LOWpython/tests/test_trace.py86def test_trace_provider_rejects_collision() -> None:STRING
LOWpython/tests/test_trace.py109def test_disabled_builtin_exporter_allows_existing_provider() -> None:STRING
LOWpython/tests/test_trace.py129def test_custom_trace_provider_and_instrumentation(tmp_path: Path) -> None:STRING
LOWpython/tests/test_trace.py151def configure_instrumentation():CODE
LOWpython/tests/test_trace.py175def test_custom_trace_provider_errors(tmp_path: Path) -> None:STRING
LOWpython/tests/test_trace.py191 "def configure_instrumentation():\n raise RuntimeError('instrumentation failed')\n",STRING
134 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.toml325# =============================================================================STRING
MEDIUMmise.toml327# =============================================================================STRING
MEDIUMmise.toml433# =============================================================================STRING
MEDIUMmise.toml435# =============================================================================STRING
MEDIUMmise.toml513# =============================================================================STRING
MEDIUMmise.toml515# =============================================================================STRING
MEDIUMmise.toml600# =============================================================================STRING
MEDIUMmise.toml602# =============================================================================STRING
MEDIUMmise.toml626# =============================================================================STRING
MEDIUMmise.toml628# =============================================================================STRING
MEDIUMmise.toml708# =============================================================================STRING
MEDIUMmise.toml710# =============================================================================STRING
MEDIUMmise.toml732# =============================================================================STRING
MEDIUMmise.toml734# =============================================================================STRING
MEDIUMmise.toml764# =============================================================================STRING
MEDIUMmise.toml766# =============================================================================STRING
MEDIUMmise.toml872# =============================================================================STRING
MEDIUMmise.toml874# =============================================================================STRING
MEDIUMmise.toml905# =============================================================================STRING
MEDIUMmise.toml907# =============================================================================STRING
MEDIUMmise.toml927# =============================================================================STRING
MEDIUMmise.toml929# =============================================================================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.yaml92# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml94# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml153# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml155# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml265# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml267# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml357# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml359# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml464# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml466# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml742# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml744# =============================================================================COMMENT
MEDIUM.github/workflows/ci.yaml848# =============================================================================COMMENT
1 more matches not shown…
Over-Commented Block135 hits · 134 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/lib.rs241// =============================================================================COMMENT
LOWcrates/coglet-python/src/predictor.rs661 ///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/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.rs221 #[serde(skip_serializing_if = "Option::is_none")]COMMENT
LOWcrates/coglet/src/bridge/protocol.rs321 /// Replace existing value (default).COMMENT
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.go581// 2. COG_SDK_WHEEL env varCOMMENT
LOWpkg/dockerfile/cacert.go21 CACertContainerPath = "/usr/local/share/ca-certificates/" + CACertFilenameCOMMENT
75 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
AI Slop Vocabulary5 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml151 "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
MEDIUM.github/workflows/new-pr-review.yml42 # Match the job timeout; the harness defaults to 45m.COMMENT
MEDIUM.github/workflows/bonk.yml36 # Match the job timeout; the harness defaults to 45m.COMMENT
MEDIUMpkg/schema/python/annotations.go254 // tree is robust to whitespace variations like "async def".COMMENT
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.go205 // Step 1: resolve inventory (reuse cached if available).COMMENT
LOWpkg/model/weight_builder.go216 // Step 2: ingress the filtered files into the local store.COMMENT
LOWpkg/model/weight_builder.go221 // Step 3: decide fast-path vs recompute.COMMENT
LOWpkg/model/weight_builder.go291 // 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.go205 // Step 1: resolve inventory (reuse cached if available).COMMENT
LOWpkg/model/weight_builder.go216 // Step 2: ingress the filtered files into the local store.COMMENT
LOWpkg/model/weight_builder.go221 // Step 3: decide fast-path vs recompute.COMMENT
LOWpkg/model/weight_builder.go291 // 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
Excessive Try-Catch Wrapping7 hits · 7 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
LOWpython/cog/_trace.py64 except Exception:CODE
LOWpython/cog/_trace.py88 except Exception:CODE
LOWpython/cog/_trace.py194 except Exception:CODE
LOWpython/cog/_trace.py198 except Exception:CODE
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
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHexamples/hello-concurrency/README.md27export HONEYCOMB_API_KEY=your-api-keyCODE
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