Repository Analysis

darknessomi/musicbox

网易云音乐命令行版本

11.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of darknessomi/musicbox, a Python project with 9,825 GitHub stars. SynthScan v2.0 examined 10,349 lines of code across 44 source files, recording 113 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 11.8 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).

11.8
Adjusted Score
11.8
Raw Score
100%
Time Factor
2026-07-21
Last Push
9.8K
Stars
Python
Language
10.3K
Lines of Code
44
Files
113
Pattern Hits
2026-08-02
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 1LOW 112

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 113 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 · 74 pts
SeverityFileLineSnippetContext
LOWNEMbox/encrypt.py75def _cloudmusic_dll_encode_id(some_id: str) -> str:CODE
LOWNEMbox/menu.py409 def space_key_event_in_search_result(self):CODE
LOWNEMbox/player.py231 def _advance_on_playback_failure(self):CODE
LOWtests/test_player.py6def test_playing_id_is_none_without_current_song():CODE
LOWtests/test_player.py19def test_mpv_switch_uses_ipc_pause_command():CODE
LOWtests/test_player.py37def test_stale_playback_token_is_not_current():CODE
LOWtests/test_player.py63def test_refresh_mpv_audio_info_stores_audio_quality_separately():CODE
LOWtests/test_player.py114def test_advance_on_playback_failure_stops_for_single_song_queue():CODE
LOWtests/test_player.py127def test_advance_on_playback_failure_stops_when_loop_wraps_to_same_song():CODE
LOWtests/test_player.py146def test_advance_on_playback_failure_replays_when_next_song_differs():CODE
LOWtests/test_player.py164def test_build_playinfo_rotates_quality_label(monkeypatch):CODE
LOWtests/test_api_endpoint_updates.py19def test_get_account_info_uses_current_account_endpoint(monkeypatch):CODE
LOWtests/test_api_endpoint_updates.py37def test_get_account_info_falls_back_to_legacy_w_endpoint(monkeypatch):CODE
LOWtests/test_api_endpoint_updates.py169def test_dj_radios_uses_current_hot_endpoint(monkeypatch):CODE
LOWtests/test_api_endpoint_updates.py200def test_logout_calls_eapi_logout_before_clearing_local(monkeypatch):CODE
LOWtests/test_api_endpoint_updates.py242def test_fetch_toplists_uses_api_toplist(monkeypatch):CODE
LOWtests/test_api_endpoint_updates.py256def test_toplists_property_caches_result(monkeypatch):CODE
LOWtests/test_api_endpoint_updates.py271def test_top_songlist_uses_dynamic_id(monkeypatch):CODE
LOWtests/test_audio_quality.py4def test_parse_song_url_hides_lossless_bitrate():CODE
LOWtests/test_audio_quality.py21def test_parse_songs_keeps_duration_for_mpv_progress():CODE
LOWtests/test_daemon.py35def test_acquire_lock_is_exclusive(runtime_paths):CODE
LOWtests/test_daemon.py47def test_tune_volume_persists_when_stopped():CODE
LOWtests/test_daemon.py60def test_daemon_volume_delta_when_stopped(runtime_paths):CODE
LOWtests/test_daemon.py68def test_daemon_rpc_ping_status_and_shutdown(runtime_paths):CODE
LOWtests/test_ui_playinfo.py5def test_playinfo_song_start_accounts_for_long_quality_label():CODE
LOWtests/test_osdlyrics.py6def test_stop_lyrics_process_skips_when_osdlyrics_disabled():CODE
LOWtests/test_osdlyrics.py11def test_stop_lyrics_process_survives_dbus_failure():CODE
LOWtests/test_ui_login_qr.py28def test_build_login_qr_does_not_render_url(monkeypatch):CODE
LOWtests/test_cli.py407def test_control_autostarts_daemon(monkeypatch, capsys):CODE
LOWtests/test_cli.py416def test_daemon_not_running_no_autostart(monkeypatch, capsys):CODE
LOWtests/test_cli.py424def test_volume_relative_params(monkeypatch, capsys):CODE
LOWtests/test_cli.py432def test_volume_absolute_params(monkeypatch, capsys):CODE
LOWtests/test_cli.py440def test_queue_clear_requires_confirmation(monkeypatch, capsys):CODE
LOWtests/test_cli.py449def test_queue_clear_with_yes(monkeypatch, capsys):CODE
LOWtests/test_cli.py542def test_play_dry_run_album_no_side_effect(monkeypatch, capsys):CODE
LOWtests/test_cli.py550def test_play_dry_run_songs_no_side_effect(monkeypatch, capsys):CODE
LOWtests/test_cli.py560def test_play_conflicting_flags_rejected(monkeypatch, capsys):CODE
LOWtests/test_cli.py602def test_download_album_success(monkeypatch, capsys):CODE
LOWtests/test_cli.py612def test_download_songs_success(monkeypatch, capsys):CODE
LOWtests/test_cli.py621def test_download_playlist_success(monkeypatch, capsys):CODE
LOWtests/test_cli.py630def test_download_conflicting_flags_rejected(monkeypatch, capsys):CODE
LOWtests/test_cli.py640def test_download_all_fail_exit_nonzero(monkeypatch, capsys):CODE
LOWtests/test_cli.py226def test_recommend_not_logged_in(monkeypatch, capsys):CODE
LOWtests/test_cli.py233def test_recommend_songs_logged_in(monkeypatch, capsys):CODE
LOWtests/test_cli.py250def test_auth_login_without_no_wait_fails(monkeypatch, capsys):CODE
LOWtests/test_cli.py257def test_auth_login_check_success(monkeypatch, capsys):CODE
LOWtests/test_cli.py268def test_auth_logout_requires_confirmation(monkeypatch, capsys):CODE
LOWtests/test_cli.py275def test_auth_logout_with_yes(monkeypatch, capsys):CODE
LOWtests/test_cli.py296def test_config_list_handles_bare_version(monkeypatch, capsys):CODE
LOWtests/test_cli.py396def test_play_dry_run_has_no_side_effect(monkeypatch, capsys):CODE
LOWtests/test_cli.py502def test_daemon_status_command(monkeypatch, capsys):CODE
LOWtests/test_cli.py510def test_cli_entry_dispatches_from_main(monkeypatch):CODE
LOWtests/test_cli.py530def test_play_dry_run_artist_no_side_effect(monkeypatch, capsys):CODE
LOWtests/test_cli.py591def test_download_artist_success(monkeypatch, capsys):CODE
LOWtests/test_main.py13def test_version_command_does_not_initialize_menu(monkeypatch, capsys):CODE
LOWtests/test_main.py31def test_version_command_ignores_failed_latest_check(monkeypatch, capsys):CODE
LOWtests/test_menu_search.py4def test_prepare_search_items_handles_string_entries():CODE
LOWtests/test_menu_search.py14def test_prepare_search_items_sets_origin_index_on_dict_entries():CODE
LOWtests/test_menu_search.py22def test_item_search_text_includes_song_fields():CODE
LOWtests/test_menu_search.py31def test_item_search_text_falls_back_to_string():CODE
6 more matches not shown…
Deep Nesting22 hits · 22 pts
SeverityFileLineSnippetContext
LOWNEMbox/ui.py283CODE
LOWNEMbox/ui.py393CODE
LOWNEMbox/api.py892CODE
LOWNEMbox/menu.py213CODE
LOWNEMbox/menu.py532CODE
LOWNEMbox/menu.py643CODE
LOWNEMbox/menu.py1061CODE
LOWNEMbox/menu.py1269CODE
LOWNEMbox/cli.py250CODE
LOWNEMbox/cli.py273CODE
LOWNEMbox/cli.py684CODE
LOWNEMbox/cli.py920CODE
LOWNEMbox/player.py246CODE
LOWNEMbox/player.py399CODE
LOWNEMbox/player.py466CODE
LOWNEMbox/player.py540CODE
LOWNEMbox/player.py807CODE
LOWNEMbox/player.py852CODE
LOWNEMbox/storage.py90CODE
LOWNEMbox/daemon.py95CODE
LOWNEMbox/daemon.py165CODE
LOWNEMbox/daemon.py321CODE
Excessive Try-Catch Wrapping17 hits · 18 pts
SeverityFileLineSnippetContext
LOWNEMbox/osdlyrics.py150 except Exception as e:CODE
LOWNEMbox/ui.py145 except Exception as e:CODE
LOWNEMbox/ui.py361 except Exception as e:CODE
LOWNEMbox/api.py383 except Exception as e:CODE
LOWNEMbox/api.py422 except Exception as e:CODE
MEDIUMNEMbox/api.py390def fetch_toplists(self):CODE
LOWNEMbox/menu.py292 except Exception as e:CODE
LOWNEMbox/cli.py769 except Exception as e:CODE
LOWNEMbox/player.py272 except Exception as e:CODE
LOWNEMbox/player.py279 except Exception as e:CODE
LOWNEMbox/player.py293 except Exception as e:CODE
LOWNEMbox/player.py302 except Exception as e:CODE
LOWNEMbox/player.py317 except Exception as e:CODE
LOWNEMbox/player.py556 except Exception:CODE
LOWNEMbox/player.py572 except Exception as e:CODE
LOWNEMbox/player.py586 except Exception as e:CODE
LOWNEMbox/daemon.py240 except Exception as exc: # noqa: BLE001 — never let one request kill daemonCODE
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOWNEMbox/encrypt.py12__all__ = [CODE
LOWNEMbox/kill_thread.py6__all__ = ["stop_thread"]CODE
LOWNEMbox/cmd_parser.py15__all__ = ["cmd_parser", "parse_keylist", "coroutine", "erase_coroutine"]CODE
LOWNEMbox/utils.py13__all__ = [CODE
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWNEMbox/player.py621 self.notify_copyright_issue()COMMENT
LOWtests/test_api.py1from NEMbox.api import NetEase, ParseCOMMENT
LOWtests/test_api.py21 # print(api.album(38721188))COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWNEMbox/player.py10CODE