Repository Analysis

OpenMined/PySyft

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

39.4 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of OpenMined/PySyft, a Python project with 9,974 GitHub stars. SynthScan v2.0 examined 74,117 lines of code across 518 source files, recording 2080 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 39.4 places this repository in the Strong AI signal 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).

39.4
Adjusted Score
39.4
Raw Score
100%
Time Factor
2026-08-28
Last Push
10.0K
Stars
Python
Language
74.1K
Lines of Code
518
Files
2.1K
Pattern Hits
2026-08-29
Scan Date
0.15
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 75MEDIUM 266LOW 1738

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2080 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1024 hits · 962 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
LOWtests/unit/test_gdrive_pagination.py120def test_extract_timestamp_from_event_filename():CODE
LOWtests/unit/test_gdrive_pagination.py128def test_extract_timestamp_from_job_filename():CODE
LOWtests/unit/test_gdrive_pagination.py136def test_extract_timestamp_returns_none_for_invalid():CODE
LOWtests/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
LOWtests/unit/test_install_source_advertise.py14def _clear_install_source_cache():CODE
LOWtests/unit/test_install_source_advertise.py24 def test_current_populates_install_source(self):CODE
LOWtests/unit/test_install_source_advertise.py30 def test_current_uses_env_var_override(self, monkeypatch):CODE
LOWtests/unit/test_install_source_advertise.py36 def test_json_roundtrip_preserves_install_source(self, monkeypatch):CODE
LOWtests/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
LOWtests/unit/test_version_negotiation.py53 def test_compatible_versions_match(self):CODE
LOWtests/unit/test_version_negotiation.py59 def test_minor_version_mismatch_is_incompatible(self):CODE
LOWtests/unit/test_version_negotiation.py64 def test_protocol_only_diff_is_compatible_now(self):CODE
LOWtests/unit/test_version_negotiation.py97 def test_minor_diff_is_incompatible(self):CODE
LOWtests/unit/test_version_negotiation.py102 def test_major_diff_is_incompatible(self):CODE
LOWtests/unit/test_version_negotiation.py107 def test_two_digit_minor_compares_numerically(self):CODE
LOWtests/unit/test_version_negotiation.py387 def test_ds_only_defaults_to_no_skip(self):CODE
LOWtests/unit/test_version_negotiation.py391 def test_dual_role_defaults_to_skip(self):CODE
LOWtests/unit/test_version_negotiation.py395 def test_explicit_false_on_do_is_preserved(self):CODE
LOWtests/unit/test_version_negotiation.py399 def test_explicit_true_on_ds_is_preserved(self):CODE
LOWtests/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_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_checkpoints.py23def test_checkpoint_create_and_restore():CODE
LOWtests/unit/test_checkpoints.py59def test_checkpoint_should_create():CODE
LOWtests/unit/test_checkpoints.py84def test_checkpoint_try_create():CODE
LOWtests/unit/test_checkpoints.py112def test_checkpoint_restore_on_sync():CODE
964 more matches not shown…
Decorative Section Separators225 hits · 694 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
MEDIUMtests/unit/test_encryption.py140# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py142# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py257# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py259# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py307# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py309# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py488# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py490# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py13# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py15# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py417# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py419# =========================================================================COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py92 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py99 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py106 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py119 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py131 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py139 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py146 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_dataset_before_peer_accept.py159 # ------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py56 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py58 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py100 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py102 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py181 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py183 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py352 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py354 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py386 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/job.py388 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/client.py138 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/client.py140 # ──────────────────────────────────────────────COMMENT
MEDIUMpackages/syft-job/src/syft_job/client.py482 # ──────────────────────────────────────────────STRING
MEDIUMpackages/syft-job/src/syft_job/client.py484 # ──────────────────────────────────────────────STRING
MEDIUMpackages/syft-job/src/syft_job/client.py556 # ──────────────────────────────────────────────STRING
MEDIUMpackages/syft-job/src/syft_job/client.py558 # ──────────────────────────────────────────────STRING
MEDIUMpackages/syft-bg/src/syft_bg/api/api.py103# ---------------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-bg/src/syft_bg/api/api.py105# ---------------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-bg/src/syft_bg/api/api.py179# ---------------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-bg/src/syft_bg/api/api.py181# ---------------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-bg/src/syft_bg/api/api.py270# ---------------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-bg/src/syft_bg/api/api.py272# ---------------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-bg/src/syft_bg/api/api.py306# ---------------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-bg/src/syft_bg/api/api.py308# ---------------------------------------------------------------------------COMMENT
MEDIUMpackages/syft-restrict/tests/verify/test_disallowed.py12# ── banned node types / constructs ───────────────────────────────────────────COMMENT
MEDIUMpackages/syft-restrict/tests/verify/test_disallowed.py83# ── banned names (any Load reference) ────────────────────────────────────────STRING
165 more matches not shown…
Cross-File Repetition67 hits · 335 pts
SeverityFileLineSnippetContext
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…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
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.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…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
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…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
HIGHtests/unit/test_sync_manager.py0return the correct path for ds to submit a job file to do.STRING
HIGH…ts/integration/with_unit_coverage/test_sync_manager.py0return the correct path for ds to submit a job file to do.STRING
HIGHpackages/syft-rds/tests/test_sync_manager.py0return the correct path for ds to submit a job file to do.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0gemma 3 it — flax inference module standalone inference engine for gemma 3 instruction-tuned models using flax. module hSTRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0gemma 3 it — flax inference module standalone inference engine for gemma 3 instruction-tuned models using flax. module hSTRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0gemma 3 it — flax inference module standalone inference engine for gemma 3 instruction-tuned models using flax. module hSTRING
HIGH…restrict/examples/gemma_inference_ranges.obfuscated.py0gemma 3 it — flax inference module standalone inference engine for gemma 3 instruction-tuned models using flax. module hSTRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference.py0gemma 3 it — flax inference module standalone inference engine for gemma 3 instruction-tuned models using flax. module hSTRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0causal masks — local layers also clip to a sliding window.STRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0causal masks — local layers also clip to a sliding window.STRING
HIGH…lave/gemma/colab-3-persona/gemma_inference_restrict.py0causal masks — local layers also clip to a sliding window.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference_restrict.py0causal masks — local layers also clip to a sliding window.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference.py0causal masks — local layers also clip to a sliding window.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0public wrapper: append to a python list (a named method on a value).STRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0public wrapper: append to a python list (a named method on a value).STRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0public wrapper: append to a python list (a named method on a value).STRING
HIGH…restrict/examples/gemma_inference_ranges.obfuscated.py0public wrapper: append to a python list (a named method on a value).STRING
HIGH…lave/gemma/colab-3-persona/gemma_inference_restrict.py0public wrapper: append to a python list (a named method on a value).STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference_restrict.py0public wrapper: append to a python list (a named method on a value).STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGH…restrict/examples/gemma_inference_ranges.obfuscated.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGH…lave/gemma/colab-3-persona/gemma_inference_restrict.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference_restrict.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0temperature-scaled top-k sampling. greedy when temperature=0.STRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0temperature-scaled top-k sampling. greedy when temperature=0.STRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0temperature-scaled top-k sampling. greedy when temperature=0.STRING
HIGH…restrict/examples/gemma_inference_ranges.obfuscated.py0temperature-scaled top-k sampling. greedy when temperature=0.STRING
HIGH…lave/gemma/colab-3-persona/gemma_inference_restrict.py0temperature-scaled top-k sampling. greedy when temperature=0.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference_restrict.py0temperature-scaled top-k sampling. greedy when temperature=0.STRING
HIGHnotebooks/enclave/gemma/dev/gemma_inference.py0temperature-scaled top-k sampling. greedy when temperature=0.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0autoregressive generation with kv cache and chat template. returns (response_text, stats_dict).STRING
HIGH…kages/syft-restrict/examples/gemma_inference_ranges.py0autoregressive generation with kv cache and chat template. returns (response_text, stats_dict).STRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0autoregressive generation with kv cache and chat template. returns (response_text, stats_dict).STRING
7 more matches not shown…
Unused Imports275 hits · 274 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_install_source_advertise.py3CODE
LOWscripts/check_token.py3CODE
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.py17CODE
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.py7CODE
LOWpackages/syft-job/src/syft_job/__init__.py2CODE
LOWpackages/syft-job/src/syft_job/__init__.py4CODE
LOWpackages/syft-job/src/syft_job/__init__.py4CODE
LOWpackages/syft-job/src/syft_job/__init__.py4CODE
LOWpackages/syft-job/src/syft_job/__init__.py5CODE
LOWpackages/syft-job/src/syft_job/__init__.py6CODE
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__.py10CODE
LOWpackages/syft-job/src/syft_job/__init__.py10CODE
LOWpackages/syft-job/src/syft_job/__init__.py10CODE
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__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py3CODE
LOWpackages/syft-bg/src/syft_bg/__init__.py23CODE
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
LOW…syft-bg/src/syft_bg/notify/email_templates/__init__.py3CODE
LOW…ckages/syft-bg/src/syft_bg/notify/handlers/__init__.py3CODE
LOW…ckages/syft-bg/src/syft_bg/notify/handlers/__init__.py4CODE
215 more matches not shown…
Excessive Try-Catch Wrapping161 hits · 160 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_sync_file_lock.py60 except Exception as e: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.py57 except Exception: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/job.py123 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job.py177 except Exception:CODE
LOWpackages/syft-job/src/syft_job/runner_main.py94 except Exception as e:STRING
LOWpackages/syft-job/src/syft_job/client.py594 except Exception as e:STRING
LOWpackages/syft-job/src/syft_job/client.py635 except Exception:STRING
LOWpackages/syft-job/src/syft_job/job_repr.py72 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py101 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py371 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py387 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py405 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_repr.py427 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
LOWpackages/syft-job/src/syft_job/job_runner.py122 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py135 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py190 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py196 except Exception as recovery_error:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py440 except Exception as e:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py493 except Exception:CODE
LOWpackages/syft-job/src/syft_job/job_runner.py620 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.py39 except Exception as e:CODE
LOWpackages/syft-bg/src/syft_bg/notify/handlers/job.py86 except Exception: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
101 more matches not shown…
Self-Referential Comments30 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_mock_drive_service.py195 # Create a fileCOMMENT
MEDIUMtests/unit/test_mock_drive_service.py257 # Create a fileCOMMENT
MEDIUMtests/unit/test_mock_drive_service.py267 # Create a folderCOMMENT
MEDIUMtests/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.py19 # 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
MEDIUMtests/unit/syft_bg/conftest.py20 # Create a stored copy for content matchingCOMMENT
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.py63 # Create a project folder with script and data fileSTRING
MEDIUMpackages/syft-rds/tests/test_sync_manager.py437 # Create a folder without pyproject.tomlSTRING
MEDIUMpackages/syft-rds/tests/test_sync_manager.py450 # Create a helper moduleSTRING
MEDIUMpackages/syft-rds/tests/test_sync_manager.py509 # Create a folder with pyproject.tomlSTRING
MEDIUMpackages/syft-rds/tests/test_sync_manager.py1190 # Create a dataset with "any" permissionSTRING
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
MEDIUMsyft/sync/connections/drive/gdrive_transport.py1857 # Create the folderCOMMENT
MEDIUMsyft/sync/connections/drive/gdrive_transport.py2163 # Create the folderCOMMENT
MEDIUMsyft/sync/reprs/peer_repr.py20 # Create main tableCOMMENT
MEDIUMsyft/sync/sync/datasite_owner_syncer.py1009 # Create a FileChangeEvent from CheckpointFileCOMMENT
Fake / Example Data65 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_gdrive_pagination.py11 conn = GDriveConnection(email="test@test.com", verbose=False)CODE
LOWtests/unit/test_mock_drive_service.py72 filter_func = parse_gdrive_query("", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py77 filter_func = parse_gdrive_query("name='test.txt'", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py82 filter_func = parse_gdrive_query("name contains 'test'", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py88 f"mimeType='{GOOGLE_FOLDER_MIME_TYPE}'", "user@example.com"CODE
LOWtests/unit/test_mock_drive_service.py99 filter_func = parse_gdrive_query("'parent123' in parents", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py106 filter_func = parse_gdrive_query("'me' in owners", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py110 name="test.txt", owners=[{"emailAddress": "user@example.com"}]CODE
LOWtests/unit/test_mock_drive_service.py165 filter_func = parse_gdrive_query("trashed=false", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py172 "user@example.com",CODE
LOWtests/unit/test_mock_drive_service.py176 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py181 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py193 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py255 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py327 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py333 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py343 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py439 mock_service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py441 connection = GDriveConnection.from_service("user@example.com", mock_service)CODE
LOWtests/unit/test_mock_drive_service.py443 assert connection.email == "user@example.com"CODE
LOWtests/unit/test_mock_drive_service.py448 mock_service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py449 connection = GDriveConnection.from_service("user@example.com", mock_service)CODE
LOWtests/unit/test_mock_drive_service.py461 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py465 mock_service = MockDriveService(store, "user@example.com")CODE
LOWtests/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.py205 email="test@test.com",CODE
LOWtests/unit/test_rolling_state.py232 email="test@test.com",CODE
LOWtests/unit/syft_bg/test_common.py73 state.mark_approved("job1", "user@example.com")CODE
LOWtests/integration/without_unit_coverage/test_login.py183 email="test@test.com",CODE
LOWtests/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
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py161 datasite_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py170 current_user_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py178 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py187 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py195 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py204 root_email="test@test.com",CODE
LOWpackages/syft-rds/tests/test_datasets_jobs_repr.py148 syftbox_folder=Path("/tmp/fake"), current_user_email="test@test.com"CODE
LOWpackages/syft-enclave/tests/test_attestation.py62 "fake-token", policy=DEFAULT_TEST_POLICY, verbose=FalseCODE
LOWpackages/syft-enclave/tests/test_attestation.py71 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py76 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py84 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py91 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py96 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py102 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py108 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py113 result = verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py121 result = verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py128 verify_attestation_token("fake-token", policy=policy, verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py134 "fake-token", policy=AppraisalPolicy(), verbose=FalseCODE
LOWpackages/syft-enclave/tests/test_attestation.py148 "fake-token", policy=DEFAULT_TEST_POLICY, verbose=FalseCODE
LOWpackages/syft-enclave/tests/test_attestation.py153 "fake-token", policy=DEFAULT_TEST_POLICY, verbose=FalseCODE
LOWpackages/syft-enclave/tests/test_attestation.py162 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py173 verify_attestation_token("fake-token", verbose=False)CODE
5 more matches not shown…
Modern Structural Boilerplate63 hits · 64 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.py18__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__.py16__all__ = [CODE
LOWpackages/syft-job/src/syft_job/job_runner.py445 def _set_finalized_job_state(self, ref: JobRef, returncode: int) -> None: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__.py25__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.py25logger = logging.getLogger(__name__)CODE
LOWpackages/syft-rds/src/syft_rds/__init__.py16__all__ = [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
LOWpackages/syft-enclave/src/syft_enclaves/bootstrap.py32logger = logging.getLogger(__name__)CODE
LOWpackages/syft-enclave/src/syft_enclaves/runner.py26logger = logging.getLogger(__name__)CODE
LOWpackages/syft-enclave/src/syft_enclaves/__init__.py6__all__ = [CODE
LOWpackages/syft-enclave/src/syft_enclaves/immutability.py5logger = logging.getLogger(__name__)CODE
LOWpackages/syft-enclave/src/syft_enclaves/__main__.py16logger = logging.getLogger(__name__)CODE
LOW…ave-model-api-example/src/enclave_model_api/service.py16logger = 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.py30__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
LOW…-datasets/src/syft_datasets/models/dataset/__init__.py6__all__ = [CODE
LOWsyft/sync/syftbox_manager.py60logger = logging.getLogger(__name__)CODE
LOWsyft/sync/syftbox_manager.py542 def _set_peer_store(self, peer_store) -> None:CODE
LOWsyft/sync/callback_mixin.py5logger = logging.getLogger(__name__)CODE
LOWsyft/sync/checkpoints/__init__.py11__all__ = [CODE
LOWsyft/sync/connections/drive/gdrive_retry.py14logger = logging.getLogger(__name__)CODE
LOWsyft/sync/version/peer_manager.py33logger = logging.getLogger(__name__)CODE
LOWsyft/sync/version/__init__.py17__all__ = [CODE
LOWsyft/sync/peers/__init__.py3__all__ = ["PeerStore"]CODE
LOWsyft/sync/peers/peer_store.py105 def set_peer(self, peer: Peer) -> None:CODE
3 more matches not shown…
Structural Annotation Overuse25 hits · 46 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_peer_requests.py27 # Step 1: DS makes peer request by adding DOCOMMENT
LOWtests/unit/test_peer_requests.py36 # Step 2: DS submits a file to their job folderCOMMENT
LOWtests/unit/test_peer_requests.py41 # Step 3: DO syncs WITHOUT accepting - nothing should syncCOMMENT
LOWtests/unit/test_peer_requests.py48 # Step 4: DO approves peer requestCOMMENT
LOWtests/unit/test_peer_requests.py57 # Step 5: DO syncs again - now it should workCOMMENT
LOWtests/unit/test_checkpoints.py245 # Step 1: Create initial files and make a full checkpointCOMMENT
LOWtests/unit/test_checkpoints.py255 # Step 2: Create new files and make incremental checkpointsCOMMENT
LOWtests/unit/test_checkpoints.py276 # 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
LOWdocs/auth.md9## Step 1: Create a Google Cloud ProjectCOMMENT
LOWdocs/auth.md18## Step 2: Enable the API'sCOMMENT
LOWdocs/auth.md27## Step 3: Configure OAuth Consent ScreenCOMMENT
LOWdocs/auth.md54## Step 4: Create OAuth Client CredentialsCOMMENT
LOWdocs/auth.md64## Step 5: Publish the AppCOMMENT
LOWscripts/reproduce_delete_issue.py9 # Step 1: Create data and delete syftboxes, then inspect local + GDrive stateSTRING
LOWscripts/reproduce_delete_issue.py12 # Step 2: Query GDrive API for leftover filesSTRING
LOWsyft/sync/sync/datasite_owner_syncer.py214 # Step 1: Check for full (compacted) checkpointCOMMENT
LOWsyft/sync/sync/datasite_owner_syncer.py226 # Step 2: Check for incremental checkpointsCOMMENT
LOWsyft/sync/sync/datasite_owner_syncer.py242 # Step 3: Check for rolling stateCOMMENT
LOWsyft/sync/sync/datasite_owner_syncer.py268 # Step 4: Download any remaining events since last timestampCOMMENT
LOWsyft/sync/sync/datasite_owner_syncer.py293 # Step 5: Ensure events from checkpoints/rolling state are inCOMMENT
Deep Nesting51 hits · 46 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.py159CODE
LOWpackages/syft-job/src/syft_job/job.py434CODE
LOWpackages/syft-job/src/syft_job/client.py560CODE
LOWpackages/syft-job/src/syft_job/job_repr.py351CODE
LOWpackages/syft-job/src/syft_job/job_repr.py87CODE
LOWpackages/syft-job/src/syft_job/job_stdout.py94CODE
LOWpackages/syft-job/src/syft_job/job_runner.py103CODE
LOWpackages/syft-job/src/syft_job/job_runner.py221CODE
LOWpackages/syft-job/src/syft_job/job_runner.py361CODE
LOWpackages/syft-job/src/syft_job/job_runner.py452CODE
LOWpackages/syft-job/src/syft_job/protocolcodecs/v1.py42CODE
LOWpackages/syft-bg/src/syft_bg/notify/handlers/job.py63CODE
LOWpackages/syft-bg/src/syft_bg/tui/app.py73CODE
LOWpackages/syft-bg/src/syft_bg/cli/commands.py408CODE
LOWpackages/syft-bg/src/syft_bg/approve/handlers/job.py87CODE
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.py46CODE
LOWpackages/syft-bg/src/syft_bg/api/utils.py226CODE
LOWpackages/syft-rds/src/syft_rds/job_auto_approval.py145CODE
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
LOWpackages/syft-datasets/src/syft_datasets/file_utils.py18CODE
LOWsyft/utils.py405CODE
LOWsyft/sync/syftbox_manager.py897CODE
LOWsyft/sync/checkpoints/checkpoint.py186CODE
LOWsyft/sync/connections/drive/gdrive_retry.py47CODE
LOWsyft/sync/connections/drive/gdrive_transport.py883CODE
LOWsyft/sync/connections/drive/mock_drive_service.py136CODE
LOWsyft/sync/version/peer_manager.py523CODE
LOWsyft/sync/peers/peer_list.py37CODE
LOWsyft/sync/sync/datasite_owner_syncer.py149CODE
LOWsyft/sync/sync/datasite_owner_syncer.py200CODE
LOWsyft/sync/sync/datasite_owner_syncer.py580CODE
LOWsyft/sync/sync/datasite_owner_syncer.py971CODE
LOWsyft/sync/sync/caches/cache_file_writer_connection.py132CODE
LOWsyft/sync/sync/caches/datasite_owner_cache.py114CODE
LOWsyft/sync/sync/caches/datasite_watcher_cache.py100CODE
LOWsyft/sync/sync/caches/datasite_watcher_cache.py149CODE
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHpackages/syft-job/src/syft_job/job.py260 Accept a job by depositing the result file or folder and marking as done. Args: path: PathSTRING
HIGHpackages/syft-job/src/syft_job/client.py143 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.py240 Validate code path and entrypoint for Python job submission. Args: code_path: Path to PythSTRING
HIGHpackages/syft-job/src/syft_job/client.py380 Submit a Python job for a user (supports both files and folders). Args: user: Email addresSTRING
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
Verbosity Indicators20 hits · 37 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_peer_requests.py27 # Step 1: DS makes peer request by adding DOCOMMENT
LOWtests/unit/test_peer_requests.py36 # Step 2: DS submits a file to their job folderCOMMENT
LOWtests/unit/test_peer_requests.py41 # Step 3: DO syncs WITHOUT accepting - nothing should syncCOMMENT
LOWtests/unit/test_peer_requests.py48 # Step 4: DO approves peer requestCOMMENT
LOWtests/unit/test_peer_requests.py57 # Step 5: DO syncs again - now it should workCOMMENT
LOWtests/unit/test_checkpoints.py245 # Step 1: Create initial files and make a full checkpointCOMMENT
LOWtests/unit/test_checkpoints.py255 # Step 2: Create new files and make incremental checkpointsCOMMENT
LOWtests/unit/test_checkpoints.py276 # 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
LOWscripts/reproduce_delete_issue.py9 # Step 1: Create data and delete syftboxes, then inspect local + GDrive stateSTRING
LOWscripts/reproduce_delete_issue.py12 # Step 2: Query GDrive API for leftover filesSTRING
LOWsyft/sync/sync/datasite_owner_syncer.py214 # Step 1: Check for full (compacted) checkpointCOMMENT
LOWsyft/sync/sync/datasite_owner_syncer.py226 # Step 2: Check for incremental checkpointsCOMMENT
LOWsyft/sync/sync/datasite_owner_syncer.py242 # Step 3: Check for rolling stateCOMMENT
LOWsyft/sync/sync/datasite_owner_syncer.py268 # Step 4: Download any remaining events since last timestampCOMMENT
LOWsyft/sync/sync/datasite_owner_syncer.py293 # Step 5: Ensure events from checkpoints/rolling state are inCOMMENT
Overly Generic Function Names22 hits · 30 pts
SeverityFileLineSnippetContext
LOWtests/unit/utils.py161def 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.py257 (subdir / "helper.py").write_text("def helper(): pass\n")CODE
LOWpackages/syft-rds/tests/dataset_test_utils.py109def process_data(data):STRING
LOWpackages/syft-restrict/tests/verify/test_disallowed.py299 def helper():CODE
LOWpackages/syft-restrict/tests/verify/test_disallowed.py331 def helper(d, x):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py449 def helper(self):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py460 def helper(x, self):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py485 def helper(x, secret_sink):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py499 def helper(x, secret_sink):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py514 def helper(x):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py525 def helper(x):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py536 def helper(x):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py546 def helper(x):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py549 def helper(y):CODE
LOWpackages/syft-restrict/tests/verify/test_bypasses.py560 def helper(x):CODE
LOWpackages/syft-restrict/tests/verify/test_whitelist.py33 def helper(n):CODE
LOWpackages/syft-restrict/tests/verify/test_whitelist.py44 def helper(n):CODE
LOWpackages/syft-restrict/tests/verify/test_whitelist.py62 def helper():CODE
LOWpackages/syft-restrict/tests/verify/test_whitelist.py101 def helper():CODE
LOWpackages/syft-restrict/tests/verify/test_whitelist.py115 def helper(x):CODE
LOWpackages/syft-restrict/tests/verify/test_whitelist.py129 def helper(x):CODE
Redundant / Tautological Comments14 hits · 20 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.py110 # Check if run.sh exists and show first few linesCOMMENT
LOWpackages/syft-job/src/syft_job/job_runner.py125 # 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.py1502 # Check if existsCOMMENT
LOWsyft/sync/connections/drive/gdrive_transport.py2296 # 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.py340 # Check if hash changed - skip download if unchangedCOMMENT
LOWsyft/sync/sync/caches/datasite_watcher_cache.py355 # Write files to local cache (path relative to syftbox_folder)COMMENT
LOWsyft/sync/sync/caches/datasite_watcher_cache.py396 # Check if hash changed - skip download if unchangedCOMMENT
LOWsyft/sync/sync/caches/datasite_watcher_cache.py427 # Write files to local cache (path relative to syftbox_folder)COMMENT
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippetContext
LOWnotification_config.minimal.yaml1# ============================================================================COMMENT
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.py341COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py361# creds_dir = get_syftbg_dir()COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py381# drive_ok = drive_out_token_path.exists() or colabCOMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py401COMMENT
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
LOW…ages/enclave-model-api-example/docker/requirements.txt1# Model deps for the inference image only — kept out of this package's depsCOMMENT
Hallucination Indicators1 hit · 15 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
AI Structural Patterns9 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/integration/utils.py59CODE
LOWpackages/syft-restrict/src/syft_restrict/runner.py82CODE
LOWsyft/sync/syftbox_manager.py187CODE
LOWsyft/sync/syftbox_manager.py267CODE
LOWsyft/sync/syftbox_manager.py615CODE
LOWsyft/sync/syftbox_manager.py701CODE
LOWsyft/sync/connections/connection_router.py375CODE
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
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsyft/utils.py450 # Just detect if in container, not detailed cgroup/orchestration infoCOMMENT