Repository Analysis

vastsa/FileCodeBox

文件快递柜-匿名口令分享文本,文件,像拿快递一样取文件(FileCodeBox - File Express Cabinet - Anonymous Passcode Sharing Text, Files, Like Taking Express Delivery for Files)

9.2 Low AI signal View on GitHub

Analysis Overview

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).

9.2
Adjusted Score
9.2
Raw Score
100%
Time Factor
2026-07-11
Last Push
8.4K
Stars
Python
Language
17.2K
Lines of Code
84
Files
154
Pattern Hits
2026-07-14
Scan Date
0.00
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 0HIGH 0MEDIUM 6LOW 148

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 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.

Hyper-Verbose Identifiers66 hits · 72 pts
SeverityFileLineSnippetContext
LOWmain.py197def build_expire_style_inputs(selected_styles: list[str]) -> str:CODE
LOWmain.py751async def refresh_settings_middleware(request, call_next):CODE
LOWcore/tasks.py99async def clean_expired_presign_sessions():CODE
LOWcore/storage.py83 async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]:CODE
LOWcore/storage.py516 async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]:CODE
LOWcore/storage.py649 def _convert_link_to_download_link(self, link):CODE
LOWtests/test_admin_security.py32 def test_initial_security_config_requires_setup_and_generates_jwt_secret(self):CODE
LOWtests/test_admin_security.py41 def test_legacy_default_password_requires_setup(self):CODE
LOWtests/test_admin_security.py52 def test_custom_plaintext_password_is_hashed_and_initialized(self):CODE
LOWtests/test_admin_security.py65 def test_parse_setup_options_converts_common_fields(self):CODE
LOWtests/test_admin_security.py96 def test_parse_setup_options_allows_turning_guest_upload_off(self):CODE
LOWtests/test_admin_security.py106 def test_parse_setup_options_requires_expire_style(self):CODE
LOWtests/test_admin_security.py112 def test_admin_jwt_signature_uses_independent_secret(self):CODE
LOWtests/test_admin_security.py126 def test_configured_session_lifetime_is_returned_by_login(self):CODE
LOWtests/test_admin_security.py185 def test_storage_limit_rejects_negative_values(self):CODE
LOWtests/test_admin_security.py191 def test_admin_session_lifetime_rejects_out_of_range_values(self):CODE
LOWtests/test_admin_security.py204 def test_admin_password_update_rotates_jwt_secret(self):CODE
LOWtests/test_admin_security.py227 def test_initialize_system_sets_admin_password_and_jwt_secret(self):CODE
LOWtests/test_version.py11 def test_version_file_is_the_runtime_version_source(self):CODE
LOWtests/test_version.py19 def test_release_manifest_matches_version_file(self):CODE
LOWtests/test_version.py25 def test_build_can_override_version_with_environment(self):CODE
LOWtests/test_version.py31 def test_rejects_non_canonical_versions(self):CODE
LOWtests/test_issue_482_share_usage.py35 def test_new_installations_default_to_secret_codes(self):CODE
LOWtests/test_issue_482_share_usage.py43 def test_atomic_usage_download_and_metadata_limits(self):CODE
LOWtests/test_issue_482_share_usage.py81 async def _assert_count_consumption_is_atomic(self):CODE
LOWtests/test_issue_482_share_usage.py102 async def _assert_time_expiration_and_usage_are_atomic(self):CODE
LOWtests/test_issue_482_share_usage.py131 async def _assert_download_url_is_single_use(self):CODE
LOWtests/test_issue_482_share_usage.py159 async def _assert_limited_files_do_not_expose_direct_urls(self):CODE
LOWtests/test_issue_482_share_usage.py174 async def _assert_metadata_counts_all_attempts(self):CODE
LOWtests/test_issue_465_file_type.py18 def test_allows_extensions_and_mime_patterns(self):CODE
LOWtests/test_issue_465_file_type.py25 def test_rejects_disallowed_file_type(self):CODE
LOWtests/test_issue_464_admin_file_list.py40 def test_build_admin_file_item_serializes_required_fields(self):CODE
LOWtests/test_issue_464_admin_file_list.py56 def test_build_admin_file_item_marks_expiring_soon(self):CODE
LOWtests/test_issue_461_s3_addressing.py16 def test_client_config_uses_path_style_when_configured(self):CODE
LOWtests/test_issue_461_s3_addressing.py26 def test_client_config_ignores_invalid_addressing_style(self):CODE
LOWtests/test_issue_473_retrieve_code.py21 def test_normalize_share_code_strips_surrounding_whitespace(self):CODE
LOWtests/test_issue_473_retrieve_code.py24 def test_get_code_file_by_code_queries_normalized_code(self):CODE
LOWtests/test_issue_476_theme_assets.py24 def test_resolves_assets_from_current_theme(self):CODE
LOWtests/test_issue_476_theme_assets.py38 def test_rejects_theme_asset_path_traversal(self):CODE
LOWtests/test_issue_476_theme_assets.py46 def test_index_keeps_absolute_asset_urls(self):CODE
LOWtests/test_issue_478_s3_file_exists.py27 def test_file_exists_falls_back_to_list_objects(self):CODE
LOWtests/test_issue_478_s3_file_exists.py38 def test_file_exists_returns_false_when_missing(self):CODE
LOWtests/test_issue_486_storage_quota.py14 def test_quota_reservations_are_atomic_and_reusable(self):CODE
LOWtests/test_issue_480_admin_address.py14 def test_admin_address_is_exposed_as_strict_binary_flag(self):CODE
LOWdocs/guide/storage-onedrive.md87def convert_link_to_download_link(link):CODE
LOWapps/admin/services.py1124 def _normalize_file_view_preset_choice(self, value: Any, allowed_values: set[str]) -> str:CODE
LOWapps/admin/services.py1130 def _build_file_view_preset_id(CODE
LOWapps/admin/services.py1137 def _build_file_status_insights(CODE
LOWapps/admin/services.py372 async def apply_files_policy_action(CODE
LOWapps/admin/services.py515 def _accumulate_health_summary(self, summary: dict[str, Any], item: dict[str, Any]) -> None:CODE
LOWapps/admin/services.py538 async def build_file_health_summary(CODE
LOWapps/admin/services.py878 def _normalize_admin_activity(self, activity: Any) -> Optional[dict[str, Any]]:CODE
LOWapps/admin/services.py939 def _normalize_admin_activity_text(self, value: Any) -> str:CODE
LOWapps/admin/services.py960 def _activity_matches_keyword(self, activity: dict[str, Any], keyword: str) -> bool:CODE
LOWapps/admin/services.py976 def _build_admin_activity_options(CODE
LOWapps/admin/services.py1020 def _build_file_activity_name(self, file_code: FileCodes) -> str:CODE
LOWapps/admin/services.py1052 def _normalize_file_view_preset(self, preset: Any) -> Optional[dict[str, Any]]:CODE
LOWapps/admin/services.py1080 def _normalize_file_view_preset_name(self, name: Any) -> str:CODE
LOWapps/admin/services.py1086 def _normalize_file_view_preset_filters(self, filters: Any) -> dict[str, Any]:CODE
LOWapps/admin/services.py1304 def _build_policy_action_update(CODE
6 more matches not shown…
Excessive Try-Catch Wrapping65 hits · 68 pts
SeverityFileLineSnippetContext
LOWcore/tasks.py45 except Exception as e:CODE
LOWcore/tasks.py49 except Exception as e:CODE
LOWcore/tasks.py51 except Exception as e:CODE
LOWcore/tasks.py77 except Exception as e:CODE
LOWcore/tasks.py88 except Exception as e:CODE
LOWcore/tasks.py93 except Exception as e:CODE
LOWcore/tasks.py118 except Exception as e:CODE
LOWcore/tasks.py127 except Exception as e:CODE
LOWcore/database.py100 except Exception as e:STRING
LOWcore/database.py140 except Exception as e:CODE
LOWcore/database.py144 except Exception as e:CODE
MEDIUMcore/database.py80def init_db():CODE
MEDIUMcore/storage.py349def stream_generator():CODE
MEDIUMcore/storage.py567def __init__(self):CODE
MEDIUMcore/storage.py863def __init__(self):CODE
LOWcore/storage.py154 except Exception:CODE
LOWcore/storage.py185 except Exception as e:CODE
LOWcore/storage.py224 except Exception as e:CODE
LOWcore/storage.py240 except Exception as e:CODE
LOWcore/storage.py247 except Exception as e:CODE
LOWcore/storage.py333 except Exception:CODE
LOWcore/storage.py381 except Exception:CODE
LOWcore/storage.py451 except Exception as e:CODE
LOWcore/storage.py483 except Exception as e:CODE
LOWcore/storage.py513 except Exception as e:CODE
LOWcore/storage.py545 except Exception as e:CODE
LOWcore/storage.py559 except Exception as e:CODE
LOWcore/storage.py602 except Exception as e:CODE
LOWcore/storage.py685 except Exception:CODE
LOWcore/storage.py719 except Exception:CODE
LOWcore/storage.py803 except Exception as e:CODE
LOWcore/storage.py839 except Exception as e:CODE
LOWcore/storage.py901 except Exception:CODE
LOWcore/storage.py941 except Exception as e:CODE
LOWcore/storage.py969 except Exception as e:CODE
LOWcore/storage.py997 except Exception as e:CODE
LOWcore/storage.py1009 except Exception:CODE
LOWcore/storage.py1161 except Exception:CODE
LOWcore/storage.py1315 except Exception as e:CODE
LOWdocs/guide/storage-onedrive.md73except Exception as e:CODE
LOWapps/admin/services.py124 except Exception as exc:CODE
LOWapps/admin/services.py172 except Exception as exc:CODE
LOWapps/admin/services.py408 except Exception as exc:CODE
LOWapps/admin/services.py845 except Exception:CODE
LOWapps/admin/services.py1500 except Exception:CODE
LOWapps/admin/dependencies.py92 except Exception as e:CODE
MEDIUMapps/admin/dependencies.py27def get_admin_session_expire_seconds() -> int:CODE
LOWapps/base/quota.py64 except Exception:CODE
MEDIUMapps/base/quota.py11def get_storage_limit() -> int:CODE
LOWapps/base/views.py211 except Exception:CODE
LOWapps/base/views.py216 except Exception:CODE
LOWapps/base/views.py394 except Exception:CODE
LOWapps/base/views.py486 except Exception:CODE
LOWapps/base/views.py565 except Exception as e:CODE
LOWapps/base/views.py601 except Exception as e:CODE
LOWapps/base/views.py671 except Exception:CODE
LOWapps/base/views.py714 except Exception as e:CODE
LOWapps/base/views.py718 except Exception:CODE
LOWapps/base/views.py795 except Exception:CODE
LOWapps/base/views.py835 except Exception as e:CODE
5 more matches not shown…
Deep Nesting14 hits · 10 pts
SeverityFileLineSnippetContext
LOWcore/tasks.py25CODE
LOWcore/tasks.py57CODE
LOWcore/tasks.py99CODE
LOWcore/database.py105CODE
LOWcore/storage.py316CODE
LOWcore/storage.py668CODE
LOWcore/storage.py732CODE
LOWcore/storage.py764CODE
LOWcore/storage.py889CODE
LOWcore/storage.py1144CODE
LOWcore/storage.py1284CODE
LOWtests/test_version.py31CODE
LOWapps/admin/services.py1137CODE
LOWapps/admin/services.py1543CODE
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWcore/__init__.py1# @Time : 2023/8/11 20:06COMMENT
LOWapps/__init__.py1# @Time : 2023/8/13 20:43COMMENT
LOWapps/admin/__init__.py1# @Time : 2023/8/14 14:38COMMENT
LOWapps/base/__init__.py1# @Time : 2023/8/13 20:43COMMENT
LOWapps/base/views.py421 # if await existing.is_expired():COMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWapps/admin/dependencies.py5CODE
LOWapps/base/schemas.py2CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcore/storage.py615CODE
LOWapps/admin/views.py341CODE