Containers for machine learning
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).
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.
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 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.
| 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⚡ | 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_predictor.py | 24 | def test_base_runner_run_delegates_to_legacy_predict_with_positional_args() -> None: | CODE |
| LOW⚡ | python/tests/test_predictor.py | 34 | def test_base_runner_run_uses_cached_legacy_predict_owner() -> None: | CODE |
| LOW⚡ | python/tests/test_predictor.py | 44 | def test_user_method_owner_finds_diamond_inheritance_before_framework_base() -> None: | CODE |
| LOW | python/tests/test_predictor.py | 11 | def test_base_runner_run_and_predict_bridge() -> None: | CODE |
| LOW | python/tests/test_predictor.py | 59 | def test_user_method_owner_ignores_mixin_after_framework_base() -> None: | CODE |
| LOW | python/tests/test_predictor.py | 72 | def test_base_predictor_is_legacy_subclass() -> None: | CODE |
| LOW | python/tests/test_predictor.py | 76 | def test_load_predictor_from_ref_defaults_to_runner(tmp_path: FilePath) -> None: | CODE |
| LOW | python/tests/test_predictor.py | 91 | def test_load_predictor_from_ref_warns_for_legacy_predictor_class( | CODE |
| LOW | python/tests/test_predictor.py | 109 | def test_load_predictor_from_ref_prefers_runner_when_both_default_classes_exist( | CODE |
| LOW | python/tests/test_predictor.py | 130 | def test_load_predictor_from_ref_falls_back_to_predictor_when_default_runner_invalid( | CODE |
| LOW | python/tests/test_predictor.py | 149 | def test_load_predictor_from_ref_rejects_run_and_predict( | CODE |
| 120 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 | 283 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 285 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 384 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 386 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 450 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 452 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 523 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 525 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 539 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 541 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 621 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 623 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 645 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 647 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 677 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 679 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 785 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 787 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 818 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 820 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 840 | # ============================================================================= | STRING |
| MEDIUM | mise.toml | 842 | # ============================================================================= | 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 | 66 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 68 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 127 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 129 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 214 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 216 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 306 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 308 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 413 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 415 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 691 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 693 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/ci.yaml | 791 | # ============================================================================= | 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/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/worker_bridge.rs | 81 | 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 | 281 | /// Output exceeds size threshold for bridge codec serialization but is not a file-like return type | 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 | 481 | // It is idempotent — subsequent calls are no-ops. Must be called before | COMMENT |
| LOW | pkg/dockerfile/cacert.go | 21 | CACertContainerPath = "/usr/local/share/ca-certificates/" + CACertFilename | COMMENT |
| LOW | pkg/weights/pull.go | 81 | // - Files already present locally are skipped (no registry I/O). | COMMENT |
| LOW | pkg/weights/lockfile/lockfile.go | 21 | COMMENT | |
| 71 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 |
|---|---|---|---|---|
| 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 | 191 | // Step 1: resolve inventory (reuse cached if available). | COMMENT |
| LOW⚡ | pkg/model/weight_builder.go | 202 | // Step 2: ingress the filtered files into the local store. | COMMENT |
| LOW⚡ | pkg/model/weight_builder.go | 207 | // Step 3: decide fast-path vs recompute. | COMMENT |
| LOW | pkg/model/weight_builder.go | 277 | // 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 | 191 | // Step 1: resolve inventory (reuse cached if available). | COMMENT |
| LOW⚡ | pkg/model/weight_builder.go | 202 | // Step 2: ingress the filtered files into the local store. | COMMENT |
| LOW⚡ | pkg/model/weight_builder.go | 207 | // Step 3: decide fast-path vs recompute. | COMMENT |
| LOW | pkg/model/weight_builder.go | 277 | // 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 |
|---|---|---|---|---|
| MEDIUM | pyproject.toml | 142 | "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 | pkg/schema/python/annotations.go | 254 | // tree is robust to whitespace variations like "async def". | COMMENT |
| 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 |
|---|---|---|---|---|
| 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 |
| 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 |