Repository Analysis

javaht/claude-desktop-zh-cn

Claude Desktop Chinese Patch (macOS & Windows)

3.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of javaht/claude-desktop-zh-cn, a Python project with 6,474 GitHub stars. SynthScan v2.0 examined 53,991 lines of code across 34 source files, recording 185 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.7 places this repository in the Likely human-written 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).

3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-08-20
Last Push
6.5K
Stars
Python
Language
54.0K
Lines of Code
34
Files
185
Pattern Hits
2026-08-29
Scan Date
0.35
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 0HIGH 12MEDIUM 0LOW 173

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

Excessive Try-Catch Wrapping83 hits · 72 pts
SeverityFileLineSnippetContext
LOWscripts/patch_claude_zh_cn.py2312 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py151 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py2035 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py2205 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py2395 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py2731 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py2900 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py791 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py793 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py796 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1200 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1206 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1209 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1425 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1434 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1443 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1643 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1653 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1661 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py157 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py500 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py544 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py555 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py599 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py626 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py649 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py665 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py721 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py726 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py750 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py814 except Exception as exc: # pragma: no coverCODE
LOWscripts/experimental/frida_launch_zh.py845 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py872 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py907 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py939 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py969 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py991 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1025 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1079 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1247 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1250 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1271 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1308 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1360 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1372 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1387 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1410 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1622 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1682 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1693 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1858 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1882 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1900 except Exception:CODE
LOWscripts/experimental/frida_launch_zh.py1931 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py1987 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py2022 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py2199 except Exception as exc:CODE
LOWscripts/experimental/frida_launch_zh.py2232 except Exception as exc:CODE
LOWscripts/experimental/typing_shim_sitecustomize.py30 except Exception:CODE
LOWscripts/experimental/typing_shim_sitecustomize.py32except Exception:CODE
23 more matches not shown…
Cross-Language Confusion12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHtests/test_dom_translation_guards.py95 this.parentElement = null;CODE
HIGHtests/test_dom_translation_guards.py106 this.parentElement = null;CODE
HIGHtests/test_dom_translation_guards.py113 this.children.push(child);CODE
HIGHtests/test_dom_translation_guards.py126 return null;CODE
HIGHtests/test_dom_translation_guards.py138 return null;CODE
HIGHtests/test_dom_translation_guards.py156 : null;CODE
HIGHtests/test_dom_translation_guards.py176 result.push(node);CODE
HIGHtests/test_dom_translation_guards.py234globalThis.localStorage = {setItem() {}, getItem() { return null; }};CODE
HIGHtests/test_dom_translation_guards.py249 if (!filter || filter.acceptNode(node) === NodeFilter.FILTER_ACCEPT) {CODE
HIGHtests/test_dom_translation_guards.py253 return null;CODE
HIGHtests/test_dom_translation_guards.py288 protectedAnchorHidden: protectedAnchor.style.visibility || null,CODE
HIGHtests/test_dom_translation_guards.py288 protectedAnchorHidden: protectedAnchor.style.visibility || null,CODE
Hyper-Verbose Identifiers65 hits · 50 pts
SeverityFileLineSnippetContext
LOWtests/test_dom_translation_guards.py47def extract_windows_dom_template() -> str:CODE
LOWtests/test_dom_translation_guards.py55def materialize_windows_dom_script(template: str) -> str:CODE
LOWtests/test_dom_translation_guards.py319 def assert_common_guard_contract(self, script: str):STRING
LOWtests/test_dom_translation_guards.py349 def assert_original_translation_paths(self, script: str):STRING
LOWtests/test_dom_translation_guards.py365 def test_python_generator_guards_every_existing_write_path(self):STRING
LOWtests/test_dom_translation_guards.py375 def test_windows_generator_matches_the_content_safety_contract(self):STRING
LOWtests/test_dom_translation_guards.py400 def test_python_generated_script_preserves_protected_dom_content(self):STRING
LOWtests/test_dom_translation_guards.py403 def test_windows_generated_script_preserves_protected_dom_content(self):STRING
LOWscripts/patch_claude_zh_cn.py241def is_plain_ui_text_replacement(source: str) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py246def is_structural_js_literal_context(text: str, literal_start: int) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py251def replace_frontend_hardcoded_text(text: str, source: str, target: str) -> tuple[str, int]:CODE
LOWscripts/patch_claude_zh_cn.py496def strip_online_locale_injection(text: str) -> tuple[str, bool]:CODE
LOWscripts/patch_claude_zh_cn.py505def remove_online_locale_preload(content: bytes) -> tuple[bytes, bool]:CODE
LOWscripts/patch_claude_zh_cn.py511def patch_online_locale_preload(app: Path, lang_code: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py2304def load_json_object_or_backup(path: Path, dry_run: bool = False) -> dict[str, Any]:CODE
LOWscripts/patch_claude_zh_cn.py2321def ensure_config_library_entry(meta: dict[str, Any], config_id: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py156def require_virtualization_entitlement(app: Path) -> None:CODE
LOWscripts/patch_claude_zh_cn.py204def patch_language_display_names(app: Path) -> None:CODE
LOWscripts/patch_claude_zh_cn.py221def load_frontend_hardcoded_replacements(lang_code: str) -> list[tuple[str, str]]:CODE
LOWscripts/patch_claude_zh_cn.py275def patch_hardcoded_frontend_strings(app: Path, lang_code: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py359def encode_asar_header_dynamic(header_string: str) -> bytes:CODE
LOWscripts/patch_claude_zh_cn.py459def replace_asar_file_content(app: Path, file_path: str, patched_content: bytes) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py540def is_online_dom_translation_entry(source: str, target: str) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py549def build_online_translation_map(app: Path, lang_code: str) -> dict[str, str]:CODE
LOWscripts/patch_claude_zh_cn.py573def build_online_dom_translation_script(lang_code: str, mapping: dict[str, str]) -> str:CODE
LOWscripts/patch_claude_zh_cn.py711def build_online_locale_main_process_script(CODE
LOWscripts/patch_claude_zh_cn.py739def strip_online_locale_main_process_patch(text: str) -> tuple[str, bool]:CODE
LOWscripts/patch_claude_zh_cn.py761def strip_online_locale_lock_patch(text: str) -> tuple[str, bool]:CODE
LOWscripts/patch_claude_zh_cn.py807def find_online_locale_lock_asar_target(CODE
LOWscripts/patch_claude_zh_cn.py847def patch_online_locale_lock_in_asar(app: Path, lang_code: str) -> str:CODE
LOWscripts/patch_claude_zh_cn.py866def find_main_view_dom_ready_handler(text: str) -> re.Match[str] | None:CODE
LOWscripts/patch_claude_zh_cn.py894def find_main_process_asar_target(CODE
LOWscripts/patch_claude_zh_cn.py939def patch_online_locale_main_process(app: Path, lang_code: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py1059def update_electron_asar_integrity(app: Path, header_string: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py1157def get_model_picker_replacements(lang_code: str) -> dict[str, str]:CODE
LOWscripts/patch_claude_zh_cn.py1199def patch_model_picker_strings(app: Path, lang_code: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py1230def get_main_process_menu_replacements(lang_code: str) -> dict[str, str]:CODE
LOWscripts/patch_claude_zh_cn.py1416def get_main_process_menu_intl_replacements(lang_code: str) -> dict[str, str]:CODE
LOWscripts/patch_claude_zh_cn.py1563def get_main_process_menu_role_replacements(lang_code: str) -> dict[str, str]:CODE
LOWscripts/patch_claude_zh_cn.py1665def replace_menu_intl_message_by_id(text: str, message_id: str, target: str) -> tuple[str, int]:CODE
LOWscripts/patch_claude_zh_cn.py1702def replace_menu_literal_length_preserving(text: str, source: str, target: str) -> tuple[str, int]:CODE
LOWscripts/patch_claude_zh_cn.py1722def patch_length_preserving_main_process_menu_labels(app: Path, lang_code: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py1767def patch_hardcoded_main_process_menu_labels(app: Path, lang_code: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py2044def _codesign_team_and_signature(path: Path) -> tuple[str, str]:CODE
LOWscripts/patch_claude_zh_cn.py2070def verify_frida_resign_consistent(app: Path) -> None:CODE
LOWscripts/patch_claude_zh_cn.py2221def install_locale_resources_in_place(CODE
LOWscripts/patch_claude_zh_cn.py2333def get_existing_third_party_config(user_home: Path, dry_run: bool = False) -> tuple[Path, Path, dict[str, Any]] | None:CODE
LOWscripts/patch_claude_zh_cn.py2352def set_third_party_config_auto_updates(user_home: Path, enabled: bool, dry_run: bool = False) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py2376def managed_preferences_user_name(user_home: Path) -> str:CODE
LOWscripts/patch_claude_zh_cn.py2383def set_macos_managed_auto_updates(user_home: Path, enabled: bool, dry_run: bool = False) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py2479def discover_cc_switch_skills(skills_dir: Path) -> list[dict[str, Any]]:CODE
LOWscripts/patch_claude_zh_cn.py2504def find_claude_desktop_skills_plugin_root(user_home: Path) -> Path:CODE
LOWscripts/patch_claude_zh_cn.py2745def verify_electron_asar_integrity(app: Path) -> None:CODE
LOWscripts/patch_claude_zh_cn.py2767def verify_online_locale_patch(app: Path, lang_code: str) -> None:CODE
LOWscripts/experimental/frida_launch_zh.py264def build_runtime_replacements(app: Path) -> list[dict[str, str]]:CODE
LOWscripts/experimental/frida_launch_zh.py566def make_frida_message_handler(CODE
LOWscripts/experimental/frida_launch_zh.py888def ensure_user_locale_if_wrong(CODE
LOWscripts/experimental/frida_launch_zh.py1293def install_native_menu_hooks(CODE
LOWscripts/experimental/frida_launch_zh.py1786 def refresh_payload_if_needed(*, force: bool = False, reason: str = "change") -> bool:CODE
LOWscripts/experimental/frida_launch_zh_win.py126def replace_asar_file_content_in_file(asar_path: Path, file_path: str, patched_content: bytes) -> bool:CODE
5 more matches not shown…
Deep Nesting11 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/patch_claude_zh_cn.py1010CODE
LOWscripts/patch_claude_zh_cn.py1079CODE
LOWscripts/patch_claude_zh_cn.py2044CODE
LOWscripts/patch_claude_zh_cn.py2070CODE
LOWscripts/patch_claude_zh_cn.py2181CODE
LOWscripts/experimental/frida_launch_zh.py98CODE
LOWscripts/experimental/frida_launch_zh.py1570CODE
LOWscripts/experimental/frida_launch_zh.py1705CODE
LOWscripts/experimental/frida_launch_zh.py2015CODE
LOWscripts/experimental/frida_launch_zh.py1673CODE
LOWscripts/experimental/frida_launch_zh_win.py980CODE
Unused Imports7 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/patch_claude_zh_cn.py17CODE
LOWscripts/experimental/frida_launch_zh.py29CODE
LOWscripts/experimental/frida_launch_zh.py62CODE
LOWscripts/experimental/frida_launch_zh_win.py14CODE
LOWscripts/experimental/frida_launch_zh_win.py51CODE
LOWscripts/experimental/cdp_launch_zh.py12CODE
LOWscripts/experimental/cdp_launch_zh.py18CODE
Modern Structural Boilerplate3 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/patch_claude_zh_cn.py440def set_asar_offset(entry: dict[str, Any], offset: int) -> None:CODE
LOWscripts/patch_claude_zh_cn.py1059def update_electron_asar_integrity(app: Path, header_string: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py2181def set_user_locale(user_home: Path, lang_code: str) -> None:CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/patch_claude_zh_cn.py682 '["aria-label","title","placeholder","value"].forEach(a=>{'CODE
LOWscripts/experimental/frida_launch_zh_win.py622 for(const a of ["aria-label","title","placeholder","value"]){CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/experimental/frida-zh-resident-ctl.sh3# Usage:COMMENT
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/experimental/requirements-frida.txt1# Frida runtime Chinese launcher dependencies (macOS + Windows experimental).COMMENT