Repository Analysis

HIllya51/LunaTranslator

视觉小说翻译器 / Visual Novel Translator

4.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of HIllya51/LunaTranslator, a C++ project with 12,354 GitHub stars. SynthScan v2.0 examined 259,900 lines of code across 1311 source files, recording 1032 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 4.0 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).

4.0
Adjusted Score
4.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
12.4K
Stars
C++
Language
259.9K
Lines of Code
1.3K
Files
1.0K
Pattern Hits
2026-07-14
Scan Date
0.01
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 6HIGH 10MEDIUM 29LOW 987

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 1032 distinct pattern matches across 19 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.

Unused Imports468 hits · 333 pts
SeverityFileLineSnippetContext
LOWsrc/trans_lang.py5CODE
LOWsrc/keeprefs.py1CODE
LOWsrc/keeprefs.py2CODE
LOWsrc/keeprefs.py3CODE
LOWsrc/keeprefs.py4CODE
LOWsrc/keeprefs.py5CODE
LOWsrc/keeprefs.py6CODE
LOWsrc/keeprefs.py7CODE
LOWsrc/keeprefs.py8CODE
LOWsrc/keeprefs.py9CODE
LOWsrc/keeprefs.py10CODE
LOWsrc/keeprefs.py11CODE
LOWsrc/keeprefs.py12CODE
LOWsrc/keeprefs.py13CODE
LOWsrc/keeprefs.py14CODE
LOWsrc/keeprefs.py15CODE
LOWsrc/keeprefs.py16CODE
LOWsrc/keeprefs.py17CODE
LOWsrc/keeprefs.py18CODE
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/PiAS.py3CODE
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/PiAS.py4CODE
LOW…mpl/LunaHook/LunaHook/engine32/PiAS_Ningyou_no_Hako.py1CODE
LOWsrc/LunaTranslator/CVUtils.py14CODE
LOWsrc/LunaTranslator/LunaTranslator.py3CODE
LOWsrc/LunaTranslator/LunaTranslator.py74CODE
LOWsrc/LunaTranslator/LunaTranslator.py75CODE
LOWsrc/LunaTranslator/LunaTranslator.py76CODE
LOWsrc/LunaTranslator/requests.py3CODE
LOWsrc/LunaTranslator/gobject.py52CODE
LOWsrc/LunaTranslator/qtawesome.py3CODE
LOWsrc/LunaTranslator/qtsymbols.py5CODE
LOWsrc/LunaTranslator/qtsymbols.py5CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
LOWsrc/LunaTranslator/qtsymbols.py6CODE
408 more matches not shown…
Deep Nesting200 hits · 194 pts
SeverityFileLineSnippetContext
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Leaf.py5CODE
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/PiAS.py7CODE
LOW…mpl/LunaHook/LunaHook/engine32/PiAS_Ningyou_no_Hako.py6CODE
LOW…mpl/LunaHook/LunaHook/engine32/PiAS_Ningyou_no_Hako.py44CODE
LOW…mpl/LunaHook/LunaHook/engine32/PiAS_Ningyou_no_Hako.py74CODE
LOW…tiveImpl/LunaHook/LunaHook/resource/renpy_hook_text.py80CODE
LOW…tiveImpl/LunaHook/LunaHook/resource/renpy_hook_text.py81CODE
LOWsrc/LunaTranslator/LunaTranslator.py227CODE
LOWsrc/LunaTranslator/LunaTranslator.py368CODE
LOWsrc/LunaTranslator/LunaTranslator.py414CODE
LOWsrc/LunaTranslator/LunaTranslator.py443CODE
LOWsrc/LunaTranslator/LunaTranslator.py460CODE
LOWsrc/LunaTranslator/LunaTranslator.py474CODE
LOWsrc/LunaTranslator/LunaTranslator.py843CODE
LOWsrc/LunaTranslator/LunaTranslator.py936CODE
LOWsrc/LunaTranslator/LunaTranslator.py982CODE
LOWsrc/LunaTranslator/LunaTranslator.py1023CODE
LOWsrc/LunaTranslator/LunaTranslator.py1201CODE
LOWsrc/LunaTranslator/LunaTranslator.py1223CODE
LOWsrc/LunaTranslator/LunaTranslator.py1520CODE
LOWsrc/LunaTranslator/LunaTranslator.py1693CODE
LOWsrc/LunaTranslator/zhconv.py30CODE
LOWsrc/LunaTranslator/requests.py219CODE
LOWsrc/LunaTranslator/requests.py294CODE
LOWsrc/LunaTranslator/main.py202CODE
LOWsrc/LunaTranslator/main.py272CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py2964CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py2987CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py3103CODE
LOWsrc/LunaTranslator/textio/textsource/mssr.py258CODE
LOWsrc/LunaTranslator/textio/textsource/ocrtext.py185CODE
LOWsrc/LunaTranslator/textio/textsource/filetrans.py194CODE
LOWsrc/LunaTranslator/textio/textsource/filetrans.py212CODE
LOWsrc/LunaTranslator/textio/textsource/textsourcebase.py130CODE
LOWsrc/LunaTranslator/textio/textsource/texthook.py560CODE
LOWsrc/LunaTranslator/textio/textsource/texthook.py584CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py41CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py82CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py238CODE
LOW…c/LunaTranslator/network/server/servicecollection_1.py12CODE
LOWsrc/LunaTranslator/network/client/libcurl/requester.py75CODE
LOWsrc/LunaTranslator/ocrengines/tesseract5.py67CODE
LOWsrc/LunaTranslator/ocrengines/googlecloudvision.py7CODE
LOWsrc/LunaTranslator/ocrengines/volcengine.py354CODE
LOWsrc/LunaTranslator/ocrengines/local.py184CODE
LOWsrc/LunaTranslator/ocrengines/local.py226CODE
LOWsrc/LunaTranslator/ocrengines/local.py355CODE
LOWsrc/LunaTranslator/ocrengines/baseocrclass.py234CODE
LOWsrc/LunaTranslator/translator/huoshanapi.py336CODE
LOWsrc/LunaTranslator/translator/sakura_base.py73CODE
LOWsrc/LunaTranslator/translator/basetranslator.py275CODE
LOWsrc/LunaTranslator/translator/basetranslator.py332CODE
LOWsrc/LunaTranslator/translator/jb7.py16CODE
LOWsrc/LunaTranslator/translator/premt.py38CODE
LOWsrc/LunaTranslator/translator/rengong.py24CODE
LOWsrc/LunaTranslator/translator/rengong.py76CODE
LOWsrc/LunaTranslator/translator/rengong.py97CODE
LOWsrc/LunaTranslator/translator/gptcommon.py43CODE
LOWsrc/LunaTranslator/translator/gptcommon.py149CODE
LOWsrc/LunaTranslator/translator/gptcommon.py174CODE
140 more matches not shown…
Over-Commented Block159 hits · 158 pts
SeverityFileLineSnippetContext
LOW.github/workflows/buildlunahook.yml21 with:COMMENT
LOW.github/workflows/buildlunahook.yml41 # with:COMMENT
LOWsrc/NativeImpl/pch.h1#pragma onceCOMMENT
LOWsrc/NativeImpl/pch.h21#include <variant>COMMENT
LOWsrc/NativeImpl/pch.h41#include <shlwapi.h>COMMENT
LOWsrc/NativeImpl/pch.h61#include <cctype>COMMENT
LOWsrc/NativeImpl/pch.h81#include <dxgi.h>COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/NoEngine.h41COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/NoEngine.h121 };COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/NoEngine.h141// return (Util::CheckFile(str));COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection64.cpp1#include "engine64/Godot.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection64.cpp21#include "engine64/LightVN.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/veh_hook.h1/**COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/pchhook.h1#include "../include/pch.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/pchhook.h21#include "emulators/emujitarg.hpp"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp1#include "engine32/LovaGame.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp21#include "engine32/Cage.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp41#include "engine32/GSX.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp61#include "engine32/Lightvn.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp81#include "engine32/Elf.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp101#include "engine32/sakusesu.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp121#include "engine32/GROOVER.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp141#include "engine32/XUSE.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp161#include "engine32/RpgmXP.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp181#include "engine32/Anim.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp201#include "engine32/5pb.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Cotopha.cpp541 if (text[0] == w_open && text[::wcslen(text) - 1] == w_close)COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Cotopha.cpp561 // 004DBFF8 3BF3 CMP ESI,EBXCOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Abel.h21 // name[len-2] = L'.';COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Abel.h41 // len++;COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/ScrPlayer.cpp41 // Rendezvous ~ランデブー~COMMENT
LOW…c/NativeImpl/LunaHook/LunaHook/engine32/TinkerBell.cpp41}COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/LunaSoft.cpp61// char *str = reinterpret_cast<char *>(data),COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/lucifen.cpp81 // LPCSTR **v2; // ebxCOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/lucifen.cpp101 // char v23; // clCOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/lucifen.cpp181 }COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/System4x.cpp81 * 005C410A CC INT3COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/System4x.cpp101 // do {COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/System4x.cpp1041COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/System4x.cpp1541 return false;COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Lightvn.cpp1#include "Lightvn.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/LCScript.cpp41 * New line splitter: 0203 ()COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/LCScript.cpp641 // 0042FC03 8B15 E8234A00 MOV EDX,DWORD PTR DS:[0x4A23E8] ; jichi: text hereCOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Ryokucha.cpp201{COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/WillPlus.cpp581bool willX()COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Minori.cpp621 // 013BF010 8975 E8 MOV DWORD PTR SS:[EBP-0x18],ESICOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/ransel.h1COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Elf.cpp341 // lastCaller = MemDbg::findEnclosingAlignedFunction(lastCaller);COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Hug.h1// FILEVERSION 1,0,0,0COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/VALKYRIA.cpp41 // case 'U':COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/KiriKiri.cpp1401 {COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Malie.cpp241 // 0D7D7E00 07 00 08 00 76 00 5F 00 7A 00 65 00 70 00 30 00 v_zep0COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Malie.cpp1161 {COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Malie.cpp1181 // 00463152 57 PUSH EDICOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/BGI.cpp461 * 00A643C5 898C24 94000000 MOV DWORD PTR SS:[ESP+0x94],ECXCOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/NeXAS.cpp321 strReplace(s, "@d");COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/AOS.cpp61 */COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Circus.cpp601 //COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Bruns.h21COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/HorkEye.cpp301 0x64, 0xa1, 0x00, 0x00, 0x00, 0x00,COMMENT
99 more matches not shown…
Excessive Try-Catch Wrapping65 hits · 82 pts
SeverityFileLineSnippetContext
MEDIUMsrc/NativeImpl/LunaHook/LunaHook/engine32/PiAS.py9 print(f"Error: {file_path} not found.")CODE
LOW…mpl/LunaHook/LunaHook/engine32/PiAS_Ningyou_no_Hako.py376 except Exception as e:CODE
LOWsrc/NativeImpl/exec/PyStand.cpp282except Exception as e:CODE
LOWsrc/NativeImpl/exec/PyStand.cpp301except Exception:CODE
MEDIUMsrc/LunaTranslator/LunaTranslator.py189def __safeinvoke(self, fobj):CODE
MEDIUMsrc/LunaTranslator/LunaTranslator.py936def __usewhich(self):CODE
LOWsrc/LunaTranslator/LunaTranslator.py611 except Exception as e:CODE
LOWsrc/LunaTranslator/LunaTranslator.py1188 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/requests.py453 print("Error invalid timeout", timeout)CODE
LOWsrc/LunaTranslator/main.py228 except Exception:CODE
LOWsrc/LunaTranslator/textio/textsource/texthook.py499 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/textio/textsource/texthook.py162def edit_selectedhook_remove(self, key):CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py284 except Exception as e:CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py369 except Exception as e:CODE
LOW…c/LunaTranslator/network/server/servicecollection_1.py16 except Exception as e:CODE
LOWsrc/LunaTranslator/network/client/libcurl/requester.py177 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/network/client/libcurl/requester.py174def ___perform():CODE
LOWsrc/LunaTranslator/ocrengines/volcengine.py424 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/ocrengines/volcengine.py420def ocr_api(self, action, form, session):CODE
LOWsrc/LunaTranslator/ocrengines/local.py54 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/ocrengines/local.py50def downloadxSafe(self, data):CODE
LOWsrc/LunaTranslator/ocrengines/baseocrclass.py434 except Exception as e:CODE
LOWsrc/LunaTranslator/ocrengines/baseocrclass.py477 except Exception as e:CODE
LOWsrc/LunaTranslator/ocrengines/SnippingTool.py143 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/ocrengines/SnippingTool.py131def downloadxSafe(self, url):CODE
LOWsrc/LunaTranslator/ocrengines/mangaocr.py27 except Exception as e:CODE
LOWsrc/LunaTranslator/translator/basetranslator.py70 except Exception as e:CODE
LOWsrc/LunaTranslator/translator/basetranslator.py120 except Exception as e:CODE
LOWsrc/LunaTranslator/translator/basetranslator.py264 except Exception as e:CODE
LOWsrc/LunaTranslator/translator/basetranslator.py380 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/translator/basetranslator.py67def run(self):CODE
LOWsrc/LunaTranslator/translator/chromeai.py51 except Exception as e:CODE
LOWsrc/LunaTranslator/cishu/mdict.py788 except Exception as e:CODE
LOWsrc/LunaTranslator/cishu/cishubase.py92 except Exception as e:CODE
LOWsrc/LunaTranslator/tts/basettsclass.py52 except Exception as e:CODE
LOWsrc/LunaTranslator/tts/basettsclass.py211 except Exception as e:CODE
LOWsrc/LunaTranslator/tts/voiceroid_aivoice.py13except Exception:CODE
LOWsrc/LunaTranslator/tts/gptsovits.py82 except Exception:CODE
LOWsrc/LunaTranslator/gui/rcdownload.py65 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/rcdownload.py186 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/gui/rcdownload.py60def downloadxSafe(self, url):CODE
MEDIUMsrc/LunaTranslator/gui/rcdownload.py181def downloadxSafe(self, url):CODE
LOWsrc/LunaTranslator/gui/transhist.py746 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/textbrowser.py59 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/dialog_memory.py373 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/inputdialog.py568 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/inputdialog.py836 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/gui/usefulwidget.py1920def tryMessage(self, func, *args):CODE
MEDIUMsrc/LunaTranslator/gui/usefulwidget.py2315def _createwebview(self, shoudong=False, transp=False):CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py1923 except Exception as e:STRING
LOWsrc/LunaTranslator/gui/usefulwidget.py2320 except Exception as e:STRING
LOWsrc/LunaTranslator/gui/showword.py573 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/gui/setting/translate.py1448def firstshow(self, _=None):CODE
LOWsrc/LunaTranslator/gui/setting/translate.py1456 except Exception as e:CODE
LOWsrc/LunaTranslator/myutils/wrapper.py100 except Exception as ex:CODE
LOWsrc/LunaTranslator/myutils/config.py472 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/myutils/config.py13def relpath(path):CODE
LOWsrc/LunaTranslator/myutils/hwnd.py59 except Exception as e:CODE
LOWsrc/LunaTranslator/myutils/ocrutil.py72 except Exception as e:CODE
LOWsrc/LunaTranslator/myutils/commonbase.py99 except Exception as e:CODE
5 more matches not shown…
Hallucination Indicators6 hits · 75 pts
SeverityFileLineSnippetContext
CRITICALsrc/LunaTranslator/network/server/servicecollection.py75 traces = gobject.base.translation_ui.translate_text.trace.copy()CODE
CRITICALsrc/LunaTranslator/htmlcode/uiwebview/mainui.html814 ele.parentNode.parentNode.parentNode.childNodes.forEach((e) => {CODE
CRITICALsrc/LunaTranslator/gui/setting/display_text.py239 callback=lambda x: gobject.base.translation_ui.translate_text.textbrowser.loadex(),CODE
CRITICALsrc/LunaTranslator/gui/setting/hotkey.py227 "_29": lambda: gobject.base.searchwordW.ankiwindow.recordbtn1.click(),CODE
CRITICALsrc/LunaTranslator/gui/setting/hotkey.py228 "_30": lambda: gobject.base.searchwordW.ankiwindow.recordbtn2.click(),CODE
CRITICALsrc/LunaTranslator/gui/setting/hotkey.py231 "_35": lambda: gobject.base.searchwordW.ankiconnect.customContextMenuRequested.emit(CODE
Hyper-Verbose Identifiers66 hits · 66 pts
SeverityFileLineSnippetContext
LOW…tiveImpl/LunaHook/LunaHook/resource/renpy_hook_font.py48 def hook_renpy_text_font_get_font_init(original):CODE
LOWsrc/LunaTranslator/LunaTranslator.py530 def maybeneedtranslateshowhidetranslate(self):CODE
LOWsrc/LunaTranslator/LunaTranslator.py1411 def __dontshowintaborsetbackdrop(self, widget: QWidget):CODE
LOWsrc/LunaTranslator/requests.py77 def stream_decode_response_unicode(self, iterator):CODE
LOWsrc/LunaTranslator/transoptimi/noundict.py39 def get_setting_window_gameprivate(parent_window, gameuid):CODE
LOWsrc/LunaTranslator/transoptimi/vndbnamemap.py22 def get_setting_window_gameprivate(parent_window, gameuid):CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py509def connects_with_letter_before(letter, LETTERS):CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py516def connects_with_letter_after(letter, LETTERS):CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py523def connects_with_letters_before_and_after(letter, LETTERS):CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py2964def config_for_true_type_font(font_file_path, ligatures_config=ENABLE_ALL_LIGATURES):CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py3098 def _get_ligature_forms_from_re_group_index(self, group_index):CODE
LOWsrc/LunaTranslator/transoptimi/transerrorfix.py20 def get_setting_window_gameprivate(parent_window, gameuid):CODE
LOWsrc/LunaTranslator/textio/textsource/texthook.py747 def delaycollectallselectedoutput(self):CODE
LOWsrc/LunaTranslator/textio/textsource/texthook.py768 def dispatchtext_multiline_delayed(self, key, text):CODE
LOWsrc/LunaTranslator/translator/basetranslator.py244 def _gpt_common_parse_context(CODE
LOWsrc/LunaTranslator/translator/premt.py12 def unsafegetcurrentgameconfig(self):CODE
LOWsrc/LunaTranslator/translator/hwcloud.py147 def _process_canonical_request(self, request: Req, signed_headers):CODE
LOWsrc/LunaTranslator/translator/hwcloud.py186 def process_canonical_query_string(cls, request):CODE
LOWsrc/LunaTranslator/translator/hwcloud.py190 def _process_canonical_query_string(cls, request: Req):CODE
LOWsrc/LunaTranslator/translator/hwcloud.py213 def _process_canonical_headers(self, request: Req, signed_headers):CODE
LOWsrc/LunaTranslator/translator/hwcloud.py245 def _process_auth_header_value(self, signature, app_key, signed_headers):CODE
LOWsrc/LunaTranslator/translator/rengong.py36 def unsafegetcurrentgameconfig(self):CODE
LOWsrc/LunaTranslator/translator/gptcommon.py407 def __gpt_create_query_maybe_with_dict(self, query_2: GptTextWithDict, _has_1):CODE
LOWsrc/LunaTranslator/translator/cdp_helper.py75 def check_url_is_translator_url(self, url: str):CODE
LOWsrc/LunaTranslator/cishu/mdict.py399 def __parse_css_fontface_url_local(self, index: IndexBuilder, css: str):STRING
LOWsrc/LunaTranslator/cishu/mdict_/readmdict.py80def _decrypt_regcode_by_userid(reg_code: bytes, userid: bytes) -> bytes:CODE
LOWsrc/LunaTranslator/htmlcode/uiwebview/mainui.html475 function mergeRectsAbsoluteInplace(list, tolerance = 0.1) {CODE
LOWsrc/LunaTranslator/gui/specialwidget.py727 def calc_last_next_line_offset(self, idx, last, shu=True):CODE
LOWsrc/LunaTranslator/gui/selecthook.py467 def update_item_new_line_function(self, key, output: str):CODE
LOWsrc/LunaTranslator/gui/selecthook.py975 def textbrowappendandmovetoend(CODE
LOWsrc/LunaTranslator/gui/transhist.py205 def ifformatchangedrewriteautosave(trace):CODE
LOWsrc/LunaTranslator/gui/textbrowser.py342 def set_word_hover_show_word_info(self, _):CODE
LOWsrc/LunaTranslator/gui/edittext.py212 def unsafegetcurrentgameconfig(self):CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py686 def adjust_window_to_screen_bounds(self, screen_rect: QRect):CODE
LOWsrc/LunaTranslator/gui/showword.py807 def __ocr_search_word_save_image(self, img: QImage):CODE
LOWsrc/LunaTranslator/gui/showword.py1456 def __show_dict_result_function(self, timestamp, k, res: "str|Exception"):CODE
LOWsrc/LunaTranslator/gui/showword.py1686 def luna_recheck_current_html(self, html):CODE
LOWsrc/LunaTranslator/gui/showword.py1689 def switch_hightlightmode_callback(self, ishightlight):CODE
LOWsrc/LunaTranslator/gui/showword.py1751 def __parsemaybeplaymdictaudio(self, html):CODE
LOWsrc/LunaTranslator/gui/showword.py2115 def _click_word_search_function(self, word: str, sentence, append, readydata=None):CODE
LOWsrc/LunaTranslator/gui/translatorUI.py1552 def changemousetransparentstate(self, idx):STRING
LOWsrc/LunaTranslator/gui/rendertext/textbrowser.py635 def set_word_hover_show_word_info(self, _):CODE
LOWsrc/LunaTranslator/gui/rendertext/webview.py130 def set_word_hover_show_word_info(self, action):CODE
LOWsrc/LunaTranslator/gui/gamemanager/dialog.py519 def get_shrunk_rounded_rect_path(self, rect: QRectF, r, shrink_width):CODE
LOWsrc/LunaTranslator/gui/gamemanager/setting.py1173 def __privatetextproc_showmenu(self, p):CODE
LOWsrc/LunaTranslator/gui/gamemanager/setting.py1193 def __privatetextproc_moverank(self, dy):CODE
LOWsrc/LunaTranslator/gui/setting/display_text.py104def createinternalfontsettings(self, forml: LFormLayout, group, _type):CODE
LOWsrc/LunaTranslator/gui/setting/translate.py549def update_context_from_slider(value):CODE
LOWsrc/LunaTranslator/gui/setting/translate.py1517def detect_llama_installed_archs(llamaserver: str):CODE
LOWsrc/LunaTranslator/gui/setting/hotkey.py83def invoke_liandianqi_or_stop():CODE
LOWsrc/LunaTranslator/gui/setting/display_ui.py36def createhorizontal_slider_pic():CODE
LOWsrc/LunaTranslator/gui/setting/display_ui.py137def createhorizontal_slider_tool():CODE
LOWsrc/LunaTranslator/gui/setting/display_ui.py209def checkthemesettingvisandapply(self, _):CODE
LOWsrc/LunaTranslator/metadata/abstract.py74 def __tasks_searchfordata_thread(self):CODE
LOWsrc/LunaTranslator/metadata/abstract.py105 def __tasks_downloadimg_thread(self):CODE
LOWsrc/LunaTranslator/myutils/post.py256def _remove_non_shiftjis_char(line: str):CODE
LOWsrc/LunaTranslator/myutils/post.py286def _remove_not_in_ja_bracket(line: str):CODE
LOWsrc/LunaTranslator/myutils/updater.py116def updatemethod_checkalready(savep, sha256):CODE
LOWsrc/LunaTranslator/myutils/utils.py414def find_or_create_uid_for_emu(targetlist: list, gameid: str, emuid: str, title=None):CODE
LOWsrc/LunaTranslator/myutils/utils.py683def loadpostsettingwindowmethod_maybe(name, parent):CODE
6 more matches not shown…
Decorative Section Separators9 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py89# -----------COMMENT
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py98# ----------------------------COMMENT
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py103# ------------------------------------------------------------------COMMENT
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py16# ====================================================================COMMENT
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py28# -----------------------------------------------------------COMMENT
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py57# ------------------------------------------------------------------COMMENT
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py146# ----------COMMENT
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py160# ----------------COMMENT
MEDIUMsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py260# --------------------------------------------------------------------------COMMENT
Cross-Language Confusion8 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…mpl/LunaHook/LunaHook/engine32/PiAS_Ningyou_no_Hako.py285 if (isNaN(idx) || idx < 0 || idx >= {total_chars}) {{CODE
HIGHsrc/LunaTranslator/gui/transhist.py432 _s = font.toString()CODE
HIGHsrc/LunaTranslator/gui/transhist.py592 _s = font.toString()CODE
HIGHsrc/LunaTranslator/gui/usefulwidget.py2163 if seq.toString():STRING
HIGHsrc/LunaTranslator/gui/usefulwidget.py2176 if self.callonlymod and not value.toString():STRING
HIGHsrc/LunaTranslator/gui/usefulwidget.py2192 self.changeedvent.emit(value.toString().replace("Meta", "Win"))STRING
HIGHsrc/LunaTranslator/gui/rendertext/textbrowser.py1024 if (_.text() != subtext[i]) or (_.font().toString != font.toString()):CODE
HIGHsrc/LunaTranslator/gui/gamemanager/common.py351 _s = font.toString()STRING
AI Structural Patterns23 hits · 22 pts
SeverityFileLineSnippetContext
LOWsrc/LunaTranslator/sometypes.py21CODE
LOWsrc/LunaTranslator/LunaTranslator.py544CODE
LOWsrc/LunaTranslator/LunaTranslator.py582CODE
LOWsrc/LunaTranslator/requests.py388CODE
LOWsrc/LunaTranslator/transoptimi/transerrorfix.py36CODE
LOWsrc/LunaTranslator/ocrengines/chatgptlike.py104CODE
LOWsrc/LunaTranslator/translator/huoshanapi.py404CODE
LOWsrc/LunaTranslator/translator/gptcommon.py506CODE
LOWsrc/LunaTranslator/cishu/chatgptlike.py57CODE
LOWsrc/LunaTranslator/cishu/chatgptlike.py128CODE
LOWsrc/LunaTranslator/cishu/mdict_/readmdict.py701CODE
LOWsrc/LunaTranslator/tts/vitsSimpleAPI.py55CODE
LOWsrc/LunaTranslator/tts/_chrome.py193CODE
LOWsrc/LunaTranslator/tts/bcuttts.py72CODE
LOWsrc/LunaTranslator/tts/gptsovits.py49CODE
LOWsrc/LunaTranslator/tts/chatgpttts.py75CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py1129CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py1210CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py2604CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py2990CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py3245CODE
LOWsrc/LunaTranslator/myutils/utils.py1144CODE
LOWsrc/scripts/autocommit/somecommon.py19CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py134# In this example,COMMENT
Fake / Example Data7 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/LunaTranslator/defaultconfig/config.json1387 "placeholder": "{sentence}\nword:{word}",CODE
LOWsrc/LunaTranslator/defaultconfig/config.json1451 "placeholder": "You are a professional dictionary assistant whose task is to help users search for iCODE
LOWsrc/LunaTranslator/defaultconfig/ocrsetting.json322 "placeholder": "Recognize the {srclang} text in the picture."CODE
LOWsrc/LunaTranslator/defaultconfig/translatorsetting.json476 "placeholder": "{DictWithPrompt[When translating, please ensure to translate the specified nouns into the translatioCODE
LOWsrc/LunaTranslator/defaultconfig/translatorsetting.json561 "placeholder": "You are a translator. Please help me translate the following {srclang} text into {tgtlang}. You shouCODE
LOWsrc/LunaTranslator/gui/inputdialog.py701 lineW.setPlaceholderText(line.get("placeholder", ""))CODE
LOWsrc/LunaTranslator/gui/inputdialog.py744 lineW.setPlaceholderText(line.get("placeholder", ""))CODE
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Wolf.cpp48 // Step 1: find the address of GetTextMetricsACOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Wolf.cpp49 // Step 2: find where this function is calledCOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Wolf.cpp50 // Step 3: search "sub esp, XX" after where it is calledCOMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Wolf.cpp48 // Step 1: find the address of GetTextMetricsACOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Wolf.cpp49 // Step 2: find where this function is calledCOMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/engine32/Wolf.cpp50 // Step 3: search "sub esp, XX" after where it is calledCOMMENT
AI Slop Vocabulary3 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMsrc/NativeImpl/xpundef/xp_winrt.hpp61 BSOS_PREFERDESTINATIONSTREAM // in addition, utilize IDestinationStreamFactory::GetDestinationStream.CODE
LOWsrc/LunaTranslator/tts/edgetts.py162 # without having to use a library. We'll just use UTC and hope for the best.COMMENT
LOWsrc/LunaTranslator/gui/markdownhighlighter.py330 # If empty line no need to check for below elements just returnCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…anslator_qss/PyQtDarkTheme/qdarktheme/_style_loader.py58Load the style sheet which looks like flat design. There are `dark` and `light` theme. Args: theme: The theSTRING
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/LunaTranslator/cishu/mdict_/ripemd128.py11# Usage:COMMENT
LOWsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py69# Sample usage:COMMENT
LOWsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py119# Sample usage:COMMENT
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/LunaTranslator/LunaTranslator.py1601 def set_font_default(self, lang: Languages, fonttype: str) -> None:CODE
LOWsrc/LunaTranslator/cishu/mdict_/ripemd128.py20__all__ = ["ripemd128"]CODE
LOWsrc/LunaTranslator/cishu/mdict_/pureSalsa20.py178__all__ = ["Salsa20"]CODE
LOWsrc/LunaTranslator/cishu/mdict_/readmdict.py47__all__ = ["MDD", "MDX"]CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/LunaTranslator/tts/edgetts.py95 # Create the string to hash by concatenating the ticks and the trusted client tokenCOMMENT
Redundant / Tautological Comments2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/LunaTranslator/tts/edgetts.py237 # Check if our response is text data or the audio bytesCOMMENT
LOW…anslator_qss/PyQtDarkTheme/qdarktheme/_style_loader.py46 color_value[child_key] # Check if child_key exists.CODE