AI Slop Code RIsk Monitor

OpenMined/PySyft

Perform data science on data that remains in someone else's server

43.0 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for OpenMined/PySyft, a Python project with 10,040 GitHub stars. SynthScan examined 97,811 lines of code across 616 source files, recording 2880 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 43.0 (High 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.

43.0
Adjusted Signal
43.0
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
10.0K
Stars
Python
Language
97.8K
Lines of Code
616
Files
2.9K
Pattern Hits
2026-10-12
Scan Date
0.28
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 62.6/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 21.2/100 · LOW

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

Agent Over-Engineering Ratio 82.5/100 · CRITICAL

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

PR Review Velocity Impact 89.1/100 · CRITICAL

Which changes need focused human review? 2880 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 3HIGH 168MEDIUM 296LOW 2413

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 2880 distinct pattern matches across 21 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 Identifiers1597 hits · 1586 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py13def disable_pre_sync_for_tests():CODE
LOWtests/unit/test_sync_file_lock.py22def _subprocess_sync_with_instrumented_lock(CODE
LOWtests/unit/test_sync_file_lock.py66def test_sync_prevents_concurrent_sync_across_processes():CODE
LOWtests/unit/test_peer_requests.py8def test_peer_request_blocks_sync_until_approved():CODE
LOWtests/unit/test_peer_requests.py75def test_peer_request_rejection():CODE
LOWtests/unit/test_gdrive_pagination.py30def test_multiple_pages_pagination():CODE
LOWtests/unit/test_gdrive_pagination.py61def test_events_returned_in_chronological_order(mock_download_file, mock_get_folder_id):CODE
LOWtests/unit/test_gdrive_pagination.py107def test_orderby_name_desc_applied():CODE
LOW⚡tests/unit/test_gdrive_pagination.py120def test_extract_timestamp_from_event_filename():CODE
LOW⚡tests/unit/test_gdrive_pagination.py128def test_extract_timestamp_from_job_filename():CODE
LOW⚡tests/unit/test_gdrive_pagination.py136def test_extract_timestamp_returns_none_for_invalid():CODE
LOW⚡tests/unit/test_gdrive_pagination.py142def test_early_termination_stops_pagination():CODE
LOWtests/unit/test_gdrive_pagination.py191def test_no_early_termination_when_all_files_new():CODE
LOWtests/unit/test_gdrive_pagination.py218def test_no_early_termination_when_since_timestamp_none():CODE
LOW⚡tests/unit/test_install_source_advertise.py14def _clear_install_source_cache():CODE
LOW⚡tests/unit/test_install_source_advertise.py24 def test_current_populates_install_source(self):CODE
LOW⚡tests/unit/test_install_source_advertise.py30 def test_current_uses_env_var_override(self, monkeypatch):CODE
LOW⚡tests/unit/test_install_source_advertise.py36 def test_json_roundtrip_preserves_install_source(self, monkeypatch):CODE
LOW⚡tests/unit/test_install_source_advertise.py42 def test_missing_field_parses_as_none_backward_compat(self):CODE
LOWtests/unit/test_install_source_advertise.py55 def test_current_returns_versioninfo_even_if_detection_fails(self):CODE
LOW⚡tests/unit/test_version_negotiation.py53 def test_compatible_versions_match(self):CODE
LOW⚡tests/unit/test_version_negotiation.py59 def test_minor_version_mismatch_is_incompatible(self):CODE
LOW⚡tests/unit/test_version_negotiation.py64 def test_protocol_only_diff_is_compatible_now(self):CODE
LOW⚡tests/unit/test_version_negotiation.py97 def test_minor_diff_is_incompatible(self):CODE
LOW⚡tests/unit/test_version_negotiation.py102 def test_major_diff_is_incompatible(self):CODE
LOW⚡tests/unit/test_version_negotiation.py107 def test_two_digit_minor_compares_numerically(self):CODE
LOW⚡tests/unit/test_version_negotiation.py387 def test_ds_only_defaults_to_no_skip(self):CODE
LOW⚡tests/unit/test_version_negotiation.py391 def test_dual_role_defaults_to_skip(self):CODE
LOW⚡tests/unit/test_version_negotiation.py395 def test_explicit_false_on_do_is_preserved(self):CODE
LOW⚡tests/unit/test_version_negotiation.py399 def test_explicit_true_on_ds_is_preserved(self):CODE
LOW⚡tests/unit/test_version_negotiation.py407 def test_incompatible_peer_skipped_by_default(self):CODE
LOWtests/unit/test_version_negotiation.py29 def test_current_version_creates_valid_info(self):CODE
LOWtests/unit/test_version_negotiation.py37 def test_version_info_json_roundtrip(self):CODE
LOWtests/unit/test_version_negotiation.py76 def test_get_incompatibility_reason_client(self):CODE
LOWtests/unit/test_version_negotiation.py120 def test_unknown_when_other_none(self):CODE
LOWtests/unit/test_version_negotiation.py125 def test_patch_warning_text_only_for_patch_diff(self):CODE
LOWtests/unit/test_version_negotiation.py144 def test_is_compatible_with_includes_patch_diff(self):CODE
LOWtests/unit/test_version_negotiation.py163 def test_peer_manager_writes_own_version(self):CODE
LOWtests/unit/test_version_negotiation.py174 def test_version_shared_on_add_peer(self):CODE
LOWtests/unit/test_version_negotiation.py187 def test_version_shared_on_approve_peer(self):CODE
LOWtests/unit/test_version_negotiation.py212 def test_load_peer_version_without_permission(self):CODE
LOWtests/unit/test_version_negotiation.py220 def test_load_peer_versions_parallel(self):CODE
LOWtests/unit/test_version_negotiation.py287 def test_patch_diff_does_not_skip_in_sync_for_ds(self, caplog):CODE
LOWtests/unit/test_version_negotiation.py301 def test_patch_diff_skips_in_sync_for_do_default(self, caplog):CODE
LOWtests/unit/test_version_negotiation.py315 def test_patch_diff_allows_job_submission(self, caplog):CODE
LOWtests/unit/test_version_negotiation.py330 def test_patch_diff_do_force_ignore_proceeds(self, caplog):CODE
LOWtests/unit/test_version_negotiation.py347 def test_patch_diff_do_per_call_ignore_proceeds(self):CODE
LOWtests/unit/test_version_negotiation.py359 def test_patch_diff_do_explicit_false_does_not_skip(self):CODE
LOWtests/unit/test_version_negotiation.py419 def test_force_allow_includes_incompatible_peer(self, caplog):CODE
LOWtests/unit/test_version_negotiation.py435 def test_per_call_ignore_peer_version_includes_peer(self):CODE
LOWtests/unit/test_version_negotiation.py446 def test_per_call_ignore_peer_version_in_submit(self):CODE
LOWtests/unit/test_version_negotiation.py466 def test_force_allow_in_submit(self):CODE
LOWtests/unit/test_version_negotiation.py483 def test_sync_skips_incompatible_peers(self):CODE
LOWtests/unit/test_version_negotiation.py497 def test_sync_skips_a_peer_of_unknown_version(self):CODE
LOWtests/unit/test_version_negotiation.py516 def test_version_upgrade_breaks_communication(self):CODE
LOWtests/unit/test_persisted_cache.py14def test_no_duplicate_events_across_processes():CODE
LOWtests/unit/test_persisted_cache.py66def test_rolling_state_not_overwritten_across_processes():CODE
LOWtests/unit/test_peers_json_version.py42def test_a_write_stamps_the_reserved_entry():CODE
LOWtests/unit/test_peers_json_version.py59def test_the_reserved_entry_is_not_a_peer():CODE
LOW⚡tests/unit/test_peers_json_version.py76def test_an_unknown_state_is_skipped_and_logged(caplog):CODE
1537 more matches not shown…
Decorative Section Separators255 hits · 790 pts
SeverityFileLineSnippetContext
MEDIUMnotification_config.minimal.yaml1# ============================================================================COMMENT
MEDIUMnotification_config.minimal.yaml3# ============================================================================COMMENT
MEDIUMnotification_config.minimal.yaml15# ============================================================================COMMENT
MEDIUMnotification_config.minimal.yaml17# ============================================================================COMMENT
MEDIUMnotification_config.minimal.yaml28# ============================================================================COMMENT
MEDIUMnotification_config.minimal.yaml30# ============================================================================COMMENT
MEDIUMgemma_inference_restrict_scan.py40# ── Model configs ────────────────────────────────────────────────────────────COMMENT
MEDIUMgemma_inference_restrict_scan.py100# ── Shared constants (identical across all Gemma 3 sizes) ─────────────────COMMENT
MEDIUMgemma_inference_restrict_scan.py119# ── Standalone helpers ────────────────────────────────────────────────────COMMENT
MEDIUMgemma_inference_restrict_scan.py139# ── Public wrappers (read directly by the data owners) ─────────────────────COMMENT
MEDIUMgemma_inference_restrict_scan.py238# ── Flax modules ───────────────────────────────────────────────────────────COMMENT
MEDIUMgemma_inference_restrict_scan.py467# ── Weight loading ─────────────────────────────────────────────────────────COMMENT
MEDIUMgemma_inference_restrict_scan.py489# ── Setup (convenience entry point) ───────────────────────────────────────COMMENT
MEDIUMgemma_inference_restrict_scan.py501# ── Tokenizer + generation ─────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/unit/test_peer_key_pinning.py52# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_peer_key_pinning.py54# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_peer_key_pinning.py127# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_peer_key_pinning.py129# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_peer_key_pinning.py195# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_peer_key_pinning.py197# =========================================================================COMMENT
MEDIUMtests/unit/test_peer_key_pinning.py372# =========================================================================COMMENT
MEDIUMtests/unit/test_peer_key_pinning.py374# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_encryption.py196# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_encryption.py198# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_encryption.py313# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_encryption.py315# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_encryption.py363# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_encryption.py365# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_encryption.py544# =========================================================================COMMENT
MEDIUM⚡tests/unit/test_encryption.py546# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py16# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py18# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py473# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py475# =========================================================================COMMENT
MEDIUM⚡scripts/verify_dataset_before_peer_accept.py92 # ------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/verify_dataset_before_peer_accept.py99 # ------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/verify_dataset_before_peer_accept.py106 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py119 # ------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/verify_dataset_before_peer_accept.py131 # ------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/verify_dataset_before_peer_accept.py139 # ------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/verify_dataset_before_peer_accept.py146 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py159 # ------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py128 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py130 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py202 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py204 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py246 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py248 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py327 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py329 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py567 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py569 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py604 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py606 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/client.py156 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/client.py158 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/client.py543 # ──────────────────────────────────────────────STRING
MEDIUMpackages/syft-job/src/syft_job/client.py545 # ──────────────────────────────────────────────STRING
MEDIUMpackages/syft-job/src/syft_job/client.py693 # ──────────────────────────────────────────────STRING
MEDIUMpackages/syft-job/src/syft_job/client.py695 # ──────────────────────────────────────────────STRING
195 more matches not shown…
Cross-File Repetition123 hits · 615 pts
SeverityFileLineSnippetContext
HIGHgemma_inference_restrict_scan.py0gemma 3 it — flax inference module (syft-restrict compliant, optimized) same model and same public api as gemma_inferencSTRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0gemma 3 it — flax inference module (syft-restrict compliant, optimized) same model and same public api as gemma_inferencSTRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0gemma 3 it — flax inference module (syft-restrict compliant, optimized) same model and same public api as gemma_inferencSTRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0gemma 3 it — flax inference module (syft-restrict compliant, optimized) same model and same public api as gemma_inferencSTRING
HIGHgemma_inference_restrict_scan.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGH…restrict/examples/gemma_inference_ranges.obfuscated.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGH…lave/gemma/colab-3-persona/gemma_inference_restrict.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference_restrict.py0public wrapper: read an array's shape — an attribute read on a value, not allowed in the private region.STRING
HIGHgemma_inference_restrict_scan.py0append to a python list (a named method on a value).STRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0append to a python list (a named method on a value).STRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0append to a python list (a named method on a value).STRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0append to a python list (a named method on a value).STRING
HIGHgemma_inference_restrict_scan.py0write `update` into a fixed-size kv cache at sequence position `pos`, in place. static-shape replacement for growing theSTRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0write `update` into a fixed-size kv cache at sequence position `pos`, in place. static-shape replacement for growing theSTRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0write `update` into a fixed-size kv cache at sequence position `pos`, in place. static-shape replacement for growing theSTRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0write `update` into a fixed-size kv cache at sequence position `pos`, in place. static-shape replacement for growing theSTRING
HIGHgemma_inference_restrict_scan.py0boolean attention masks over the static cache — mechanical bookkeeping, not architecture. returns {"local", "global"} eaSTRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0boolean attention masks over the static cache — mechanical bookkeeping, not architecture. returns {"local", "global"} eaSTRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0boolean attention masks over the static cache — mechanical bookkeeping, not architecture. returns {"local", "global"} eaSTRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0boolean attention masks over the static cache — mechanical bookkeeping, not architecture. returns {"local", "global"} eaSTRING
HIGHgemma_inference_restrict_scan.py0lift one layer body over the layer axis with flax.linen.scan (a public wrapper). this is the structural "apply the same STRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0lift one layer body over the layer axis with flax.linen.scan (a public wrapper). this is the structural "apply the same STRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0lift one layer body over the layer axis with flax.linen.scan (a public wrapper). this is the structural "apply the same STRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0lift one layer body over the layer axis with flax.linen.scan (a public wrapper). this is the structural "apply the same STRING
HIGHgemma_inference_restrict_scan.py0stack the per-layer weight subtrees (layer_0 .. layer_{l-1}) into arrays with a leading layer axis, under a single `blocSTRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0stack the per-layer weight subtrees (layer_0 .. layer_{l-1}) into arrays with a leading layer axis, under a single `blocSTRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0stack the per-layer weight subtrees (layer_0 .. layer_{l-1}) into arrays with a leading layer axis, under a single `blocSTRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0stack the per-layer weight subtrees (layer_0 .. layer_{l-1}) into arrays with a leading layer axis, under a single `blocSTRING
HIGHgemma_inference_restrict_scan.py0load orbax checkpoint and return flax-compatible params dict (layers stacked for scan).STRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0load orbax checkpoint and return flax-compatible params dict (layers stacked for scan).STRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0load orbax checkpoint and return flax-compatible params dict (layers stacked for scan).STRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0load orbax checkpoint and return flax-compatible params dict (layers stacked for scan).STRING
HIGHgemma_inference_restrict_scan.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGH…restrict/examples/gemma_inference_ranges.obfuscated.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGHgemma_inference_restrict_scan.py0load sentencepiece tokenizer from weights directory.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0load sentencepiece tokenizer from weights directory.STRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0load sentencepiece tokenizer from weights directory.STRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0load sentencepiece tokenizer from weights directory.STRING
HIGH…restrict/examples/gemma_inference_ranges.obfuscated.py0load sentencepiece tokenizer from weights directory.STRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0load sentencepiece tokenizer from weights directory.STRING
HIGH…lave/gemma/colab-3-persona/gemma_inference_restrict.py0load sentencepiece tokenizer from weights directory.STRING
HIGH…ebooks/enclave/gemma/colab/gemma_inference_restrict.py0load sentencepiece tokenizer from weights directory.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference_restrict.py0load sentencepiece tokenizer from weights directory.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference.py0load sentencepiece tokenizer from weights directory.STRING
HIGH…lave/gemma/dev/shieldgemma/gemma_inference_restrict.py0load sentencepiece tokenizer from weights directory.STRING
HIGHgemma_inference_restrict_scan.py0fixed-size kv cache as one stacked buffer per k/v: [num_layers, b, max_len, kvh, hd]. stacked (not a per-layer python liSTRING
HIGH…enclave/gemma/colab-shield/gemma_inference_restrict.py0fixed-size kv cache as one stacked buffer per k/v: [num_layers, b, max_len, kvh, hd]. stacked (not a per-layer python liSTRING
63 more matches not shown…
Unused Imports341 hits · 338 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_install_source_advertise.py3CODE
LOWscripts/check_token.py3CODE
LOWscripts/export_release_artifact.py23CODE
LOWscripts/investigate_approve.py38CODE
LOWscripts/investigate_do_sync.py28CODE
LOW…ages/syft-notebook-ui/src/syft_notebook_ui/__init__.py1CODE
LOW…ages/syft-notebook-ui/src/syft_notebook_ui/__init__.py1CODE
LOWpackages/syft-job/scripts/export_release_artifact.py20CODE
LOWpackages/syft-job/src/syft_job/disclosures.py3CODE
LOWpackages/syft-job/src/syft_job/job.py1CODE
LOWpackages/syft-job/src/syft_job/job_repr.py1CODE
LOWpackages/syft-job/src/syft_job/job_repr.py8CODE
LOWpackages/syft-job/src/syft_job/traceback_capture.py9CODE
LOWpackages/syft-job/src/syft_job/__init__.py2CODE
LOWpackages/syft-job/src/syft_job/__init__.py5CODE
LOWpackages/syft-job/src/syft_job/__init__.py5CODE
LOWpackages/syft-job/src/syft_job/__init__.py5CODE
LOWpackages/syft-job/src/syft_job/__init__.py6CODE
LOWpackages/syft-job/src/syft_job/__init__.py7CODE
LOWpackages/syft-job/src/syft_job/__init__.py7CODE
LOWpackages/syft-job/src/syft_job/__init__.py8CODE
LOWpackages/syft-job/src/syft_job/__init__.py8CODE
LOWpackages/syft-job/src/syft_job/__init__.py9CODE
LOWpackages/syft-job/src/syft_job/__init__.py11CODE
LOWpackages/syft-job/src/syft_job/__init__.py11CODE
LOWpackages/syft-job/src/syft_job/__init__.py11CODE
LOWpackages/syft-job/src/syft_job/job_stdout.py1CODE
LOWpackages/syft-job/src/syft_job/job_stdout.py7CODE
LOW…kages/syft-job/src/syft_job/protocolcodecs/__init__.py1CODE
LOWpackages/syft-job/src/syft_job/models/__init__.py1CODE
LOWpackages/syft-job/src/syft_job/models/__init__.py1CODE
LOWpackages/syft-job/src/syft_job/models/__init__.py1CODE
LOWpackages/syft-job/src/syft_job/models/__init__.py2CODE
LOWpackages/syft-job/src/syft_job/models/__init__.py2CODE
LOWpackages/syft-job/src/syft_job/models/job_state/v1.py1CODE
LOW…ges/syft-job/src/syft_job/models/job_state/__init__.py1CODE
LOW…-job/src/syft_job/models/job_submission_metadata/v1.py1CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py5CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py25CODE
LOWpackages/syft-bg/src/syft_bg/notify/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/notify/__init__.py4CODE
LOW…ckages/syft-bg/src/syft_bg/notify/monitors/__init__.py3CODE
LOW…ckages/syft-bg/src/syft_bg/notify/monitors/__init__.py4CODE
281 more matches not shown…
Empty Error Handlers35 hits · 175 pts
SeverityFileLineSnippetContext
HIGHtests/unit/test_delete_syftbox.py90except SystemExit:CODE
HIGHpackages/syft-job/src/syft_job/job.py323except OSError:CODE
HIGHpackages/syft-job/src/syft_job/job_repr.py406except Exception:CODE
HIGHpackages/syft-job/src/syft_job/job_repr.py428except Exception:CODE
HIGHpackages/syft-job/src/syft_job/job_runner.py82except psutil.NoSuchProcess:CODE
HIGHpackages/syft-job/src/syft_job/job_runner.py549except OSError:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py130except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py177except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py208except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py238except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py269except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py300except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py328except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py355except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py382except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py413except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py446except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py480except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py524except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/notify/gmail/sender.py558except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/tui/app.py137except Exception:CODE
HIGH…kages/syft-bg/src/syft_bg/tui/widgets/activity_feed.py143except Exception:CODE
HIGH…kages/syft-bg/src/syft_bg/tui/widgets/activity_feed.py111except ValueError:CODE
HIGH…kages/syft-bg/src/syft_bg/tui/widgets/activity_feed.py122except ValueError:CODE
HIGHpackages/syft-bg/src/syft_bg/cli/commands.py163except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/email_approve/monitor.py109except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/api/utils.py214except Exception:CODE
HIGHpackages/syft-bg/src/syft_bg/services/base.py181except OSError:CODE
HIGH…odel-api-example/src/enclave_model_api/logs_dataset.py51except DatasetNotFoundError:CODE
HIGH…s/syft-datasets/src/syft_datasets/models/dataset/v1.py187except Exception:CODE
HIGHsyft/utils.py562except Exception:CODE
HIGHsyft/utils.py617except ImportError:CODE
HIGHsyft/utils.py627except ImportError:CODE
HIGHsyft/sync/syftbox_manager.py1224except Exception:CODE
HIGHsyft/sync/sync/caches/datasite_watcher_cache.py412except ValueError:CODE
Excessive Try-Catch Wrapping167 hits · 163 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_sync_file_lock.py60 except Exception as e:CODE
LOW⚡tests/unit/test_watcher_event_datasite_check.py52 except Exception:CODE
LOWscripts/reproduce_stale_socket.py143 except Exception as e:CODE
LOWscripts/reproduce_delete_issue.py55 except Exception as e:CODE
LOWscripts/investigate_approve.py59 except Exception as e: # noqa: BLE001CODE
LOWscripts/investigate_approve.py345 except Exception:CODE
LOWscripts/verify_dataset_before_peer_accept.py60 except Exception as e: # noqa: BLE001CODE
LOWscripts/investigate_do_sync.py50 except Exception as e: # noqa: BLE001CODE
LOWscripts/investigate_do_sync.py249 except Exception:CODE
LOWscripts/auto_approve_jobs.py75 except Exception as exc:STRING
LOWscripts/auto_approve_peers_and_share.py92 except Exception as e:CODE
MEDIUMscripts/auto_approve_peers_and_share.py93 print(f"Error during polling: {e}")CODE
LOW…s/syft-notebook-ui/src/syft_notebook_ui/table_utils.py128 except Exception:CODE
LOW…notebook-ui/src/syft_notebook_ui/pydantic_html_repr.py82 except Exception as e:CODE
LOWpackages/syft-notebook-ui/src/syft_notebook_ui/utils.py43 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/install_source.py79 except Exception:CODE
LOWpackages/syft-job/src/syft_job/runner_main.py94 except Exception as e:STRING
LOWpackages/syft-job/src/syft_job/client.py731 except Exception as e:STRING
LOWpackages/syft-job/src/syft_job/client.py777 except Exception:STRING
LOWpackages/syft-job/src/syft_job/job_repr.py73 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py102 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py372 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py388 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py406 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py428 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_stdout.py79 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_stdout.py109 except Exception as e:CODE
LOW⚡packages/syft-job/src/syft_job/job_runner.py159 except Exception as e:CODE
LOW⚡packages/syft-job/src/syft_job/job_runner.py172 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py227 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py233 except Exception as recovery_error:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py526 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py632 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py807 except Exception as e:CODE
LOWpackages/syft-bg/src/syft_bg/auth.py29 except Exception as e:CODE
LOWpackages/syft-bg/src/syft_bg/notify/heartbeat.py65 except Exception:CODE
MEDIUMpackages/syft-bg/src/syft_bg/notify/heartbeat.py52def _send_one(self) -> None:CODE
LOWpackages/syft-bg/src/syft_bg/notify/monitors/job.py42 except Exception as e:CODE
LOWpackages/syft-bg/src/syft_bg/notify/monitors/job.py109 except Exception:CODE
LOWpackages/syft-bg/src/syft_bg/notify/monitors/job.py115 except Exception as e:CODE
LOW…syft-bg/src/syft_bg/notify/email_templates/renderer.py39 except Exception:CODE
LOW…syft-bg/src/syft_bg/notify/email_templates/renderer.py48 except Exception:CODE
LOWpackages/syft-bg/src/syft_bg/notify/handlers/job.py40 except Exception as e:CODE
LOWpackages/syft-bg/src/syft_bg/notify/gmail/auth.py59 except Exception as e:CODE
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py92 except Exception:CODE
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py130 except Exception:CODE
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py177 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py208 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py238 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py269 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py300 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py328 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py355 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py382 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py413 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py446 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py480 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py524 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/notify/gmail/sender.py558 except Exception:STRING
LOWpackages/syft-bg/src/syft_bg/tui/app.py137 except Exception:CODE
107 more matches not shown…
Self-Referential Comments30 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/unit/test_mock_drive_service.py195 # Create a fileCOMMENT
MEDIUM⚡tests/unit/test_mock_drive_service.py257 # Create a fileCOMMENT
MEDIUM⚡tests/unit/test_mock_drive_service.py267 # Create a folderCOMMENT
MEDIUM⚡tests/unit/test_mock_drive_service.py345 # Create a fileCOMMENT
MEDIUMtests/unit/test_mock_drive_service.py300 # Create a fileCOMMENT
MEDIUMtests/unit/test_cache_aware_sync.py46 # Create a NEW SyftboxManager with the same cache directory (simulating restart)COMMENT
MEDIUMtests/unit/test_cache_aware_sync.py123 # Create a NEW SyftboxManager with the same cache directory (simulating restart)COMMENT
MEDIUMtests/unit/test_cache_aware_sync.py155 # Create a fileCOMMENT
MEDIUMtests/unit/test_cache_aware_sync.py209 # Create a file on DO sideCOMMENT
MEDIUMtests/unit/test_rolling_state.py20 # Create a rolling stateCOMMENT
MEDIUMtests/unit/test_sync_manager.py407 # Create a regular file (should be synced)COMMENT
MEDIUMtests/unit/test_sync_manager.py412 # Create a collection file (should NOT be synced via outbox)COMMENT
MEDIUMtests/unit/test_sync_manager.py479 # Create a regular file (non-job) that should go to all peersCOMMENT
MEDIUM…ntegration/with_unit_coverage/test_cache_aware_sync.py89 # Create a NEW DO manager with the same cache directory (simulating restart)COMMENT
MEDIUM…ntegration/with_unit_coverage/test_cache_aware_sync.py188 # Create a NEW DS manager with the same cache directory (simulating restart)COMMENT
MEDIUMbenchmarks/benchmark_rolling_state.py163 # Create a fresh DO manager to simulate initial sync from a new loginCOMMENT
MEDIUMbenchmarks/benchmark_initial_do_sync.py84 # Create a fresh DO manager to simulate initial sync from a new pairSTRING
MEDIUMpackages/syft-notebook-ui/src/syft_notebook_ui/utils.py25 # Create a Tree objectCOMMENT
MEDIUMpackages/syft-rds/tests/test_job_auto_approval.py66 # Create a project folder with script and data fileSTRING
MEDIUMpackages/syft-rds/tests/test_sync_manager.py452 # Create a folder without pyproject.tomlSTRING
MEDIUMpackages/syft-rds/tests/test_sync_manager.py465 # Create a helper moduleSTRING
MEDIUMpackages/syft-rds/tests/test_sync_manager.py524 # Create a folder with pyproject.tomlSTRING
MEDIUMpackages/syft-rds/tests/test_sync_manager.py1206 # Create a dataset with "any" permissionSTRING
MEDIUMpackages/syft-rds/src/syft_rds/client.py682 # Create the dataset locally: the current layout, plus one layoutCOMMENT
MEDIUMpackages/syft-enclave/terraform/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUMpackages/syft-perms/tests/test_syft_perm.py34 # Create a yaml before initCOMMENT
MEDIUM⚡syft/sync/connections/drive/gdrive_transport.py1978 # Create the folderCOMMENT
MEDIUMsyft/sync/connections/drive/gdrive_transport.py2286 # Create the folderCOMMENT
MEDIUMsyft/sync/reprs/peer_repr.py20 # Create main tableCOMMENT
MEDIUMsyft/sync/sync/datasite_owner_syncer.py1123 # Create a FileChangeEvent from CheckpointFileCOMMENT
Fake / Example Data78 hits · 84 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_gdrive_pagination.py11 conn = GDriveConnection(email="test@test.com", verbose=False)CODE
LOW⚡tests/unit/test_mock_drive_service.py72 filter_func = parse_gdrive_query("", "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py77 filter_func = parse_gdrive_query("name='test.txt'", "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py82 filter_func = parse_gdrive_query("name contains 'test'", "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py88 f"mimeType='{GOOGLE_FOLDER_MIME_TYPE}'", "user@example.com"CODE
LOW⚡tests/unit/test_mock_drive_service.py99 filter_func = parse_gdrive_query("'parent123' in parents", "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py106 filter_func = parse_gdrive_query("'me' in owners", "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py110 name="test.txt", owners=[{"emailAddress": "user@example.com"}]CODE
LOW⚡tests/unit/test_mock_drive_service.py165 filter_func = parse_gdrive_query("trashed=false", "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py172 "user@example.com",CODE
LOW⚡tests/unit/test_mock_drive_service.py176 owners=[{"emailAddress": "user@example.com"}],CODE
LOW⚡tests/unit/test_mock_drive_service.py181 owners=[{"emailAddress": "user@example.com"}],CODE
LOW⚡tests/unit/test_mock_drive_service.py193 service = MockDriveService(store, "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py255 service = MockDriveService(store, "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py327 service = MockDriveService(store, "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py333 owners=[{"emailAddress": "user@example.com"}],CODE
LOW⚡tests/unit/test_mock_drive_service.py343 service = MockDriveService(store, "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py439 mock_service = MockDriveService(store, "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py441 connection = GDriveConnection.from_service("user@example.com", mock_service)CODE
LOW⚡tests/unit/test_mock_drive_service.py443 assert connection.email == "user@example.com"CODE
LOW⚡tests/unit/test_mock_drive_service.py448 mock_service = MockDriveService(store, "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py449 connection = GDriveConnection.from_service("user@example.com", mock_service)CODE
LOW⚡tests/unit/test_mock_drive_service.py461 owners=[{"emailAddress": "user@example.com"}],CODE
LOW⚡tests/unit/test_mock_drive_service.py465 mock_service = MockDriveService(store, "user@example.com")CODE
LOW⚡tests/unit/test_mock_drive_service.py466 connection = GDriveConnection.from_service("user@example.com", mock_service)CODE
LOWtests/unit/test_mock_drive_service.py27 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py125 filter_func = parse_gdrive_query("not 'me' in owners", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py137 name="test.txt", owners=[{"emailAddress": "user@example.com"}]CODE
LOWtests/unit/test_mock_drive_service.py145 "'owner@example.com' in owners", "user@example.com"CODE
LOWtests/unit/test_mock_drive_service.py224 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py298 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_rolling_state.py206 email="test@test.com",CODE
LOWtests/unit/test_rolling_state.py233 email="test@test.com",CODE
LOW⚡tests/unit/syft_bg/test_common.py73 state.mark_approved("job1", "user@example.com")CODE
LOW⚡tests/integration/without_unit_coverage/test_login.py183 email="test@test.com",CODE
LOW⚡tests/integration/without_unit_coverage/test_login.py197 email="test@test.com",CODE
LOW⚡…ook-ui/src/syft_notebook_ui/assets/js/tabulator.min.js2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
LOW⚡packages/syft-rds/tests/test_datasets_jobs_repr.py177 current_user_email="test@test.com",CODE
LOW⚡packages/syft-rds/tests/test_datasets_jobs_repr.py185 root_email="test@test.com",CODE
LOW⚡packages/syft-rds/tests/test_datasets_jobs_repr.py194 root_email="test@test.com",CODE
LOW⚡packages/syft-rds/tests/test_datasets_jobs_repr.py202 root_email="test@test.com",CODE
LOW⚡packages/syft-rds/tests/test_datasets_jobs_repr.py292 root_email="test@test.com",CODE
LOW⚡packages/syft-rds/tests/test_datasets_jobs_repr.py295 jobs["test@test.com"]["analysis"]CODE
LOW⚡packages/syft-rds/tests/test_datasets_jobs_repr.py297 job = jobs["test@test.com"]["ds2@test.com"]["analysis"]CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py143 owner_email: str = "test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py155 syftbox_folder=Path("/tmp/fake"), current_user_email="test@test.com"CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py220 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py337 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py399 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py416 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py439 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py467 root_email="test@test.com",CODE
LOW⚡…t-enclave/tests/test_attestation_confidential_space.py80 "fake-token",CODE
LOW⚡…t-enclave/tests/test_attestation_confidential_space.py91 verify_attestation_token("fake-token", policy=UNPINNED, verbose=False)CODE
LOW⚡…t-enclave/tests/test_attestation_confidential_space.py96 verify_attestation_token("fake-token", policy=UNPINNED, verbose=False)CODE
LOW⚡…t-enclave/tests/test_attestation_confidential_space.py104 verify_attestation_token("fake-token", policy=UNPINNED, verbose=False)CODE
LOW⚡…t-enclave/tests/test_attestation_confidential_space.py111 verify_attestation_token("fake-token", policy=UNPINNED, verbose=False)CODE
LOW⚡…t-enclave/tests/test_attestation_confidential_space.py116 verify_attestation_token("fake-token", policy=UNPINNED, verbose=False)CODE
LOW⚡…t-enclave/tests/test_attestation_confidential_space.py122 verify_attestation_token("fake-token", policy=UNPINNED, verbose=False)CODE
LOW⚡…t-enclave/tests/test_attestation_confidential_space.py128 verify_attestation_token("fake-token", policy=UNPINNED, verbose=False)CODE
18 more matches not shown…
Modern Structural Boilerplate77 hits · 77 pts
SeverityFileLineSnippetContext
LOW…ges/syft-notebook-ui/src/syft_notebook_ui/tabulator.py19logger = logging.getLogger(__name__)CODE
LOWpackages/syft-job/src/syft_job/job_storage.py26logger = logging.getLogger(__name__)CODE
LOWpackages/syft-job/src/syft_job/job_storage.py28__all__ = ["JobRef", "JobStateNotFoundError", "JobStorage"]CODE
LOWpackages/syft-job/src/syft_job/install_source.py16logger = logging.getLogger(__name__)CODE
LOWpackages/syft-job/src/syft_job/__init__.py17__all__ = [CODE
LOWpackages/syft-job/src/syft_job/job_runner.py62logger = logging.getLogger(__name__)CODE
LOW…kages/syft-job/src/syft_job/protocolcodecs/__init__.py10__all__ = [CODE
LOWpackages/syft-job/src/syft_job/models/__init__.py4__all__ = [CODE
LOW…ges/syft-job/src/syft_job/models/job_state/__init__.py6__all__ = [CODE
LOW…rc/syft_job/models/job_submission_metadata/__init__.py6__all__ = [CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py27__all__ = [CODE
LOWpackages/syft-bg/src/syft_bg/notify/__init__.py6__all__ = ["NotifyConfig", "NotificationOrchestrator"]CODE
LOW…ckages/syft-bg/src/syft_bg/notify/monitors/__init__.py6__all__ = ["JobMonitor", "PeerMonitor"]CODE
LOW…syft-bg/src/syft_bg/notify/email_templates/__init__.py5__all__ = ["TemplateRenderer"]CODE
LOW…ckages/syft-bg/src/syft_bg/notify/handlers/__init__.py6__all__ = ["JobHandler", "PeerHandler"]CODE
LOWpackages/syft-bg/src/syft_bg/notify/gmail/__init__.py6__all__ = ["GmailAuth", "GmailSender"]CODE
LOWpackages/syft-bg/src/syft_bg/tui/__init__.py5__all__ = ["SyftBgApp", "run_tui"]CODE
LOWpackages/syft-bg/src/syft_bg/tui/screens/__init__.py5__all__ = ["LogScreen"]CODE
LOWpackages/syft-bg/src/syft_bg/tui/widgets/__init__.py6__all__ = ["ServiceCard", "ActivityFeed"]CODE
LOWpackages/syft-bg/src/syft_bg/systemd/__init__.py5__all__ = ["install_service", "is_installed", "uninstall_service"]CODE
LOWpackages/syft-bg/src/syft_bg/cli/__init__.py3__all__ = ["main"]CODE
LOWpackages/syft-bg/src/syft_bg/cli/init/__init__.py6__all__ = ["InitFlowError", "UserPassedConfig", "run_init_flow"]CODE
LOWpackages/syft-bg/src/syft_bg/approve/__init__.py12__all__ = [CODE
LOW…kages/syft-bg/src/syft_bg/approve/monitors/__init__.py6__all__ = ["JobMonitor", "PeerMonitor"]CODE
LOW…kages/syft-bg/src/syft_bg/approve/handlers/__init__.py6__all__ = ["JobApprovalHandler", "PeerApprovalHandler"]CODE
LOWpackages/syft-bg/src/syft_bg/common/__init__.py9__all__ = [CODE
LOWpackages/syft-bg/src/syft_bg/common/syft_bg_config.py86 def set_service_config(self, name: str, config: dict) -> None:CODE
LOWpackages/syft-bg/src/syft_bg/common/state.py155 def set_data(self, key: str, value: Any) -> None:CODE
LOWpackages/syft-bg/src/syft_bg/email_approve/__init__.py5__all__ = ["EmailApproveOrchestrator"]CODE
LOWpackages/syft-bg/src/syft_bg/sync/__init__.py7__all__ = [CODE
LOWpackages/syft-bg/src/syft_bg/services/__init__.py5__all__ = ["Service", "ServiceStatus", "ServiceManager", "SERVICE_REGISTRY"]CODE
LOWpackages/syft-rds/src/syft_rds/client.py39logger = logging.getLogger(__name__)CODE
LOWpackages/syft-rds/src/syft_rds/__init__.py18__all__ = [CODE
LOWpackages/syft-rds/src/syft_rds/apis/__init__.py8__all__ = ["Api", "ApiArg", "ApiCollection", "ApiDefinition", "FileEntry", "infer_args"]CODE
LOWpackages/syft-rds/src/syft_rds/apis/collection.py16logger = logging.getLogger(__name__)CODE
LOWpackages/syft-restrict/src/syft_restrict/runner.py18__all__ = ["run", "RunResult"]CODE
LOWpackages/syft-restrict/src/syft_restrict/__init__.py19__all__ = [CODE
LOWpackages/syft-restrict/src/syft_restrict/markers.py29__all__ = ["parse_markers"]CODE
LOW⚡packages/syft-enclave/src/syft_enclaves/bootstrap.py37logger = logging.getLogger(__name__)CODE
LOWpackages/syft-enclave/src/syft_enclaves/runner.py33logger = logging.getLogger(__name__)CODE
LOWpackages/syft-enclave/src/syft_enclaves/client.py69logger = logging.getLogger(__name__)CODE
LOWpackages/syft-enclave/src/syft_enclaves/__init__.py7__all__ = [CODE
LOWpackages/syft-enclave/src/syft_enclaves/immutability.py5logger = logging.getLogger(__name__)CODE
LOWpackages/syft-enclave/src/syft_enclaves/__main__.py18logger = logging.getLogger(__name__)CODE
LOW…es/syft-enclave/src/syft_enclaves/evidence/__init__.py23logger = logging.getLogger(__name__)CODE
LOW…/syft-enclave/src/syft_enclaves/evidence/key_bundle.py23logger = logging.getLogger(__name__)CODE
LOW…ges/syft-enclave/src/syft_enclaves/receipt/__init__.py12__all__ = [CODE
LOW…kages/syft-enclave/src/syft_enclaves/receipt/writer.py35logger = logging.getLogger(__name__)CODE
LOW…syft-enclave/src/syft_enclaves/attestation/__init__.py44__all__ = [CODE
LOW…ave-model-api-example/src/enclave_model_api/service.py17logger = logging.getLogger(__name__)CODE
LOW…ve-model-api-example/src/enclave_model_api/__main__.py21logger = logging.getLogger(__name__)CODE
LOW…ages/syft-permissions/src/syft_permissions/__init__.py7__all__ = [CODE
LOWpackages/syft-perms/src/syft_perms/__init__.py8__all__ = [CODE
LOWpackages/syft-migration/src/syft_migration/__init__.py14__all__ = [CODE
LOW…ges/syft-datasets/src/syft_datasets/dataset_storage.py31logger = logging.getLogger(__name__)CODE
LOW…ges/syft-datasets/src/syft_datasets/dataset_storage.py33__all__ = [CODE
LOWpackages/syft-datasets/src/syft_datasets/__init__.py15__all__ = [CODE
LOW…-datasets/src/syft_datasets/protocolcodecs/__init__.py28__all__ = [CODE
LOW…ges/syft-datasets/src/syft_datasets/models/__init__.py4__all__ = [CODE
LOW…yft_datasets/models/private_dataset_config/__init__.py6__all__ = [CODE
17 more matches not shown…
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHpackages/syft-job/src/syft_job/job.py467 Accept a job by depositing the result file or folder and marking as done. Args: path: PathSTRING
HIGHpackages/syft-job/src/syft_job/client.py161 Submit a bash job for a user. Args: user: Email address of the datasite owner to submit joSTRING
HIGHpackages/syft-job/src/syft_job/client.py307 Validate code path and entrypoint for Python job submission. Args: code_path: Path to PythSTRING
HIGHpackages/syft-job/src/syft_job/client.py448 Submit a Python job for a user (supports both files and folders). Args: user: Email addresSTRING
HIGHpackages/syft-rds/src/syft_rds/job_auto_approval.py134 Check if a job matches all the auto-approval criteria. Paths are relative to the job submission root, so code STRING
HIGHsyft/utils.py191 Resolve syft:// paths to absolute filesystem paths. This function converts syft:// URLs to actual filesystem pSTRING
HIGHsyft/utils.py651 Generate a comprehensive environment snapshot for bug reports. This function collects information about the ruSTRING
HIGHsyft/sync/connections/drive/gdrive_retry.py75Execute a Google Drive API request with retry on transient errors. Uses exponential backoff with jitter. Args:STRING
HIGHsyft/sync/connections/drive/gdrive_retry.py124Execute next_chunk() on a downloader with retry on transient errors. Args: downloader: A MediaIoBaseDownloaSTRING
Deep Nesting49 hits · 44 pts
SeverityFileLineSnippetContext
LOWscripts/auto_approve_peers_and_share.py24CODE
LOW…s/syft-notebook-ui/src/syft_notebook_ui/table_utils.py72CODE
LOW…notebook-ui/src/syft_notebook_ui/pydantic_html_repr.py19CODE
LOWpackages/syft-notebook-ui/src/syft_notebook_ui/utils.py23CODE
LOW…ft-notebook-ui/src/syft_notebook_ui/formatter_mixin.py35CODE
LOWpackages/syft-job/src/syft_job/job.py305CODE
LOWpackages/syft-job/src/syft_job/client.py697CODE
LOWpackages/syft-job/src/syft_job/job_repr.py352CODE
LOWpackages/syft-job/src/syft_job/job_repr.py88CODE
LOWpackages/syft-job/src/syft_job/job_stdout.py94CODE
LOWpackages/syft-job/src/syft_job/job_runner.py140CODE
LOWpackages/syft-job/src/syft_job/job_runner.py258CODE
LOWpackages/syft-job/src/syft_job/job_runner.py578CODE
LOWpackages/syft-job/src/syft_job/protocolcodecs/v1.py47CODE
LOWpackages/syft-bg/src/syft_bg/tui/app.py73CODE
LOWpackages/syft-bg/src/syft_bg/approve/handlers/job.py97CODE
LOWpackages/syft-bg/src/syft_bg/approve/handlers/peer.py60CODE
LOWpackages/syft-bg/src/syft_bg/common/monitor.py23CODE
LOWpackages/syft-bg/src/syft_bg/common/orchestrator.py102CODE
LOWpackages/syft-bg/src/syft_bg/common/syft_bg_config.py56CODE
LOW…kages/syft-bg/src/syft_bg/email_approve/gmail_watch.py62CODE
LOWpackages/syft-bg/src/syft_bg/api/utils.py61CODE
LOWpackages/syft-bg/src/syft_bg/api/utils.py285CODE
LOWpackages/syft-rds/src/syft_rds/client.py327CODE
LOWpackages/syft-rds/src/syft_rds/client.py652CODE
LOWpackages/syft-rds/src/syft_rds/job_auto_approval.py192CODE
LOWpackages/syft-restrict/src/syft_restrict/obfuscator.py89CODE
LOWpackages/syft-restrict/src/syft_restrict/obfuscator.py150CODE
LOWpackages/syft-restrict/src/syft_restrict/astutil.py115CODE
LOWpackages/syft-restrict/src/syft_restrict/verifier.py377CODE
LOWpackages/syft-restrict/src/syft_restrict/verifier.py925CODE
LOWpackages/syft-restrict/src/syft_restrict/verifier.py1072CODE
LOW…ges/syft-enclave/src/syft_enclaves/enclave_job_info.py199CODE
LOW…clave-model-api-example/tests/test_inference_server.py228CODE
LOWpackages/syft-datasets/src/syft_datasets/file_utils.py18CODE
LOWsyft/utils.py405CODE
LOWsyft/sync/syftbox_manager.py956CODE
LOWsyft/sync/checkpoints/checkpoint.py207CODE
LOWsyft/sync/connections/drive/gdrive_retry.py47CODE
LOWsyft/sync/connections/drive/gdrive_transport.py998CODE
LOWsyft/sync/connections/drive/mock_drive_service.py136CODE
LOWsyft/sync/peers/peer_list.py37CODE
LOWsyft/sync/sync/datasite_owner_syncer.py194CODE
LOWsyft/sync/sync/datasite_owner_syncer.py668CODE
LOWsyft/sync/sync/datasite_owner_syncer.py1084CODE
LOWsyft/sync/sync/caches/cache_file_writer_connection.py132CODE
LOWsyft/sync/sync/caches/datasite_owner_cache.py122CODE
LOWsyft/sync/sync/caches/datasite_watcher_cache.py134CODE
LOWsyft/sync/sync/caches/datasite_watcher_cache.py183CODE
Hallucination Indicators3 hits · 40 pts
SeverityFileLineSnippetContext
CRITICAL⚡…ook-ui/src/syft_notebook_ui/assets/js/tabulator.min.js2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
CRITICAL⚡…ckages/syft-enclave/tests/test_attestation_dispatch.py210 client._rds.peer_manager.peer_store.set_peer_bundle.assert_not_called()CODE
CRITICAL…ckages/syft-enclave/tests/test_attestation_dispatch.py223 client._rds.peer_manager.peer_store.set_peer_bundle.assert_called_once_with(CODE
Structural Annotation Overuse20 hits · 39 pts
SeverityFileLineSnippetContext
LOW⚡tests/unit/test_peer_requests.py27 # Step 1: DS makes peer request by adding DOCOMMENT
LOW⚡tests/unit/test_peer_requests.py36 # Step 2: DS submits a file to their job folderCOMMENT
LOW⚡tests/unit/test_peer_requests.py41 # Step 3: DO syncs WITHOUT accepting - nothing should syncCOMMENT
LOW⚡tests/unit/test_peer_requests.py48 # Step 4: DO approves peer requestCOMMENT
LOW⚡tests/unit/test_peer_requests.py57 # Step 5: DO syncs again - now it should workCOMMENT
LOW⚡tests/unit/test_checkpoints.py247 # Step 1: Create initial files and make a full checkpointCOMMENT
LOW⚡tests/unit/test_checkpoints.py257 # Step 2: Create new files and make incremental checkpointsCOMMENT
LOWtests/unit/test_checkpoints.py278 # Step 3: Manually call compact_checkpointsCOMMENT
LOW…integration/without_unit_coverage/test_sync_manager.py59 # Step 1: DS makes peer request by adding DOCOMMENT
LOW⚡…integration/without_unit_coverage/test_sync_manager.py71 # Step 2: DS submits a simple jobCOMMENT
LOW⚡…integration/without_unit_coverage/test_sync_manager.py79 # Step 3: DO syncs WITHOUT accepting - nothing should syncCOMMENT
LOW⚡…integration/without_unit_coverage/test_sync_manager.py86 # Step 4: DO approves peer requestCOMMENT
LOW⚡…integration/without_unit_coverage/test_sync_manager.py94 # Step 5: DO syncs again - now it should workCOMMENT
LOW⚡docs/auth.md11## Step 1: Create a Google Cloud ProjectCOMMENT
LOW⚡docs/auth.md20## Step 2: Enable the APIsCOMMENT
LOW⚡docs/auth.md29## Step 3: Configure OAuth Consent ScreenCOMMENT
LOWdocs/auth.md56## Step 4: Create OAuth Client CredentialsCOMMENT
LOWdocs/auth.md66## Step 5: Publish the AppCOMMENT
LOW⚡scripts/reproduce_delete_issue.py9 # Step 1: Create data and delete syftboxes, then inspect local + GDrive stateSTRING
LOW⚡scripts/reproduce_delete_issue.py12 # Step 2: Query GDrive API for leftover filesSTRING
Overly Generic Function Names22 hits · 30 pts
SeverityFileLineSnippetContext
LOWtests/unit/utils.py170def process_data(data):STRING
LOWtests/integration/syft_bg/conftest.py30 utils.write_text("def helper(): pass\n")CODE
LOWpackages/syft-rds/tests/test_job_auto_approval.py299 (subdir / "helper.py").write_text("def helper(): pass\n")CODE
LOWpackages/syft-rds/tests/dataset_test_utils.py109def process_data(data):STRING
LOW⚡packages/syft-restrict/tests/verify/test_disallowed.py299 def helper():CODE
LOW⚡packages/syft-restrict/tests/verify/test_disallowed.py331 def helper(d, x):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py449 def helper(self):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py460 def helper(x, self):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py485 def helper(x, secret_sink):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py499 def helper(x, secret_sink):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py514 def helper(x):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py525 def helper(x):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py536 def helper(x):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py546 def helper(x):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py549 def helper(y):CODE
LOW⚡packages/syft-restrict/tests/verify/test_bypasses.py560 def helper(x):CODE
LOW⚡packages/syft-restrict/tests/verify/test_whitelist.py33 def helper(n):CODE
LOW⚡packages/syft-restrict/tests/verify/test_whitelist.py44 def helper(n):CODE
LOW⚡packages/syft-restrict/tests/verify/test_whitelist.py62 def helper():CODE
LOW⚡packages/syft-restrict/tests/verify/test_whitelist.py101 def helper():CODE
LOW⚡packages/syft-restrict/tests/verify/test_whitelist.py115 def helper(x):CODE
LOW⚡packages/syft-restrict/tests/verify/test_whitelist.py129 def helper(x):CODE
Verbosity Indicators15 hits · 29 pts
SeverityFileLineSnippetContext
LOW⚡tests/unit/test_peer_requests.py27 # Step 1: DS makes peer request by adding DOCOMMENT
LOW⚡tests/unit/test_peer_requests.py36 # Step 2: DS submits a file to their job folderCOMMENT
LOW⚡tests/unit/test_peer_requests.py41 # Step 3: DO syncs WITHOUT accepting - nothing should syncCOMMENT
LOW⚡tests/unit/test_peer_requests.py48 # Step 4: DO approves peer requestCOMMENT
LOW⚡tests/unit/test_peer_requests.py57 # Step 5: DO syncs again - now it should workCOMMENT
LOW⚡tests/unit/test_checkpoints.py247 # Step 1: Create initial files and make a full checkpointCOMMENT
LOW⚡tests/unit/test_checkpoints.py257 # Step 2: Create new files and make incremental checkpointsCOMMENT
LOWtests/unit/test_checkpoints.py278 # Step 3: Manually call compact_checkpointsCOMMENT
LOW…integration/without_unit_coverage/test_sync_manager.py59 # Step 1: DS makes peer request by adding DOCOMMENT
LOW⚡…integration/without_unit_coverage/test_sync_manager.py71 # Step 2: DS submits a simple jobCOMMENT
LOW⚡…integration/without_unit_coverage/test_sync_manager.py79 # Step 3: DO syncs WITHOUT accepting - nothing should syncCOMMENT
LOW⚡…integration/without_unit_coverage/test_sync_manager.py86 # Step 4: DO approves peer requestCOMMENT
LOW⚡…integration/without_unit_coverage/test_sync_manager.py94 # Step 5: DO syncs again - now it should workCOMMENT
LOW⚡scripts/reproduce_delete_issue.py9 # Step 1: Create data and delete syftboxes, then inspect local + GDrive stateSTRING
LOW⚡scripts/reproduce_delete_issue.py12 # Step 2: Query GDrive API for leftover filesSTRING
Over-Commented Block27 hits · 27 pts
SeverityFileLineSnippetContext
LOWnotification_config.minimal.yaml1# ============================================================================COMMENT
LOW.claude/skills/syft-pr-review/prefetch.sh1#!/usr/bin/env bashCOMMENT
LOWpackages/syft-bg/src/syft_bg/cli/init/flow.py121# user_passed_config: UserPassedConfig,COMMENT
LOWpackages/syft-bg/src/syft_bg/cli/init/flow.py141# "Colab detected - Drive and Gmail authentication handled by Colab"COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py541COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py561# """COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py581# gmail_ok = gmail_out_token_path.exists()COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py601# save_gcp_project_id(creds_path)COMMENT
LOWpackages/syft-restrict/examples/gemma_inference.py41# num_kv_heads=1,COMMENT
LOWpackages/syft-restrict/examples/gemma_inference.py61# num_layers=48,COMMENT
LOW…kages/syft-restrict/examples/gemma_inference_ranges.py41# num_kv_heads=1,COMMENT
LOW…kages/syft-restrict/examples/gemma_inference_ranges.py61# num_layers=48,COMMENT
LOW…s/syft-restrict/examples/gemma_inference.obfuscated.py41# THIS COMMENT WAS OBFUSCATEDCOMMENT
LOW…s/syft-restrict/examples/gemma_inference.obfuscated.py61# THIS COMMENT WAS OBFUSCATEDCOMMENT
LOW…restrict/examples/gemma_inference_ranges.obfuscated.py41# THIS COMMENT WAS OBFUSCATEDCOMMENT
LOW…restrict/examples/gemma_inference_ranges.obfuscated.py61# THIS COMMENT WAS OBFUSCATEDCOMMENT
LOWpackages/syft-enclave/docker/attestation_server.py101 "status": "running_in_tee",COMMENT
LOW…kages/syft-enclave/tinfoil/tinfoil-config-receipts.yml1# Tinfoil workload config for the syft enclave, with signed receipts on.COMMENT
LOW…kages/syft-enclave/tinfoil/tinfoil-config-receipts.yml41 # tempfile.gettempdir() at import time and raises without one.COMMENT
LOW…kages/syft-enclave/tinfoil/tinfoil-config-receipts.yml61 - SYFT_ENCLAVE_DATA_OWNERS: 'benchmark_owner@openmined.org,model_owner@openmined.org'COMMENT
LOW…kages/syft-enclave/tinfoil/tinfoil-config-receipts.yml101# network". The canonical schema only reserves "shim-net", so this passesCOMMENT
LOWpackages/syft-enclave/tinfoil/tinfoil-config.yml1# Tinfoil workload config for the syft enclave.COMMENT
LOWpackages/syft-enclave/tinfoil/tinfoil-config.yml21# Keys Tinfoil makes inside the enclave at boot; the private half never leavesCOMMENT
LOWpackages/syft-enclave/tinfoil/tinfoil-config.yml41 # Writable here means the CVM's ramdisk, which SEV-SNP encrypts inCOMMENT
LOWpackages/syft-enclave/tinfoil/tinfoil-config.yml61 # differs between tinfoil-config.yml and tinfoil-config-receipts.yml.COMMENT
LOWpackages/syft-enclave/tinfoil/tinfoil-config.yml101networks:COMMENT
LOW…ages/enclave-model-api-example/docker/requirements.txt1# Model deps for the inference image only — kept out of this package's depsCOMMENT
Redundant / Tautological Comments14 hits · 21 pts
SeverityFileLineSnippetContext
LOWbenchmarks/benchmark_rolling_state.py193 # Print resultsCOMMENT
LOW…notebook-ui/src/syft_notebook_ui/pydantic_html_repr.py51 # Check if field existsCOMMENT
LOWpackages/syft-job/src/syft_job/job_runner.py147 # Check if run.sh exists and show first few linesCOMMENT
LOW⚡packages/syft-job/src/syft_job/job_runner.py162 # Check if config.yaml exists and show contentsCOMMENT
LOWsyft/utils.py227 # Check if path starts with syft://COMMENT
LOWsyft/sync/utils/syftbox_utils.py39 # Check if content is a string (has encode method)COMMENT
LOWsyft/sync/connections/drive/gdrive_transport.py1609 # Check if existsCOMMENT
LOWsyft/sync/connections/drive/gdrive_transport.py2425 # Check if file already existsCOMMENT
LOWsyft/sync/connections/drive/mock_drive_service.py282 # Check if user is the owner (owners always have access)COMMENT
LOWsyft/sync/connections/drive/mock_drive_service.py542 # Check if user has permission to deleteCOMMENT
LOWsyft/sync/sync/caches/datasite_watcher_cache.py441 # Check if hash changed - skip download if unchangedCOMMENT
LOWsyft/sync/sync/caches/datasite_watcher_cache.py456 # Write files to local cache (path relative to syftbox_folder)COMMENT
LOWsyft/sync/sync/caches/datasite_watcher_cache.py497 # Check if hash changed - skip download if unchangedCOMMENT
LOWsyft/sync/sync/caches/datasite_watcher_cache.py531 # Write files to local cache (path relative to syftbox_folder)COMMENT
AI Structural Patterns13 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/integration/utils.py59CODE
LOWpackages/syft-restrict/src/syft_restrict/runner.py82CODE
LOWpackages/syft-enclave/tests/test_attestation_tinfoil.py175CODE
LOWsyft/sync/syftbox_manager.py132CODE
LOWsyft/sync/syftbox_manager.py213CODE
LOWsyft/sync/syftbox_manager.py298CODE
LOWsyft/sync/syftbox_manager.py373CODE
LOWsyft/sync/syftbox_manager.py635CODE
LOWsyft/sync/syftbox_manager.py667CODE
LOWsyft/sync/syftbox_manager.py756CODE
LOWsyft/sync/connections/connection_router.py450CODE
LOWsyft/sync/sync/datasite_watcher_syncer.py147CODE
LOWsyft/sync/sync/caches/cache_file_writer_connection.py191CODE
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM⚡…ook-ui/src/syft_notebook_ui/assets/js/tabulator.min.js2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
LOWpackages/syft-restrict/src/syft_restrict/verifier.py111 # f-strings: even with no interpolation, just use a plain string; with interpolation, everyCOMMENT
MEDIUMpackages/enclave-model-api-example/scripts/run_demo.py1"""Run the full enclave model-API demo end-to-end (robust, unattended).STRING
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/unit/test_sync_manager.py561 "mkdir -p code/outputs && echo done > code/outputs/result.txt\n"CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsyft/utils.py450 # Just detect if in container, not detailed cgroup/orchestration infoCOMMENT