Repository Analysis

OpenMined/PySyft

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

37.3 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of OpenMined/PySyft, a Python project with 9,925 GitHub stars. SynthScan v2.0 examined 64,177 lines of code across 467 source files, recording 1752 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 37.3 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).

37.3
Adjusted Score
37.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
9.9K
Stars
Python
Language
64.2K
Lines of Code
467
Files
1.8K
Pattern Hits
2026-07-14
Scan Date
0.08
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 38MEDIUM 193LOW 1520

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 1752 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 Identifiers885 hits · 880 pts
SeverityFileLineSnippetContext
LOWsyft_client/utils.py22def resolve_dataset_file_path(*args, **kwargs):CODE
LOWsyft_client/utils.py26def get_syftbox_folder_if_not_passed(CODE
LOWsyft_client/utils.py109def resolve_dataset_files_path(CODE
LOWsyft_client/utils.py480def _get_package_manager_info() -> dict[str, Any]:CODE
LOWsyft_client/utils.py508def _get_project_config_files() -> list[str]:CODE
LOWsyft_client/job_auto_approval.py145def auto_approve_and_run_jobs(CODE
LOWsyft_client/sync/login_utils.py28def _delete_remote_unversioned_state(CODE
LOWsyft_client/sync/login_utils.py39def _handle_version_incompatible(CODE
LOWsyft_client/sync/login_utils.py75def handle_potential_version_mismatches_on_login(CODE
LOWsyft_client/sync/syftbox_manager.py1270 def _upload_dataset_to_collection(self, dataset, users: list[str] | str) -> str:CODE
LOWsyft_client/sync/syftbox_manager.py78def get_jupyter_default_syftbox_folder(email: str):CODE
LOWsyft_client/sync/syftbox_manager.py82def get_colab_default_syftbox_folder(email: str):CODE
LOWsyft_client/sync/syftbox_manager.py332 def for_google_drive_testing_connection(CODE
LOWsyft_client/sync/syftbox_manager.py631 def _pair_with_google_drive_testing_connection(CODE
LOWsyft_client/sync/syftbox_manager.py714 def pair_with_mock_drive_service_connection(CODE
LOWsyft_client/sync/syftbox_manager.py810 def _init_encrypted_peer_store(self) -> None:CODE
LOWsyft_client/sync/syftbox_manager.py1000 def _check_peer_request_exists(self, email: str) -> bool:CODE
LOWsyft_client/sync/syftbox_manager.py1027 def _sync_peer_install_sources_to_job_client(self) -> None:CODE
LOWsyft_client/sync/syftbox_manager.py1041 def _ensure_local_peer_permissions(self) -> None:CODE
LOWsyft_client/sync/syftbox_manager.py1053 def _share_any_datasets_with_peer(self, peer_email: str):CODE
LOWsyft_client/sync/syftbox_manager.py1166 def _get_all_accepted_events_do(self) -> List[FileChangeEvent]:CODE
LOWsyft_client/sync/syftbox_manager.py1235 def _cleanup_failed_dataset_creation(CODE
LOWsyft_client/sync/syftbox_manager.py1325 def _upload_private_dataset_to_collection(self, dataset) -> str | None:CODE
LOWsyft_client/sync/syftbox_manager.py1488 def reset_all_connection_caches(self):CODE
LOWsyft_client/sync/syftbox_manager.py1649 def compact_outboxes_if_needed(CODE
LOWsyft_client/sync/syftbox_manager.py1710 def _resolve_dataset_owners_for_name(self, dataset_name: str) -> str | None:CODE
LOWsyft_client/sync/login.py15def _verify_token_matches_email(client: SyftboxManager) -> None:CODE
LOWsyft_client/sync/checkpoints/checkpoint.py77 def from_file_hashes_and_contents(CODE
LOWsyft_client/sync/checkpoints/checkpoint.py161 def filename_to_sequence_number(cls, filename: str) -> int | None:CODE
LOWsyft_client/sync/checkpoints/checkpoint.py186def compact_incremental_checkpoints(CODE
LOWsyft_client/sync/utils/pre_submit_scan.py86def _print_client_kwarg_warning() -> None:CODE
LOWsyft_client/sync/utils/pre_submit_scan.py97def _print_dataset_files_warning() -> None:CODE
LOWsyft_client/sync/utils/print_utils.py32def print_peer_adding_to_platform(peer_email: str, platform_str: str):CODE
LOWsyft_client/sync/utils/print_utils.py36def print_peer_added_to_platform(peer_email: str, platform_str: str):CODE
LOWsyft_client/sync/utils/print_utils.py48def print_peer_request_sending(peer_email: str) -> None:CODE
LOWsyft_client/sync/utils/print_utils.py52def print_peer_request_resending(peer_email: str) -> None:CODE
LOWsyft_client/sync/utils/print_utils.py56def print_peer_request_accepting(peer_email: str) -> None:CODE
LOWsyft_client/sync/utils/print_utils.py66def print_peer_connection_established(peer_email: str) -> None:CODE
LOWsyft_client/sync/utils/print_utils.py71def print_peer_already_connected(peer_email: str, state: str) -> None:CODE
LOWsyft_client/sync/utils/syftbox_utils.py38def get_event_hash_from_content(content: str | bytes) -> str:CODE
LOWsyft_client/sync/utils/syftbox_utils.py58def random_syftbox_folder_for_testing():CODE
LOWsyft_client/sync/utils/syftbox_utils.py82def _get_default_syftbox_path(email: str) -> Path:CODE
LOWsyft_client/sync/utils/syftbox_utils.py127def _delete_local_syftbox_dirs(local_syftbox_path: Path, verbose: bool = True) -> None:CODE
LOWsyft_client/sync/connections/base_connection.py26 def watcher_send_proposed_file_changes_message(CODE
LOWsyft_client/sync/connections/base_connection.py35 def owner_create_dataset_collection_folder(CODE
LOWsyft_client/sync/connections/base_connection.py40 def owner_tag_dataset_collection_as_any(self, tag: str, content_hash: str) -> None:CODE
LOWsyft_client/sync/connections/base_connection.py43 def owner_share_dataset_collection(CODE
LOWsyft_client/sync/connections/base_connection.py48 def owner_upload_dataset_files(CODE
LOWsyft_client/sync/connections/base_connection.py53 def owner_list_dataset_collections(self) -> list[str]:CODE
LOWsyft_client/sync/connections/base_connection.py56 def owner_list_all_dataset_collections_with_permissions(CODE
LOWsyft_client/sync/connections/base_connection.py62 def watcher_list_dataset_collections(self) -> list[dict]:CODE
LOWsyft_client/sync/connections/base_connection.py66 def watcher_download_dataset_collection(CODE
LOWsyft_client/sync/connections/base_connection.py71 def owner_create_private_dataset_collection_folder(CODE
LOWsyft_client/sync/connections/base_connection.py76 def owner_upload_private_dataset_files(CODE
LOWsyft_client/sync/connections/base_connection.py81 def owner_list_private_dataset_collections(self) -> list[FileCollection]:CODE
LOWsyft_client/sync/connections/base_connection.py84 def owner_get_private_collection_file_metadatas(CODE
LOWsyft_client/sync/connections/base_connection.py93 def watcher_send_raw_bytes_to_inbox(CODE
LOWsyft_client/sync/connections/base_connection.py98 def owner_download_next_raw_proposed_message_from_inbox(CODE
LOWsyft_client/sync/connections/base_connection.py104 def owner_write_raw_bytes_to_outbox(CODE
LOWsyft_client/sync/connections/base_connection.py109 def watcher_download_raw_events_from_outbox(CODE
825 more matches not shown…
Decorative Section Separators152 hits · 521 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
MEDIUMsyft_client/utils.py245# =============================================================================COMMENT
MEDIUMsyft_client/utils.py247# =============================================================================COMMENT
MEDIUMsyft_client/sync/syftbox_manager.py1624 # =========================================================================COMMENT
MEDIUMsyft_client/sync/syftbox_manager.py1626 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/base_connection.py89 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/base_connection.py91 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/base_connection.py114 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/base_connection.py116 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py80 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py82 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py143 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py145 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py174 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py176 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py241 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py243 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py260 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py262 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py404 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py406 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py488 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py490 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py529 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py531 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py444 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/connection_router.py446 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py1743 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py1745 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py1950 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py1952 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py2067 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py2069 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py2245 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py2247 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py2385 # =========================================================================COMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py2387 # =========================================================================COMMENT
MEDIUMsyft_client/sync/sync/datasite_owner_syncer.py419 # =========================================================================COMMENT
MEDIUMsyft_client/sync/sync/datasite_owner_syncer.py421 # =========================================================================COMMENT
MEDIUMsyft_client/sync/sync/datasite_owner_syncer.py819 # =========================================================================COMMENT
MEDIUMsyft_client/sync/sync/datasite_owner_syncer.py821 # =========================================================================COMMENT
MEDIUMsyft_client/sync/sync/datasite_owner_syncer.py878 # =========================================================================COMMENT
MEDIUMsyft_client/sync/sync/datasite_owner_syncer.py880 # =========================================================================COMMENT
MEDIUMsyft_client/sync/sync/caches/datasite_owner_cache.py359 # =========================================================================COMMENT
MEDIUMsyft_client/sync/sync/caches/datasite_owner_cache.py361 # =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py140# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py142# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py251# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py253# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py301# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py303# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py476# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py478# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py13# =========================================================================COMMENT
MEDIUMtests/unit/test_encryption.py15# =========================================================================COMMENT
92 more matches not shown…
Unused Imports237 hits · 236 pts
SeverityFileLineSnippetContext
LOWsyft_client/__init__.py20CODE
LOWsyft_client/__init__.py21CODE
LOWsyft_client/__init__.py21CODE
LOWsyft_client/__init__.py21CODE
LOWsyft_client/__init__.py22CODE
LOWsyft_client/__init__.py22CODE
LOWsyft_client/__init__.py22CODE
LOWsyft_client/__init__.py22CODE
LOWsyft_client/__init__.py22CODE
LOWsyft_client/__init__.py29CODE
LOWsyft_client/__init__.py29CODE
LOWsyft_client/__init__.py29CODE
LOWsyft_client/__init__.py34CODE
LOWsyft_client/__init__.py34CODE
LOWsyft_client/utils.py1CODE
LOWsyft_client/utils.py19CODE
LOWsyft_client/utils.py340CODE
LOWsyft_client/job_auto_approval.py5CODE
LOWsyft_client/sync/checkpoints/checkpoint.py240CODE
LOWsyft_client/sync/checkpoints/checkpoint.py24CODE
LOWsyft_client/sync/checkpoints/__init__.py1CODE
LOWsyft_client/sync/checkpoints/__init__.py1CODE
LOWsyft_client/sync/checkpoints/__init__.py1CODE
LOWsyft_client/sync/checkpoints/__init__.py6CODE
LOWsyft_client/sync/checkpoints/__init__.py6CODE
LOWsyft_client/sync/utils/pre_submit_scan.py1CODE
LOWsyft_client/sync/utils/print_utils.py9CODE
LOWsyft_client/sync/utils/syftbox_utils.py20CODE
LOWsyft_client/sync/connections/connection_router.py24CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py58CODE
LOWsyft_client/sync/version/version_info.py5CODE
LOWsyft_client/sync/version/__init__.py8CODE
LOWsyft_client/sync/version/__init__.py9CODE
LOWsyft_client/sync/version/__init__.py9CODE
LOWsyft_client/sync/version/__init__.py9CODE
LOWsyft_client/sync/version/__init__.py9CODE
LOWsyft_client/sync/version/__init__.py9CODE
LOWsyft_client/sync/version/exceptions.py8CODE
LOWsyft_client/sync/peers/__init__.py1CODE
LOWtests/unit/test_install_source_advertise.py11CODE
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
177 more matches not shown…
Excessive Try-Catch Wrapping160 hits · 157 pts
SeverityFileLineSnippetContext
LOWsyft_client/gdrive_utils.py104 except Exception:CODE
LOWsyft_client/utils.py261 except Exception:CODE
LOWsyft_client/utils.py369 except Exception:CODE
LOWsyft_client/utils.py562 except Exception:CODE
LOWsyft_client/utils.py591 except Exception:CODE
LOWsyft_client/utils.py619 except Exception as e:CODE
LOWsyft_client/utils.py629 except Exception as e:CODE
LOWsyft_client/job_auto_approval.py35 except Exception:CODE
LOWsyft_client/job_auto_approval.py217 except Exception as e:CODE
LOWsyft_client/sync/syftbox_manager.py1246 except Exception:CODE
LOWsyft_client/sync/syftbox_manager.py1255 except Exception:CODE
LOWsyft_client/sync/syftbox_manager.py1264 except Exception:CODE
LOWsyft_client/sync/syftbox_manager.py471 except Exception:CODE
LOWsyft_client/sync/syftbox_manager.py1067 except Exception:CODE
LOWsyft_client/sync/syftbox_manager.py1225 except Exception:CODE
LOWsyft_client/sync/syftbox_manager.py1377 except Exception:CODE
LOWsyft_client/sync/syftbox_manager.py1381 except Exception:CODE
LOWsyft_client/sync/syftbox_manager.py1541 except Exception:CODE
LOWsyft_client/sync/messages/proposed_filechange.py92 except Exception:CODE
LOWsyft_client/sync/utils/pre_submit_scan.py46 except Exception:CODE
LOWsyft_client/sync/utils/syftbox_utils.py23 except Exception:CODE
LOWsyft_client/sync/connections/connection_router.py464 except Exception as e:CODE
LOWsyft_client/sync/connections/connection_router.py509 except Exception as e:CODE
LOWsyft_client/sync/connections/connection_router.py549 except Exception as e:CODE
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py1239 print(f"Error deleting file: {file_id}")CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py977 except Exception:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py991 except Exception:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py1638 except Exception:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2064 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2239 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2382 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py482 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py691 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py1234 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py1920 except Exception:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py1934 except Exception:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2031 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2111 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2176 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2299 except Exception:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2354 except Exception as e:CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py2455 except Exception:CODE
LOW…ft_client/sync/connections/drive/mock_drive_service.py840 except Exception as e:CODE
LOWsyft_client/sync/version/local_version.py23 except Exception:CODE
LOWsyft_client/sync/version/peer_manager.py257 except Exception as e:CODE
LOWsyft_client/sync/version/version_info.py111 except Exception as e:CODE
LOWsyft_client/sync/peers/peer_store.py84 except Exception:CODE
LOWsyft_client/sync/sync/datasite_owner_syncer.py128 except Exception:CODE
LOWsyft_client/sync/sync/datasite_owner_syncer.py535 except Exception:CODE
LOW…lient/sync/sync/caches/cache_file_writer_connection.py30 except Exception:CODE
LOWsyft_client/sync/sync/caches/datasite_watcher_cache.py107 except Exception:CODE
LOWsyft_client/sync/events/file_change_event.py52 except Exception as e:CODE
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
100 more matches not shown…
Cross-File Repetition30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHsyft_client/sync/connections/connection_router.py0share the version file with a peer so they can read it.STRING
HIGHsyft_client/sync/version/peer_manager.py0share the version file with a peer so they can read it.STRING
HIGHsyft_client/sync/connections/drive/gdrive_transport.py0share the version file with a peer so they can read it.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…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
HIGHnotebooks/enclave/gemma/gemma_inference.py0gemma 3 it — flax inference module standalone inference engine for gemma 3 instruction-tuned models using flax. module hSTRING
HIGHnotebooks/enclave/gemma/nbsplit/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
HIGHnotebooks/enclave/gemma/gemma_inference.py0causal masks — local layers also clip to a sliding window.STRING
HIGHnotebooks/enclave/gemma/nbsplit/gemma_inference.py0causal masks — local layers also clip to a sliding window.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.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
HIGHnotebooks/enclave/gemma/gemma_inference.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGHnotebooks/enclave/gemma/nbsplit/gemma_inference.py0load orbax checkpoint and return flax-compatible params dict.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.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
HIGHnotebooks/enclave/gemma/gemma_inference.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGHnotebooks/enclave/gemma/nbsplit/gemma_inference.py0configure model, load weights and tokenizer. returns (model, tokenizer, params).STRING
HIGHpackages/syft-restrict/examples/gemma_inference.py0load sentencepiece tokenizer from weights directory.STRING
HIGH…s/syft-restrict/examples/gemma_inference.obfuscated.py0load sentencepiece tokenizer from weights directory.STRING
HIGHnotebooks/enclave/gemma/gemma_inference.py0load sentencepiece tokenizer from weights directory.STRING
HIGHnotebooks/enclave/gemma/nbsplit/gemma_inference.py0load sentencepiece tokenizer from weights directory.STRING
HIGHpackages/syft-restrict/examples/gemma_inference.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
HIGHnotebooks/enclave/gemma/gemma_inference.py0temperature-scaled top-k sampling. greedy when temperature=0.STRING
HIGHnotebooks/enclave/gemma/nbsplit/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…s/syft-restrict/examples/gemma_inference.obfuscated.py0autoregressive generation with kv cache and chat template. returns (response_text, stats_dict).STRING
HIGHnotebooks/enclave/gemma/gemma_inference.py0autoregressive generation with kv cache and chat template. returns (response_text, stats_dict).STRING
HIGHnotebooks/enclave/gemma/nbsplit/gemma_inference.py0autoregressive generation with kv cache and chat template. returns (response_text, stats_dict).STRING
Self-Referential Comments30 hits · 88 pts
SeverityFileLineSnippetContext
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py1971 # Create the folderCOMMENT
MEDIUMsyft_client/sync/connections/drive/gdrive_transport.py2277 # Create the folderCOMMENT
MEDIUMsyft_client/sync/reprs/peer_repr.py20 # Create main tableCOMMENT
MEDIUMsyft_client/sync/sync/datasite_owner_syncer.py1042 # Create a FileChangeEvent from CheckpointFileCOMMENT
MEDIUMtests/unit/test_job_auto_approval.py58 # Create a project folder with script and data fileSTRING
MEDIUMtests/unit/test_mock_drive_service.py196 # Create a fileCOMMENT
MEDIUMtests/unit/test_mock_drive_service.py258 # Create a fileCOMMENT
MEDIUMtests/unit/test_mock_drive_service.py268 # Create a folderCOMMENT
MEDIUMtests/unit/test_mock_drive_service.py346 # Create a fileCOMMENT
MEDIUMtests/unit/test_mock_drive_service.py301 # Create a fileCOMMENT
MEDIUMtests/unit/test_cache_aware_sync.py40 # Create a NEW SyftboxManager with the same cache directory (simulating restart)COMMENT
MEDIUMtests/unit/test_cache_aware_sync.py117 # Create a NEW SyftboxManager with the same cache directory (simulating restart)COMMENT
MEDIUMtests/unit/test_cache_aware_sync.py149 # Create a fileCOMMENT
MEDIUMtests/unit/test_cache_aware_sync.py205 # Create a file on DO sideCOMMENT
MEDIUMtests/unit/test_rolling_state.py19 # Create a rolling stateCOMMENT
MEDIUMtests/unit/test_sync_manager.py1330 # Create a regular file (should be synced)COMMENT
MEDIUMtests/unit/test_sync_manager.py1335 # Create a dataset file (should NOT be synced via outbox)COMMENT
MEDIUMtests/unit/test_sync_manager.py1402 # Create a regular file (non-job) that should go to all peersCOMMENT
MEDIUMtests/unit/test_sync_manager.py1710 # Create a dataset with "any" permissionCOMMENT
MEDIUMtests/unit/test_sync_manager.py703 # Create a folder without pyproject.tomlSTRING
MEDIUMtests/unit/test_sync_manager.py716 # Create a helper moduleSTRING
MEDIUMtests/unit/test_sync_manager.py775 # Create a folder with pyproject.tomlSTRING
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-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
Fake / Example Data63 hits · 75 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_gdrive_pagination.py11 conn = GDriveConnection(email="test@test.com", verbose=False)CODE
LOWtests/unit/test_mock_drive_service.py73 filter_func = parse_gdrive_query("", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py78 filter_func = parse_gdrive_query("name='test.txt'", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py83 filter_func = parse_gdrive_query("name contains 'test'", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py89 f"mimeType='{GOOGLE_FOLDER_MIME_TYPE}'", "user@example.com"CODE
LOWtests/unit/test_mock_drive_service.py100 filter_func = parse_gdrive_query("'parent123' in parents", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py107 filter_func = parse_gdrive_query("'me' in owners", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py111 name="test.txt", owners=[{"emailAddress": "user@example.com"}]CODE
LOWtests/unit/test_mock_drive_service.py166 filter_func = parse_gdrive_query("trashed=false", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py173 "user@example.com",CODE
LOWtests/unit/test_mock_drive_service.py177 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py182 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py194 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py256 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py328 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py334 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py344 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py440 mock_service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py442 connection = GDriveConnection.from_service("user@example.com", mock_service)CODE
LOWtests/unit/test_mock_drive_service.py444 assert connection.email == "user@example.com"CODE
LOWtests/unit/test_mock_drive_service.py449 mock_service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py450 connection = GDriveConnection.from_service("user@example.com", mock_service)CODE
LOWtests/unit/test_mock_drive_service.py462 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py466 mock_service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py467 connection = GDriveConnection.from_service("user@example.com", mock_service)CODE
LOWtests/unit/test_mock_drive_service.py28 owners=[{"emailAddress": "user@example.com"}],CODE
LOWtests/unit/test_mock_drive_service.py126 filter_func = parse_gdrive_query("not 'me' in owners", "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py138 name="test.txt", owners=[{"emailAddress": "user@example.com"}]CODE
LOWtests/unit/test_mock_drive_service.py146 "'owner@example.com' in owners", "user@example.com"CODE
LOWtests/unit/test_mock_drive_service.py225 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_mock_drive_service.py299 service = MockDriveService(store, "user@example.com")CODE
LOWtests/unit/test_datasets_jobs_repr.py161 datasite_email="test@test.com",CODE
LOWtests/unit/test_datasets_jobs_repr.py170 current_user_email="test@test.com",CODE
LOWtests/unit/test_datasets_jobs_repr.py178 root_email="test@test.com",CODE
LOWtests/unit/test_datasets_jobs_repr.py187 root_email="test@test.com",CODE
LOWtests/unit/test_datasets_jobs_repr.py195 root_email="test@test.com",CODE
LOWtests/unit/test_datasets_jobs_repr.py204 root_email="test@test.com",CODE
LOWtests/unit/test_datasets_jobs_repr.py148 syftbox_folder=Path("/tmp/fake"), current_user_email="test@test.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.py145 email="test@test.com",CODE
LOWtests/integration/without_unit_coverage/test_login.py159 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-enclave/tests/test_attestation.py54 result = verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py62 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py67 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py74 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py79 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py85 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 result = verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py104 result = verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py115 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py119 result = verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py130 result = verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py138 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py149 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py169 verify_attestation_token("fake-token", verbose=False)CODE
LOWpackages/syft-enclave/tests/test_attestation.py184 verify_attestation_token("fake-token", verbose=False)CODE
3 more matches not shown…
Modern Structural Boilerplate54 hits · 54 pts
SeverityFileLineSnippetContext
LOWsyft_client/sync/syftbox_manager.py67logger = logging.getLogger(__name__)CODE
LOWsyft_client/sync/syftbox_manager.py558 def _set_peer_store(self, peer_store) -> None:CODE
LOWsyft_client/sync/checkpoints/__init__.py11__all__ = [CODE
LOWsyft_client/sync/connections/drive/gdrive_retry.py14logger = logging.getLogger(__name__)CODE
LOWsyft_client/sync/version/peer_manager.py33logger = logging.getLogger(__name__)CODE
LOWsyft_client/sync/version/__init__.py17__all__ = [CODE
LOWsyft_client/sync/peers/__init__.py3__all__ = ["PeerStore"]CODE
LOWsyft_client/sync/peers/peer_store.py105 def set_peer(self, peer: Peer) -> None:CODE
LOWsyft_client/sync/peers/peer_store.py117 def set_peers(self, peers: List[Peer]) -> None:CODE
LOWsyft_client/sync/peers/peer_store.py162 def set_peer_bundle(self, peer_email: str, bundle: dict) -> None:CODE
LOWsyft_client/sync/sync/datasite_owner_syncer.py37logger = logging.getLogger(__name__)CODE
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.py73 def set_service_config(self, name: str, config: dict) -> None:CODE
LOWpackages/syft-bg/src/syft_bg/common/state.py159 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-restrict/src/syft_restrict/runner.py18__all__ = ["run", "RunResult"]CODE
LOWpackages/syft-restrict/src/syft_restrict/__init__.py18__all__ = [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
LOWpackages/syft-datasets/src/syft_datasets/__init__.py4__all__ = ["SyftBoxConfig"]CODE
Structural Annotation Overuse25 hits · 46 pts
SeverityFileLineSnippetContext
LOWsyft_client/sync/sync/datasite_owner_syncer.py206 # Step 1: Check for full (compacted) checkpointCOMMENT
LOWsyft_client/sync/sync/datasite_owner_syncer.py218 # Step 2: Check for incremental checkpointsCOMMENT
LOWsyft_client/sync/sync/datasite_owner_syncer.py234 # Step 3: Check for rolling stateCOMMENT
LOWsyft_client/sync/sync/datasite_owner_syncer.py260 # Step 4: Download any remaining events since last timestampCOMMENT
LOWsyft_client/sync/sync/datasite_owner_syncer.py285 # Step 5: Ensure events from checkpoints/rolling state are inCOMMENT
LOWtests/unit/test_peer_requests.py26 # Step 1: DS makes peer request by adding DOCOMMENT
LOWtests/unit/test_peer_requests.py35 # Step 2: DS submits a file to their job folderCOMMENT
LOWtests/unit/test_peer_requests.py40 # Step 3: DO syncs WITHOUT accepting - nothing should syncCOMMENT
LOWtests/unit/test_peer_requests.py47 # Step 4: DO approves peer request (grants write to app_data/job/{ds_email}/)COMMENT
LOWtests/unit/test_peer_requests.py55 # 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
Deep Nesting48 hits · 45 pts
SeverityFileLineSnippetContext
LOWsyft_client/utils.py405CODE
LOWsyft_client/job_auto_approval.py145CODE
LOWsyft_client/sync/syftbox_manager.py940CODE
LOWsyft_client/sync/checkpoints/checkpoint.py186CODE
LOWsyft_client/sync/connections/drive/gdrive_retry.py47CODE
LOWsyft_client/sync/connections/drive/gdrive_transport.py899CODE
LOW…ft_client/sync/connections/drive/mock_drive_service.py136CODE
LOWsyft_client/sync/version/peer_manager.py523CODE
LOWsyft_client/sync/peers/peer_list.py37CODE
LOWsyft_client/sync/sync/datasite_owner_syncer.py141CODE
LOWsyft_client/sync/sync/datasite_owner_syncer.py192CODE
LOWsyft_client/sync/sync/datasite_owner_syncer.py613CODE
LOWsyft_client/sync/sync/datasite_owner_syncer.py1004CODE
LOW…lient/sync/sync/caches/cache_file_writer_connection.py132CODE
LOWsyft_client/sync/sync/caches/datasite_owner_cache.py118CODE
LOWsyft_client/sync/sync/caches/datasite_watcher_cache.py103CODE
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/approve/handlers/job.py90CODE
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.py51CODE
LOW…kages/syft-bg/src/syft_bg/email_approve/gmail_watch.py62CODE
LOWpackages/syft-bg/src/syft_bg/api/utils.py45CODE
LOWpackages/syft-bg/src/syft_bg/api/utils.py222CODE
LOWpackages/syft-restrict/src/syft_restrict/obfuscator.py63CODE
LOWpackages/syft-restrict/src/syft_restrict/obfuscator.py123CODE
LOWpackages/syft-restrict/src/syft_restrict/verifier.py136CODE
LOWpackages/syft-restrict/src/syft_restrict/verifier.py182CODE
LOW…ges/syft-datasets/src/syft_datasets/dataset_manager.py348CODE
LOWpackages/syft-datasets/src/syft_datasets/file_utils.py12CODE
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHsyft_client/utils.py191 Resolve syft:// paths to absolute filesystem paths. This function converts syft:// URLs to actual filesystem pSTRING
HIGHsyft_client/utils.py651 Generate a comprehensive environment snapshot for bug reports. This function collects information about the ruSTRING
HIGHsyft_client/sync/connections/drive/gdrive_retry.py75Execute a Google Drive API request with retry on transient errors. Uses exponential backoff with jitter. Args:STRING
HIGHsyft_client/sync/connections/drive/gdrive_retry.py124Execute next_chunk() on a downloader with retry on transient errors. Args: downloader: A MediaIoBaseDownloaSTRING
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
Verbosity Indicators20 hits · 37 pts
SeverityFileLineSnippetContext
LOWsyft_client/sync/sync/datasite_owner_syncer.py206 # Step 1: Check for full (compacted) checkpointCOMMENT
LOWsyft_client/sync/sync/datasite_owner_syncer.py218 # Step 2: Check for incremental checkpointsCOMMENT
LOWsyft_client/sync/sync/datasite_owner_syncer.py234 # Step 3: Check for rolling stateCOMMENT
LOWsyft_client/sync/sync/datasite_owner_syncer.py260 # Step 4: Download any remaining events since last timestampCOMMENT
LOWsyft_client/sync/sync/datasite_owner_syncer.py285 # Step 5: Ensure events from checkpoints/rolling state are inCOMMENT
LOWtests/unit/test_peer_requests.py26 # Step 1: DS makes peer request by adding DOCOMMENT
LOWtests/unit/test_peer_requests.py35 # Step 2: DS submits a file to their job folderCOMMENT
LOWtests/unit/test_peer_requests.py40 # Step 3: DO syncs WITHOUT accepting - nothing should syncCOMMENT
LOWtests/unit/test_peer_requests.py47 # Step 4: DO approves peer request (grants write to app_data/job/{ds_email}/)COMMENT
LOWtests/unit/test_peer_requests.py55 # 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
Redundant / Tautological Comments14 hits · 20 pts
SeverityFileLineSnippetContext
LOWsyft_client/utils.py227 # Check if path starts with syft://COMMENT
LOWsyft_client/sync/utils/syftbox_utils.py39 # Check if content is a string (has encode method)COMMENT
LOWsyft_client/sync/connections/drive/gdrive_transport.py1510 # Check if existsCOMMENT
LOWsyft_client/sync/connections/drive/gdrive_transport.py2410 # Check if file already existsCOMMENT
LOW…ft_client/sync/connections/drive/mock_drive_service.py282 # Check if user is the owner (owners always have access)COMMENT
LOW…ft_client/sync/connections/drive/mock_drive_service.py542 # Check if user has permission to deleteCOMMENT
LOWsyft_client/sync/sync/caches/datasite_watcher_cache.py321 # Check if hash changed - skip download if unchangedCOMMENT
LOWsyft_client/sync/sync/caches/datasite_watcher_cache.py334 # Write files to local cache (path relative to syftbox_folder)COMMENT
LOWsyft_client/sync/sync/caches/datasite_watcher_cache.py366 # Check if hash changed - skip download if unchangedCOMMENT
LOWsyft_client/sync/sync/caches/datasite_watcher_cache.py395 # Write files to local cache (path relative to syftbox_folder)COMMENT
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
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
Over-Commented Block13 hits · 12 pts
SeverityFileLineSnippetContext
LOWnotification_config.minimal.yaml1# ============================================================================COMMENT
LOWsyft_client/sync/syftbox_manager.py1741 # else: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.py341# ) -> AuthResult:COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py361# Path(credentials_path).expanduser()COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py381# authenticate_and_save(gmail_out_token_path, creds_path)COMMENT
LOWpackages/syft-bg/src/syft_bg/api/utils.py401# drive_ok=drive_ok,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…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…ages/enclave-model-api-example/docker/requirements.txt1# Model deps for the inference image only — kept out of this package's depsCOMMENT
AI Structural Patterns5 hits · 4 pts
SeverityFileLineSnippetContext
LOWsyft_client/sync/syftbox_manager.py714CODE
LOWsyft_client/sync/connections/connection_router.py402CODE
LOWsyft_client/sync/sync/datasite_watcher_syncer.py147CODE
LOW…lient/sync/sync/caches/cache_file_writer_connection.py191CODE
LOWtests/integration/utils.py59CODE
AI Slop Vocabulary2 hits · 4 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
MEDIUMpackages/enclave-model-api-example/scripts/run_demo.py1"""Run the full enclave model-API demo end-to-end (robust, unattended).STRING
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_job_auto_approval.py252 (subdir / "helper.py").write_text("def helper(): pass\n")CODE
LOWtests/unit/utils.py161def process_data(data):STRING
LOWtests/integration/syft_bg/conftest.py30 utils.write_text("def helper(): pass\n")CODE
LOWpackages/syft-restrict/tests/verify/test_whitelist.py39 "def helper(n):\n"CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsyft_client/utils.py450 # Just detect if in container, not detailed cgroup/orchestration infoCOMMENT