AI Slop Code RIsk Monitor

replicate/cog

Containers for machine learning

4.4 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for replicate/cog, a Go project with 9,489 GitHub stars. SynthScan examined 144,479 lines of code across 597 source files, recording 473 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 4.4 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.4
Adjusted Signal
4.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
9.5K
Stars
Go
Language
144.5K
Lines of Code
597
Files
473
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 13.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 370 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.9/100 · LOW

Are imports declared and package/API names verified? 21 finding(s).

Agent Over-Engineering Ratio 13.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 278 finding(s).

PR Review Velocity Impact 20.9/100 · LOW

Which changes need focused human review? 473 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 14MEDIUM 68LOW 391

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 473 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers194 hits · 197 pts
SeverityFileLineSnippetContext
LOW⚡crates/coglet-python/tests/test_coglet.py65 def test_server_active_is_false(self) -> None:CODE
LOW⚡crates/coglet-python/tests/test_coglet.py69 def test_server_active_is_property(self) -> None:CODE
LOW⚡crates/coglet-python/tests/test_coglet.py77 def test_server_active_not_settable(self) -> None:CODE
LOW⚡crates/coglet-python/tests/test_coglet.py84 def test_sdk_submodule_exists(self) -> None:CODE
LOW⚡crates/coglet-python/tests/test_coglet.py87 def test_sdk_has_slot_log_writer(self) -> None:CODE
LOW⚡crates/coglet-python/tests/test_coglet.py93 def test_all_excludes_internals(self) -> None:CODE
LOW⚡crates/coglet-python/tests/test_coglet.py637 def test_async_setup_with_async_predict(self, async_setup_predictor: Path):CODE
LOW⚡crates/coglet-python/tests/test_coglet.py644 def test_async_setup_with_sync_predict(CODE
LOW⚡crates/coglet-python/tests/test_coglet.py653 def test_async_setup_with_weights(CODE
LOW⚡crates/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
LOW⚡python/tests/test_model.py12 def test_subclass_becomes_dataclass(self) -> None:CODE
LOW⚡python/tests/test_model.py19 def test_subclass_can_be_instantiated(self) -> None:CODE
LOW⚡python/tests/test_model.py28 def test_subclass_with_defaults(self) -> None:CODE
LOW⚡python/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
LOW⚡python/tests/test_input.py12 def test_input_returns_fieldinfo(self) -> None:CODE
LOW⚡python/tests/test_input.py21 def test_input_with_numeric_constraints(self) -> None:CODE
LOW⚡python/tests/test_input.py27 def test_input_with_string_constraints(self) -> None:CODE
LOW⚡python/tests/test_input.py38 def test_input_with_deprecated(self) -> None:CODE
LOW⚡python/tests/test_input.py42 def test_input_default_factory_raises_error(self) -> None:CODE
LOW⚡python/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 Block134 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/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
LOWpkg/weights/pull.go81COMMENT
74 more matches not shown…
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHcrates/coglet-python/tests/test_coglet.py416except Exception:CODE
HIGHcrates/coglet-python/tests/test_coglet.py452except requests.exceptions.ConnectionError:CODE
HIGHpython/tests/test_types.py51except Exception:CODE
HIGHpython/cog/types.py197except AttributeError:CODE
HIGHpython/cog/_adt.py54except ImportError:CODE
HIGHpython/cog/_adt.py160except TypeError:CODE
HIGHpython/cog/_adt.py520except (TypeError, ValueError):CODE
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
LOW⚡pkg/model/weight_builder.go216 // Step 2: ingress the filtered files into the local store.COMMENT
LOW⚡pkg/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
LOW⚡pkg/model/weight_builder.go216 // Step 2: ingress the filtered files into the local store.COMMENT
LOW⚡pkg/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