文件快递柜-匿名口令分享文本,文件,像拿快递一样取文件(FileCodeBox - File Express Cabinet - Anonymous Passcode Sharing Text, Files, Like Taking Express Delivery for Files)
This report presents the forensic synthetic code analysis of vastsa/FileCodeBox, a Python project with 8,409 GitHub stars. SynthScan v2.0 examined 17,203 lines of code across 84 source files, recording 154 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 9.2 places this repository in the Low 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 154 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main.py | 197 | def build_expire_style_inputs(selected_styles: list[str]) -> str: | CODE |
| LOW | main.py | 751 | async def refresh_settings_middleware(request, call_next): | CODE |
| LOW⚡ | core/tasks.py | 99 | async def clean_expired_presign_sessions(): | CODE |
| LOW | core/storage.py | 83 | async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]: | CODE |
| LOW | core/storage.py | 516 | async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]: | CODE |
| LOW | core/storage.py | 649 | def _convert_link_to_download_link(self, link): | CODE |
| LOW | tests/test_admin_security.py | 32 | def test_initial_security_config_requires_setup_and_generates_jwt_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 41 | def test_legacy_default_password_requires_setup(self): | CODE |
| LOW | tests/test_admin_security.py | 52 | def test_custom_plaintext_password_is_hashed_and_initialized(self): | CODE |
| LOW | tests/test_admin_security.py | 65 | def test_parse_setup_options_converts_common_fields(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 96 | def test_parse_setup_options_allows_turning_guest_upload_off(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 106 | def test_parse_setup_options_requires_expire_style(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 112 | def test_admin_jwt_signature_uses_independent_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 126 | def test_configured_session_lifetime_is_returned_by_login(self): | CODE |
| LOW | tests/test_admin_security.py | 185 | def test_storage_limit_rejects_negative_values(self): | CODE |
| LOW | tests/test_admin_security.py | 191 | def test_admin_session_lifetime_rejects_out_of_range_values(self): | CODE |
| LOW | tests/test_admin_security.py | 204 | def test_admin_password_update_rotates_jwt_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 227 | def test_initialize_system_sets_admin_password_and_jwt_secret(self): | CODE |
| LOW⚡ | tests/test_version.py | 11 | def test_version_file_is_the_runtime_version_source(self): | CODE |
| LOW⚡ | tests/test_version.py | 19 | def test_release_manifest_matches_version_file(self): | CODE |
| LOW⚡ | tests/test_version.py | 25 | def test_build_can_override_version_with_environment(self): | CODE |
| LOW⚡ | tests/test_version.py | 31 | def test_rejects_non_canonical_versions(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 35 | def test_new_installations_default_to_secret_codes(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 43 | def test_atomic_usage_download_and_metadata_limits(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 81 | async def _assert_count_consumption_is_atomic(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 102 | async def _assert_time_expiration_and_usage_are_atomic(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 131 | async def _assert_download_url_is_single_use(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 159 | async def _assert_limited_files_do_not_expose_direct_urls(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 174 | async def _assert_metadata_counts_all_attempts(self): | CODE |
| LOW | tests/test_issue_465_file_type.py | 18 | def test_allows_extensions_and_mime_patterns(self): | CODE |
| LOW | tests/test_issue_465_file_type.py | 25 | def test_rejects_disallowed_file_type(self): | CODE |
| LOW | tests/test_issue_464_admin_file_list.py | 40 | def test_build_admin_file_item_serializes_required_fields(self): | CODE |
| LOW | tests/test_issue_464_admin_file_list.py | 56 | def test_build_admin_file_item_marks_expiring_soon(self): | CODE |
| LOW | tests/test_issue_461_s3_addressing.py | 16 | def test_client_config_uses_path_style_when_configured(self): | CODE |
| LOW | tests/test_issue_461_s3_addressing.py | 26 | def test_client_config_ignores_invalid_addressing_style(self): | CODE |
| LOW | tests/test_issue_473_retrieve_code.py | 21 | def test_normalize_share_code_strips_surrounding_whitespace(self): | CODE |
| LOW | tests/test_issue_473_retrieve_code.py | 24 | def test_get_code_file_by_code_queries_normalized_code(self): | CODE |
| LOW | tests/test_issue_476_theme_assets.py | 24 | def test_resolves_assets_from_current_theme(self): | CODE |
| LOW | tests/test_issue_476_theme_assets.py | 38 | def test_rejects_theme_asset_path_traversal(self): | CODE |
| LOW | tests/test_issue_476_theme_assets.py | 46 | def test_index_keeps_absolute_asset_urls(self): | CODE |
| LOW | tests/test_issue_478_s3_file_exists.py | 27 | def test_file_exists_falls_back_to_list_objects(self): | CODE |
| LOW | tests/test_issue_478_s3_file_exists.py | 38 | def test_file_exists_returns_false_when_missing(self): | CODE |
| LOW | tests/test_issue_486_storage_quota.py | 14 | def test_quota_reservations_are_atomic_and_reusable(self): | CODE |
| LOW | tests/test_issue_480_admin_address.py | 14 | def test_admin_address_is_exposed_as_strict_binary_flag(self): | CODE |
| LOW | docs/guide/storage-onedrive.md | 87 | def convert_link_to_download_link(link): | CODE |
| LOW⚡ | apps/admin/services.py | 1124 | def _normalize_file_view_preset_choice(self, value: Any, allowed_values: set[str]) -> str: | CODE |
| LOW⚡ | apps/admin/services.py | 1130 | def _build_file_view_preset_id( | CODE |
| LOW⚡ | apps/admin/services.py | 1137 | def _build_file_status_insights( | CODE |
| LOW | apps/admin/services.py | 372 | async def apply_files_policy_action( | CODE |
| LOW | apps/admin/services.py | 515 | def _accumulate_health_summary(self, summary: dict[str, Any], item: dict[str, Any]) -> None: | CODE |
| LOW | apps/admin/services.py | 538 | async def build_file_health_summary( | CODE |
| LOW | apps/admin/services.py | 878 | def _normalize_admin_activity(self, activity: Any) -> Optional[dict[str, Any]]: | CODE |
| LOW | apps/admin/services.py | 939 | def _normalize_admin_activity_text(self, value: Any) -> str: | CODE |
| LOW | apps/admin/services.py | 960 | def _activity_matches_keyword(self, activity: dict[str, Any], keyword: str) -> bool: | CODE |
| LOW | apps/admin/services.py | 976 | def _build_admin_activity_options( | CODE |
| LOW | apps/admin/services.py | 1020 | def _build_file_activity_name(self, file_code: FileCodes) -> str: | CODE |
| LOW | apps/admin/services.py | 1052 | def _normalize_file_view_preset(self, preset: Any) -> Optional[dict[str, Any]]: | CODE |
| LOW | apps/admin/services.py | 1080 | def _normalize_file_view_preset_name(self, name: Any) -> str: | CODE |
| LOW | apps/admin/services.py | 1086 | def _normalize_file_view_preset_filters(self, filters: Any) -> dict[str, Any]: | CODE |
| LOW | apps/admin/services.py | 1304 | def _build_policy_action_update( | CODE |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | core/tasks.py | 45 | except Exception as e: | CODE |
| LOW⚡ | core/tasks.py | 49 | except Exception as e: | CODE |
| LOW⚡ | core/tasks.py | 51 | except Exception as e: | CODE |
| LOW | core/tasks.py | 77 | except Exception as e: | CODE |
| LOW⚡ | core/tasks.py | 88 | except Exception as e: | CODE |
| LOW⚡ | core/tasks.py | 93 | except Exception as e: | CODE |
| LOW | core/tasks.py | 118 | except Exception as e: | CODE |
| LOW | core/tasks.py | 127 | except Exception as e: | CODE |
| LOW | core/database.py | 100 | except Exception as e: | STRING |
| LOW | core/database.py | 140 | except Exception as e: | CODE |
| LOW | core/database.py | 144 | except Exception as e: | CODE |
| MEDIUM | core/database.py | 80 | def init_db(): | CODE |
| MEDIUM | core/storage.py | 349 | def stream_generator(): | CODE |
| MEDIUM | core/storage.py | 567 | def __init__(self): | CODE |
| MEDIUM | core/storage.py | 863 | def __init__(self): | CODE |
| LOW | core/storage.py | 154 | except Exception: | CODE |
| LOW | core/storage.py | 185 | except Exception as e: | CODE |
| LOW | core/storage.py | 224 | except Exception as e: | CODE |
| LOW | core/storage.py | 240 | except Exception as e: | CODE |
| LOW | core/storage.py | 247 | except Exception as e: | CODE |
| LOW | core/storage.py | 333 | except Exception: | CODE |
| LOW | core/storage.py | 381 | except Exception: | CODE |
| LOW | core/storage.py | 451 | except Exception as e: | CODE |
| LOW | core/storage.py | 483 | except Exception as e: | CODE |
| LOW | core/storage.py | 513 | except Exception as e: | CODE |
| LOW | core/storage.py | 545 | except Exception as e: | CODE |
| LOW | core/storage.py | 559 | except Exception as e: | CODE |
| LOW | core/storage.py | 602 | except Exception as e: | CODE |
| LOW | core/storage.py | 685 | except Exception: | CODE |
| LOW | core/storage.py | 719 | except Exception: | CODE |
| LOW | core/storage.py | 803 | except Exception as e: | CODE |
| LOW | core/storage.py | 839 | except Exception as e: | CODE |
| LOW | core/storage.py | 901 | except Exception: | CODE |
| LOW | core/storage.py | 941 | except Exception as e: | CODE |
| LOW | core/storage.py | 969 | except Exception as e: | CODE |
| LOW | core/storage.py | 997 | except Exception as e: | CODE |
| LOW | core/storage.py | 1009 | except Exception: | CODE |
| LOW | core/storage.py | 1161 | except Exception: | CODE |
| LOW | core/storage.py | 1315 | except Exception as e: | CODE |
| LOW | docs/guide/storage-onedrive.md | 73 | except Exception as e: | CODE |
| LOW | apps/admin/services.py | 124 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 172 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 408 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 845 | except Exception: | CODE |
| LOW | apps/admin/services.py | 1500 | except Exception: | CODE |
| LOW | apps/admin/dependencies.py | 92 | except Exception as e: | CODE |
| MEDIUM | apps/admin/dependencies.py | 27 | def get_admin_session_expire_seconds() -> int: | CODE |
| LOW | apps/base/quota.py | 64 | except Exception: | CODE |
| MEDIUM | apps/base/quota.py | 11 | def get_storage_limit() -> int: | CODE |
| LOW | apps/base/views.py | 211 | except Exception: | CODE |
| LOW | apps/base/views.py | 216 | except Exception: | CODE |
| LOW | apps/base/views.py | 394 | except Exception: | CODE |
| LOW | apps/base/views.py | 486 | except Exception: | CODE |
| LOW | apps/base/views.py | 565 | except Exception as e: | CODE |
| LOW | apps/base/views.py | 601 | except Exception as e: | CODE |
| LOW | apps/base/views.py | 671 | except Exception: | CODE |
| LOW | apps/base/views.py | 714 | except Exception as e: | CODE |
| LOW | apps/base/views.py | 718 | except Exception: | CODE |
| LOW | apps/base/views.py | 795 | except Exception: | CODE |
| LOW | apps/base/views.py | 835 | except Exception as e: | CODE |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/tasks.py | 25 | CODE | |
| LOW | core/tasks.py | 57 | CODE | |
| LOW | core/tasks.py | 99 | CODE | |
| LOW | core/database.py | 105 | CODE | |
| LOW | core/storage.py | 316 | CODE | |
| LOW | core/storage.py | 668 | CODE | |
| LOW | core/storage.py | 732 | CODE | |
| LOW | core/storage.py | 764 | CODE | |
| LOW | core/storage.py | 889 | CODE | |
| LOW | core/storage.py | 1144 | CODE | |
| LOW | core/storage.py | 1284 | CODE | |
| LOW | tests/test_version.py | 31 | CODE | |
| LOW | apps/admin/services.py | 1137 | CODE | |
| LOW | apps/admin/services.py | 1543 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/__init__.py | 1 | # @Time : 2023/8/11 20:06 | COMMENT |
| LOW | apps/__init__.py | 1 | # @Time : 2023/8/13 20:43 | COMMENT |
| LOW | apps/admin/__init__.py | 1 | # @Time : 2023/8/14 14:38 | COMMENT |
| LOW | apps/base/__init__.py | 1 | # @Time : 2023/8/13 20:43 | COMMENT |
| LOW | apps/base/views.py | 421 | # if await existing.is_expired(): | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/admin/dependencies.py | 5 | CODE | |
| LOW | apps/base/schemas.py | 2 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/storage.py | 615 | CODE | |
| LOW | apps/admin/views.py | 341 | CODE |