:ice_cube: 一个可爱且任性的 B 站视频下载器
This report presents the forensic synthetic code analysis of yutto-dev/yutto, a Python project with 1,970 GitHub stars. SynthScan v2.0 examined 35,599 lines of code across 256 source files, recording 533 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 15.9 places this repository in the Moderate 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 533 distinct pattern matches across 9 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⚡ | tests/test_auth.py | 14 | def test_parse_auth_inline_handles_case_and_spaces(): | CODE |
| LOW⚡ | tests/test_auth.py | 18 | def test_parse_auth_inline_requires_sessdata(): | CODE |
| LOW⚡ | tests/test_auth.py | 22 | def test_format_auth_inline_omits_empty_bili_jct(): | CODE |
| LOW⚡ | tests/test_auth.py | 26 | def test_resolve_auth_prefers_inline_auth(tmp_path: Path): | CODE |
| LOW | tests/test_auth.py | 39 | def test_resolve_auth_rejects_invalid_auth_file(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_auth.py | 53 | def test_save_and_load_auth_round_trip(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_auth.py | 61 | def test_save_auth_clears_stale_bili_jct(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_auth.py | 71 | def test_load_auth_returns_none_for_invalid_file(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_auth.py | 78 | def test_load_auth_rejects_invalid_profile(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_auth.py | 83 | def test_remove_auth_removes_target_profile_only(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_auth.py | 94 | def test_remove_auth_deletes_empty_auth_file(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_auth.py | 103 | def test_remove_auth_returns_false_when_profile_missing(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_auth.py | 109 | def test_remove_auth_rejects_invalid_existing_auth_file(tmp_path: Path): | CODE |
| LOW | tests/test_login.py | 18 | async def test_validate_saved_auth_uses_yutto_session_with_auth_cookies(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 53 | async def test_run_login_reuses_one_verified_yutto_session(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 132 | async def test_poll_qr_login_reports_status_changes_and_returns_redirect(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 178 | async def test_poll_qr_login_rejects_invalid_intervals(): | CODE |
| LOW | tests/test_login.py | 190 | async def test_complete_login_falls_back_to_redirect_query(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 211 | def test_get_cookie_value_probes_bilibili_domains_in_priority_order(): | CODE |
| LOW | tests/test_login.py | 226 | def test_run_auth_is_the_single_sync_cli_boundary(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 249 | async def test_run_auth_status_reports_vip_login(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 255 | async def fake_fetch_authenticated_user_info( | CODE |
| LOW | tests/test_login.py | 289 | async def test_run_auth_status_exits_when_auth_missing(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 316 | async def test_run_auth_status_exits_on_invalid_auth_file(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 343 | async def test_run_auth_status_exits_when_not_logged_in(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 349 | async def fake_fetch_authenticated_user_info( | CODE |
| LOW | tests/test_login.py | 379 | async def test_run_auth_status_exits_when_status_check_fails(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 385 | async def fake_fetch_authenticated_user_info( | CODE |
| LOW | tests/test_login.py | 414 | def test_run_auth_logout_removes_auth(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 435 | def test_run_auth_logout_is_idempotent(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 452 | def test_run_auth_logout_exits_on_invalid_auth_file(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_login.py | 471 | def test_run_auth_logout_rejects_inline_auth(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW⚡ | tests/test_cli.py | 63 | def test_download_parser_accepts_auth_file(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 71 | def test_download_parser_rejects_auth_config(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 80 | def test_download_parser_accepts_ffmpeg_path(): | CODE |
| LOW⚡ | tests/test_cli.py | 90 | def test_download_configures_ffmpeg_path_at_command_boundary(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW⚡ | tests/test_cli.py | 145 | def test_login_parser_accepts_auth_file(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 153 | def test_login_parser_rejects_auth_config(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 162 | def test_auth_status_parser_accepts_auth_file(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 170 | def test_auth_logout_parser_accepts_auth_file(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 178 | def test_root_parser_accepts_auth_login(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 188 | def test_root_parser_accepts_auth_status(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 198 | def test_root_parser_accepts_auth_logout(tmp_path: Path): | CODE |
| LOW⚡ | tests/test_cli.py | 208 | def test_root_parser_rejects_removed_top_level_login(): | CODE |
| LOW⚡ | tests/test_cli.py | 215 | def test_progress_renderer_respects_no_progress(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_cli.py | 117 | def test_download_validation_rejects_non_positive_num_workers(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_cli.py | 130 | def test_download_jobs_default_to_one_and_reject_non_positive_values(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_cli.py | 240 | def test_progress_bar_renders_committed_buffered_and_remaining_segments(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_cli.py | 293 | def test_progress_renderer_turns_only_buffered_segment_red(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_cli.py | 329 | def test_progress_renderer_tracks_multiple_items_and_removes_completed_rows(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_cli.py | 348 | def test_progress_labels_are_truncated_by_terminal_width(): | CODE |
| LOW | tests/test_cli.py | 353 | def test_run_download_scopes_report_renderer_and_cleans_up_on_cancel(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_server/test_command.py | 22 | def test_serve_is_an_explicit_subcommand(): | CODE |
| LOW | tests/test_server/test_command.py | 31 | def test_serve_jobs_configures_download_runtime_workers(): | CODE |
| LOW | tests/test_server/test_command.py | 43 | def test_serve_accepts_ffmpeg_path(): | CODE |
| LOW | tests/test_server/test_command.py | 48 | def test_serve_configures_ffmpeg_path_at_command_boundary(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | tests/test_server/test_command.py | 65 | def test_serve_argument_error_is_rendered_without_traceback( | CODE |
| LOW | tests/test_server/test_command.py | 104 | def test_environment_token_takes_precedence(tmp_path): | CODE |
| LOW | tests/test_server/test_command.py | 115 | def test_missing_token_file_is_created_with_a_generated_token(tmp_path): | CODE |
| LOW | tests/test_server/test_command.py | 127 | def test_empty_token_file_is_rejected(tmp_path): | CODE |
| 254 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 1 | CODE | |
| LOW | tests/test_auth.py | 1 | CODE | |
| LOW | tests/test_login.py | 1 | CODE | |
| LOW | tests/test_e2e.py | 1 | CODE | |
| LOW | tests/test_cli.py | 1 | CODE | |
| LOW | tests/test_server/test_command.py | 1 | CODE | |
| LOW | tests/test_server/test_command.py | 5 | CODE | |
| LOW | tests/test_server/test_command.py | 17 | CODE | |
| LOW | tests/test_server/test_service.py | 1 | CODE | |
| LOW | tests/test_server/test_websocket.py | 1 | CODE | |
| LOW | tests/test_server/__init__.py | 1 | CODE | |
| LOW | tests/test_server/test_rpc.py | 1 | CODE | |
| LOW | tests/test_utils/test_filter.py | 1 | CODE | |
| LOW | tests/test_utils/test_asynclib.py | 1 | CODE | |
| LOW | tests/test_utils/test_status_bar.py | 1 | CODE | |
| LOW | tests/test_utils/test_data_access.py | 1 | CODE | |
| LOW | tests/test_utils/test_fetcher.py | 1 | CODE | |
| LOW | tests/test_utils/test_ffmpeg.py | 1 | CODE | |
| LOW | tests/test_utils/test_ffmpeg.py | 23 | CODE | |
| LOW | tests/test_runtime/test_tasks.py | 1 | CODE | |
| LOW | tests/test_core/test_result.py | 1 | CODE | |
| LOW | tests/test_core/test_request.py | 1 | CODE | |
| LOW | tests/test_core/test_task_service.py | 1 | CODE | |
| LOW | tests/test_core/test_execution.py | 1 | CODE | |
| LOW | tests/test_core/test_application.py | 1 | CODE | |
| LOW | tests/test_core/test_native_session.py | 1 | CODE | |
| LOW | tests/test_api/test_user_info.py | 1 | CODE | |
| LOW | tests/test_api/test_cheese.py | 1 | CODE | |
| LOW | tests/test_api/test_space.py | 1 | CODE | |
| LOW | tests/test_api/test_bangumi.py | 1 | CODE | |
| LOW | tests/test_api/test_bangumi.py | 5 | CODE | |
| LOW | tests/test_api/test_collection.py | 1 | CODE | |
| LOW | tests/test_api/test_ugc_video.py | 1 | CODE | |
| LOW | tests/test_api/test_danmaku.py | 1 | CODE | |
| LOW | tests/test_processor/test_resolve.py | 1 | CODE | |
| LOW | tests/test_processor/test_selector.py | 1 | CODE | |
| LOW | tests/test_processor/test_download_result.py | 1 | CODE | |
| LOW | tests/test_processor/test_download_result.py | 6 | CODE | |
| LOW | tests/test_processor/test_download_result.py | 25 | CODE | |
| LOW | tests/test_processor/test_download_result.py | 25 | CODE | |
| LOW | tests/test_processor/test_path_leases.py | 1 | CODE | |
| LOW | tests/test_processor/test_audio_save_codec.py | 1 | CODE | |
| LOW | tests/test_processor/test_download_planner.py | 1 | CODE | |
| LOW | tests/test_processor/test_structured_errors.py | 1 | CODE | |
| LOW | tests/test_processor/test_batch_resolve.py | 1 | CODE | |
| LOW | tests/test_processor/test_downloader.py | 1 | CODE | |
| LOW | tests/test_processor/test_manager_semantics.py | 1 | CODE | |
| LOW | tests/test_processor/test_path_resolver.py | 1 | CODE | |
| LOW | tests/test_processor/test_download_lifecycle.py | 1 | CODE | |
| LOW | tests/helpers/http_range_server.py | 1 | CODE | |
| LOW | scripts/get-version.py | 1 | CODE | |
| LOW | scripts/generate-schema.py | 1 | CODE | |
| LOW | packages/biliass/src/biliass/__init__.py | 1 | CODE | |
| LOW | packages/biliass/src/biliass/__init__.py | 3 | CODE | |
| LOW | packages/biliass/src/biliass/__init__.py | 3 | CODE | |
| LOW | packages/biliass/src/biliass/__init__.py | 8 | CODE | |
| LOW | packages/biliass/src/biliass/__init__.py | 8 | CODE | |
| LOW | packages/biliass/src/biliass/__version__.py | 1 | CODE | |
| LOW | packages/biliass/src/biliass/biliass.py | 1 | CODE | |
| LOW | packages/biliass/src/biliass/__main__.py | 1 | CODE | |
| 137 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_server/test_websocket.py | 474 | CODE | |
| LOW | tests/test_server/test_websocket.py | 544 | CODE | |
| LOW | tests/test_server/test_websocket.py | 579 | CODE | |
| LOW | tests/test_server/test_websocket.py | 614 | CODE | |
| LOW | packages/biliass/src/biliass/biliass.py | 18 | CODE | |
| LOW | src/yutto/input_parser.py | 65 | CODE | |
| LOW | src/yutto/login.py | 179 | CODE | |
| LOW | src/yutto/runtime/tasks.py | 529 | CODE | |
| LOW | src/yutto/downloader/executor.py | 27 | CODE | |
| LOW | src/yutto/utils/danmaku.py | 78 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/yutto/login.py | 105 | except Exception as e: | CODE |
| LOW | src/yutto/login.py | 174 | except Exception as e: | CODE |
| LOW | src/yutto/login.py | 303 | except Exception as e: | CODE |
| LOW | src/yutto/runtime/tasks.py | 557 | except Exception as error: | CODE |
| LOW | src/yutto/server/rpc.py | 129 | except Exception: | CODE |
| LOW | src/yutto/utils/asynclib.py | 50 | except Exception as error: | CODE |
| LOW | src/yutto/utils/console/formatter.py | 55 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_server/test_rpc.py | 58 | response = await dispatcher.dispatch('{"jsonrpc":"2.0","method":"record","params":{"value":"request"},"id":null}') | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | skills/bilibili-video-download/SKILL.md | 157 | ## Input validation and security guardrails | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/guide/cli/batch.md | 41 | # 如果我们只想下载第 3 话,只需要这样 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/biliass/src/biliass/biliass.py | 18 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/yutto/_native.py | 23 | __all__ = [ | CODE |