Containers for machine learning
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).
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.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 65 | def test_server_active_is_false(self) -> None: | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 69 | def test_server_active_is_property(self) -> None: | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 77 | def test_server_active_not_settable(self) -> None: | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 84 | def test_sdk_submodule_exists(self) -> None: | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 87 | def test_sdk_has_slot_log_writer(self) -> None: | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 93 | def test_all_excludes_internals(self) -> None: | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 637 | def test_async_setup_with_async_predict(self, async_setup_predictor: Path): | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 644 | def test_async_setup_with_sync_predict( | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 653 | def test_async_setup_with_weights( | CODE |
| LOW⚡ | crates/coglet-python/tests/test_coglet.py | 663 | def test_async_setup_shares_event_loop_with_predict( | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 42 | def test_build_info_fields_are_strings(self) -> None: | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 49 | def test_build_info_version_matches_module_version(self) -> None: | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 486 | def test_returns_ready_status(self, sync_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 491 | def test_returns_version_info(self, sync_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 515 | def test_includes_predict_time(self, sync_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 535 | def test_direct_secret_is_wrapped(self, secret_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 543 | def test_optional_secret_with_value_is_wrapped(self, secret_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 563 | def test_plain_str_is_not_wrapped(self, secret_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 573 | def test_optional_secret_omitted_stays_none(self, secret_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 586 | def test_returns_array_output(self, generator_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 623 | def test_returns_array_output(self, async_generator_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 789 | def test_prediction_response_includes_id(self, sync_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 796 | def test_cancel_running_sync_prediction(self, slow_sync_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 820 | def test_cancel_running_async_prediction(self, slow_async_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 854 | def test_repeated_cancel_is_idempotent( | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 894 | def test_cancel_sync_prediction_connection_drop(self, slow_sync_predictor: Path): | CODE |
| LOW | crates/coglet-python/tests/test_coglet.py | 230 | def async_generator_predictor(tmp_path: Path) -> Path: | STRING |
| LOW | crates/coglet-python/tests/test_coglet.py | 284 | def async_setup_sync_predict_predictor(tmp_path: Path) -> Path: | STRING |
| LOW | crates/coglet-python/tests/test_coglet.py | 310 | def async_setup_weights_predictor(tmp_path: Path) -> Path: | STRING |
| LOW | crates/coglet-python/tests/test_coglet.py | 336 | def async_setup_event_loop_predictor(tmp_path: Path) -> Path: | STRING |
| LOW | playground/src/components/dom.ts | 122 | export function replaceChildrenPreservingFocus(root: HTMLElement, ...children: Node[]): void { | CODE |
| LOW⚡ | python/tests/test_model.py | 12 | def test_subclass_becomes_dataclass(self) -> None: | CODE |
| LOW⚡ | python/tests/test_model.py | 19 | def test_subclass_can_be_instantiated(self) -> None: | CODE |
| LOW⚡ | python/tests/test_model.py | 28 | def test_subclass_with_defaults(self) -> None: | CODE |
| LOW⚡ | python/tests/test_model.py | 37 | def test_subclass_with_optional(self) -> None: | CODE |
| LOW | python/tests/test_model.py | 70 | def test_auto_dataclass_false(self) -> None: | CODE |
| LOW | python/tests/test_model.py | 84 | def test_primary_base_must_be_basemodel(self) -> None: | CODE |
| LOW | python/tests/test_model.py | 97 | def test_cannot_mixin_dataclass(self) -> None: | CODE |
| LOW | python/tests/test_model.py | 113 | def test_auto_dataclass_inheritance_mismatch(self) -> None: | CODE |
| LOW⚡ | python/tests/test_input.py | 12 | def test_input_returns_fieldinfo(self) -> None: | CODE |
| LOW⚡ | python/tests/test_input.py | 21 | def test_input_with_numeric_constraints(self) -> None: | CODE |
| LOW⚡ | python/tests/test_input.py | 27 | def test_input_with_string_constraints(self) -> None: | CODE |
| LOW⚡ | python/tests/test_input.py | 38 | def test_input_with_deprecated(self) -> None: | CODE |
| LOW⚡ | python/tests/test_input.py | 42 | def test_input_default_factory_raises_error(self) -> None: | CODE |
| LOW⚡ | python/tests/test_input.py | 46 | def test_input_immutable_defaults_stored_directly(self) -> None: | CODE |
| LOW | python/tests/test_input.py | 73 | def test_fieldinfo_none_defaults(self) -> None: | CODE |
| LOW | python/tests/test_errors.py | 4 | def test_error_types_remain_importable() -> None: | CODE |
| LOW | python/tests/test_experimental_feature_warning.py | 19 | def test_prints_deprecation_to_stderr(self) -> None: | CODE |
| LOW | python/tests/test_experimental_feature_warning.py | 41 | def test_is_future_warning_subclass(self) -> None: | CODE |
| LOW | python/tests/test_experimental_feature_warning.py | 54 | def test_filterwarnings_compat(self) -> None: | CODE |
| LOW | python/tests/test_trace.py | 21 | def test_trace_provider_installs_before_model_import() -> None: | CODE |
| LOW | python/tests/test_trace.py | 41 | def test_ratio_sampler_without_arg_defaults_to_one() -> None: | STRING |
| LOW | python/tests/test_trace.py | 55 | def test_http_trace_endpoint_appends_signal_path_once() -> None: | STRING |
| LOW | python/tests/test_trace.py | 67 | def test_invalid_default_trace_config_disables_tracing() -> None: | STRING |
| LOW | python/tests/test_trace.py | 86 | def test_trace_provider_rejects_collision() -> None: | STRING |
| LOW | python/tests/test_trace.py | 109 | def test_disabled_builtin_exporter_allows_existing_provider() -> None: | STRING |
| LOW | python/tests/test_trace.py | 129 | def test_custom_trace_provider_and_instrumentation(tmp_path: Path) -> None: | STRING |
| LOW | python/tests/test_trace.py | 151 | def configure_instrumentation(): | CODE |
| LOW | python/tests/test_trace.py | 175 | def test_custom_trace_provider_errors(tmp_path: Path) -> None: | STRING |
| LOW | python/tests/test_trace.py | 191 | "def configure_instrumentation():\n raise RuntimeError('instrumentation failed')\n", | STRING |
| 134 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | mise.toml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | mise.toml | 3 | # ============================================================================= | COMMENT |
| MEDIUM | mise.toml | 26 | # ============================================================================= | COMMENT |
| MEDIUM | mise.toml | 72 | # ============================================================================= | COMMENT |
| MEDIUM | mise.toml | 74 | # ============================================================================= | COMMENT |
| MEDIUM | mise.toml | 94 | # ============================================================================= | COMMENT |
| MEDIUM | mise.toml | 96 | # ============================================================================= | COMMENT |
| MEDIUM | mise.toml | 325 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 327 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 433 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 435 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 513 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 515 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 600 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 602 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 626 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 628 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 708 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 710 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 732 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 734 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 764 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 766 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 872 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 874 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 905 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 907 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 927 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 929 | # ============================================================================= | STRING |
| MEDIUM | tools/test-harness/manifest.yaml | 2 | # ======================= | COMMENT |
| MEDIUM | tools/test-harness/manifest.yaml | 45 | # ── cog-examples (CPU) ────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/test-harness/manifest.yaml | 176 | # ── cog-examples (GPU) ────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/test-harness/manifest.yaml | 202 | # ── Local fixture models ───────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/test-harness/manifest.yaml | 278 | # ── External models (add your own below) ──────────────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/tests/test_coglet.py | 16 | # ============================================================================= | COMMENT |
| MEDIUM | crates/coglet-python/tests/test_coglet.py | 18 | # ============================================================================= | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 293 | // ── make_encodeable: primitives ────────────────────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 320 | // ── make_encodeable: collections ───────────────────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 359 | // ── make_encodeable: enum ──────────────────────────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 379 | // ── make_encodeable: datetime ──────────────────────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 388 | // ── make_encodeable: dataclass ─────────────────────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 420 | // ── make_encodeable: generator ─────────────────────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 427 | // ── make_encodeable: enum value in collection ──────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 443 | // ── encode_files / file_to_base64 ──────────────────────────────── | COMMENT |
| MEDIUM | crates/coglet-python/src/output.rs | 547 | // ── process_output: end-to-end ─────────────────────────────────── | COMMENT |
| MEDIUM | python/cog/__init__.py | 107 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | python/cog/__init__.py | 118 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 92 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 94 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 153 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 155 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 265 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 267 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 357 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 359 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 464 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 466 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 742 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 744 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 848 | # ============================================================================= | COMMENT |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mise.toml | 1 | # ============================================================================= | COMMENT |
| LOW | CONTRIBUTING.md | 321 | git push origin v0.17.0 | COMMENT |
| LOW | tools/install.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tools/install.sh | 21 | # [1] https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh | COMMENT |
| LOW | tools/test-harness/manifest.yaml | 1 | # Cog Model Test Manifest | COMMENT |
| LOW | tools/test-harness/manifest.yaml | 21 | # Example: | COMMENT |
| LOW | tools/test-harness/manifest.yaml | 281 | # path: "." | COMMENT |
| LOW | tools/test-harness/manifest.yaml | 301 | # - "script/select.sh dev" | COMMENT |
| LOW | crates/coglet-python/src/audit.rs | 1 | //! Audit hooks to protect Rust-injected runtime objects. | COMMENT |
| LOW | crates/coglet-python/src/audit.rs | 201 | "Expected _TeeWriter with inner attribute", | COMMENT |
| LOW | crates/coglet-python/src/cancel.rs | 1 | //! Cancellation support for predictions. | COMMENT |
| LOW | crates/coglet-python/src/lib.rs | 241 | // ============================================================================= | COMMENT |
| LOW | crates/coglet-python/src/predictor.rs | 661 | /// | COMMENT |
| LOW | crates/coglet-python/src/metric_scope.rs | 181 | None => "MetricRecorder(inactive)".to_string(), | COMMENT |
| LOW | crates/coglet-python/src/metric_scope.rs | 241 | /// Returns a `dict[str, str]` (empty dict if no context was provided). | COMMENT |
| LOW | crates/coglet-python/src/metric_scope.rs | 281 | /// Maximum number of dot-separated segments in a metric name. | COMMENT |
| LOW | crates/coglet-python/src/metric_scope.rs | 381 | } | COMMENT |
| LOW | crates/coglet-python/src/metric_scope.rs | 561 | /// Python-callable: get the current Scope. | COMMENT |
| LOW | crates/coglet-python/src/output.rs | 1 | //! Output processing for prediction results. | COMMENT |
| LOW | crates/coglet-python/src/log_writer.rs | 1 | //! Log routing via prediction_id ContextVar. | COMMENT |
| LOW | crates/coglet-python/src/log_writer.rs | 101 | // is in an unrecoverable state. We cannot safely continue because: | COMMENT |
| LOW | crates/coglet-python/src/log_writer.rs | 241 | Err(e) if e.is_instance_of::<pyo3::exceptions::PyLookupError>(py) => { | COMMENT |
| LOW | crates/coglet-python/src/log_writer.rs | 261 | /// | COMMENT |
| LOW | crates/coglet-python/src/log_writer.rs | 281 | impl SlotLogWriter { | COMMENT |
| LOW | crates/coglet-python/src/sentry_integration.rs | 1 | //! Sentry error reporting integration. | COMMENT |
| LOW | crates/coglet-python/src/input.rs | 1 | //! Input processing for cog predictors. | COMMENT |
| LOW | crates/coglet-python/src/input.rs | 61 | COMMENT | |
| LOW | crates/coglet-python/src/input.rs | 101 | file_fields: HashSet<String>, | COMMENT |
| LOW | crates/coglet-python/src/input.rs | 261 | /// Coerce input dict values to the appropriate cog types. | COMMENT |
| LOW | crates/coglet-python/src/bin/stub_gen.rs | 1 | //! Generate Python stub files for coglet. | COMMENT |
| LOW | crates/coglet/src/health.rs | 1 | //! Health status types for coglet runtime. | COMMENT |
| LOW | crates/coglet/src/input_validation.rs | 21 | COMMENT | |
| LOW | crates/coglet/src/input_validation.rs | 41 | /// `pkg/schema/openapi.go` (`buildInputSchema`), which emits `nullable`, | COMMENT |
| LOW | crates/coglet/src/version.rs | 1 | //! Version information for coglet. | COMMENT |
| LOW | crates/coglet/src/webhook.rs | 1 | //! Webhook sender for async predictions. | COMMENT |
| LOW | crates/coglet/src/service.rs | 1 | //! PredictionService: Transport-agnostic prediction lifecycle management. | COMMENT |
| LOW | crates/coglet/src/fd_redirect.rs | 1 | //! File descriptor redirection for subprocess isolation. | COMMENT |
| LOW | crates/coglet/src/bridge/protocol.rs | 221 | #[serde(skip_serializing_if = "Option::is_none")] | COMMENT |
| LOW | crates/coglet/src/bridge/protocol.rs | 321 | /// Replace existing value (default). | COMMENT |
| LOW | crates/coglet/src/bridge/mod.rs | 1 | //! IPC bridge for coglet parent-worker communication. | COMMENT |
| LOW | crates/coglet/src/permit/slot.rs | 1 | //! PredictionSlot - holds Prediction and Permit side-by-side. | COMMENT |
| LOW | python/cog/__init__.py | 101 | raise TypeError( | COMMENT |
| LOW | integration-tests/harness/cmd_pty.go | 21 | func (c *PtyRunCommand) Name() string { return "pty-run" } | COMMENT |
| LOW | integration-tests/login/login_test.go | 1 | //go:build integration | COMMENT |
| LOW | examples/managed-weights/cog.yaml | 1 | # Test fixture for the v1 managed-weights OCI pipeline. | COMMENT |
| LOW | examples/hello-context/requirements.txt | 1 | # This is a normal Python requirements.txt file. | COMMENT |
| LOW | examples/hello-context/requirements.txt | 21 | # You can also pin Git repos to a specific commit: | COMMENT |
| LOW | examples/hello-context/cog.yaml | 21 | COMMENT | |
| LOW | examples/hello-replicate/requirements.txt | 1 | # This is a normal Python requirements.txt file. | COMMENT |
| LOW | examples/hello-replicate/requirements.txt | 21 | COMMENT | |
| LOW | examples/hello-replicate/cog.yaml | 21 | COMMENT | |
| LOW | .github/workflows/ci.yaml | 21 | # Default Python version for non-matrix jobs | COMMENT |
| LOW | .github/workflows/ci.yaml | 41 | # mise-action caches ~/.local/share/mise but NOT external tool state: | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/release-publish.yaml | 1 | --- | COMMENT |
| LOW | .github/workflows/release-build.yaml | 1 | --- | COMMENT |
| LOW | pkg/docker/command/command.go | 61 | ExcludePatterns []string | COMMENT |
| LOW | pkg/config/build_options.go | 1 | package config | COMMENT |
| LOW | pkg/dockerfile/standard_generator.go | 581 | // 2. COG_SDK_WHEEL env var | COMMENT |
| LOW | pkg/dockerfile/cacert.go | 21 | CACertContainerPath = "/usr/local/share/ca-certificates/" + CACertFilename | COMMENT |
| 75 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 0 | load the model into memory to make running multiple inferences efficient | STRING |
| HIGH | docs/llms.txt | 0 | load the model into memory to make running multiple inferences efficient | STRING |
| HIGH | docs/getting-started-own-model.md | 0 | load the model into memory to make running multiple inferences efficient | STRING |
| HIGH | docs/python.md | 0 | load the model into memory to make running multiple inferences efficient | STRING |
| HIGH | docs/getting-started.md | 0 | load the model into memory to make running multiple inferences efficient | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/coglet-python/coglet/__init__.py | 3 | CODE | |
| LOW | crates/coglet-python/coglet/__init__.py | 3 | CODE | |
| LOW | crates/coglet-python/coglet/__init__.py | 3 | CODE | |
| LOW | crates/coglet-python/coglet/__init__.py | 3 | CODE | |
| LOW | crates/coglet-python/coglet/__init__.py | 4 | CODE | |
| LOW | python/cog/__init__.py | 27 | CODE | |
| LOW | python/cog/__init__.py | 29 | CODE | |
| LOW | python/cog/__init__.py | 30 | CODE | |
| LOW | python/cog/__init__.py | 31 | CODE | |
| LOW | python/cog/__init__.py | 31 | CODE | |
| LOW | python/cog/__init__.py | 32 | CODE | |
| LOW | python/cog/__init__.py | 33 | CODE | |
| LOW | python/cog/__init__.py | 33 | CODE | |
| LOW | python/cog/__init__.py | 34 | CODE | |
| LOW | python/cog/__init__.py | 34 | CODE | |
| LOW | python/cog/__init__.py | 34 | CODE | |
| LOW | python/cog/__init__.py | 34 | CODE | |
| LOW | python/cog/__init__.py | 34 | CODE | |
| LOW | python/cog/__init__.py | 34 | CODE | |
| LOW | python/cog/__init__.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyproject.toml | 151 | "S603", # subprocess call — harness invokes cog/docker/git by design | CODE |
| MEDIUM | tools/test-harness/manifest.yaml | 27 | # setup commands to work. The harness checks before running and prints | COMMENT |
| MEDIUM | .github/workflows/new-pr-review.yml | 42 | # Match the job timeout; the harness defaults to 45m. | COMMENT |
| MEDIUM | .github/workflows/bonk.yml | 36 | # Match the job timeout; the harness defaults to 45m. | COMMENT |
| MEDIUM | pkg/schema/python/annotations.go | 254 | // tree is robust to whitespace variations like "async def". | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/doctor/check_python_deprecated_imports.go | 133 | // Step 1: Walk the AST to find which deprecated names are present in this file. | COMMENT |
| LOW | pkg/doctor/check_python_deprecated_imports.go | 164 | // Step 2: Remove deprecated names from their import statements via AST. | COMMENT |
| LOW | pkg/doctor/check_python_deprecated_imports.go | 187 | // Step 3: Re-parse and use tree-sitter to find statements referencing | COMMENT |
| LOW | pkg/doctor/check_python_deprecated_imports.go | 211 | // Step 4: Remove orphaned "import X" statements via AST. | COMMENT |
| LOW | pkg/model/weight_builder.go | 205 | // Step 1: resolve inventory (reuse cached if available). | COMMENT |
| LOW⚡ | pkg/model/weight_builder.go | 216 | // Step 2: ingress the filtered files into the local store. | COMMENT |
| LOW⚡ | pkg/model/weight_builder.go | 221 | // Step 3: decide fast-path vs recompute. | COMMENT |
| LOW | pkg/model/weight_builder.go | 291 | // Step 5: stamp envelope + rewrite iff anything changed. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/doctor/check_python_deprecated_imports.go | 133 | // Step 1: Walk the AST to find which deprecated names are present in this file. | COMMENT |
| LOW | pkg/doctor/check_python_deprecated_imports.go | 164 | // Step 2: Remove deprecated names from their import statements via AST. | COMMENT |
| LOW | pkg/doctor/check_python_deprecated_imports.go | 187 | // Step 3: Re-parse and use tree-sitter to find statements referencing | COMMENT |
| LOW | pkg/doctor/check_python_deprecated_imports.go | 211 | // Step 4: Remove orphaned "import X" statements via AST. | COMMENT |
| LOW | pkg/model/weight_builder.go | 205 | // Step 1: resolve inventory (reuse cached if available). | COMMENT |
| LOW⚡ | pkg/model/weight_builder.go | 216 | // Step 2: ingress the filtered files into the local store. | COMMENT |
| LOW⚡ | pkg/model/weight_builder.go | 221 | // Step 3: decide fast-path vs recompute. | COMMENT |
| LOW | pkg/model/weight_builder.go | 291 | // Step 5: stamp envelope + rewrite iff anything changed. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/cog/predictor.py | 191 | CODE | |
| LOW | python/cog/_inspector.py | 136 | CODE | |
| LOW | python/cog/_inspector.py | 348 | CODE | |
| LOW | python/cog/_inspector.py | 550 | CODE | |
| LOW | python/cog/_adt.py | 166 | CODE | |
| LOW | python/cog/_adt.py | 231 | CODE | |
| LOW | python/cog/_adt.py | 350 | CODE | |
| LOW | python/cog/_adt.py | 508 | CODE | |
| LOW | python/cog/_adt.py | 574 | CODE | |
| LOW | python/cog/_adt.py | 632 | CODE | |
| LOW | python/cog/_adt.py | 705 | CODE | |
| LOW | python/cog/model.py | 39 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/coglet-python/tests/test_coglet.py | 416 | except Exception: | CODE |
| LOW | python/tests/test_types.py | 51 | except Exception: | CODE |
| LOW | python/cog/_inspector.py | 439 | except Exception: | CODE |
| LOW | python/cog/_trace.py | 64 | except Exception: | CODE |
| LOW | python/cog/_trace.py | 88 | except Exception: | CODE |
| LOW | python/cog/_trace.py | 194 | except Exception: | CODE |
| LOW | python/cog/_trace.py | 198 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/install.sh | 67 | # Check if sudo is installed | COMMENT |
| LOW | tools/install.sh | 170 | # Check if macOS | COMMENT |
| LOW | tools/install.sh | 185 | # Check if `cog` command already exists | COMMENT |
| LOW | python/cog/_inspector.py | 515 | # Check if module is partially loaded (common with import errors) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/coglet-python/tests/test_coglet.py | 346 | # Create an event-loop-bound resource (Queue is bound to the running loop) | COMMENT |
| MEDIUM | crates/coglet-python/src/bin/stub_gen.rs | 55 | writeln!(f, "# This file is automatically generated by stub_gen")?; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | python/cog/predictor.py | 64 | Run the model once. Override this method to implement your model's prediction logic. Input par | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/hello-concurrency/README.md | 27 | export HONEYCOMB_API_KEY=your-api-key | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/coglet-python/coglet/__init__.py | 6 | __all__ = ["__version__", "__build__", "server", "CancelationException"] | CODE |
| LOW | python/cog/__init__.py | 179 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/cog/input.py | 33 | CODE | |
| LOW | examples/notebook/run.py | 14 | CODE |