Repository Analysis

HIllya51/LunaTranslator

视觉小说翻译器 / Visual Novel Translator

4.2 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of HIllya51/LunaTranslator, a C++ project with 12,939 GitHub stars. SynthScan v2.0 examined 263,792 lines of code across 1342 source files, recording 1073 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 4.2 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.2
Adjusted Score
4.2
Raw Score
100%
Time Factor
2026-08-27
Last Push
12.9K
Stars
C++
Language
263.8K
Lines of Code
1.3K
Files
1.1K
Pattern Hits
2026-08-29
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 8HIGH 10MEDIUM 31LOW 1024

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 1073 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 Imports481 hits · 345 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.py75CODE
LOWsrc/LunaTranslator/LunaTranslator.py76CODE
LOWsrc/LunaTranslator/LunaTranslator.py77CODE
LOWsrc/LunaTranslator/requests.py3CODE
LOWsrc/LunaTranslator/gobject.py69CODE
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
421 more matches not shown…
Deep Nesting207 hits · 200 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.py228CODE
LOWsrc/LunaTranslator/LunaTranslator.py369CODE
LOWsrc/LunaTranslator/LunaTranslator.py415CODE
LOWsrc/LunaTranslator/LunaTranslator.py444CODE
LOWsrc/LunaTranslator/LunaTranslator.py461CODE
LOWsrc/LunaTranslator/LunaTranslator.py475CODE
LOWsrc/LunaTranslator/LunaTranslator.py859CODE
LOWsrc/LunaTranslator/LunaTranslator.py951CODE
LOWsrc/LunaTranslator/LunaTranslator.py997CODE
LOWsrc/LunaTranslator/LunaTranslator.py1038CODE
LOWsrc/LunaTranslator/LunaTranslator.py1216CODE
LOWsrc/LunaTranslator/LunaTranslator.py1238CODE
LOWsrc/LunaTranslator/LunaTranslator.py1575CODE
LOWsrc/LunaTranslator/LunaTranslator.py1747CODE
LOWsrc/LunaTranslator/zhconv.py30CODE
LOWsrc/LunaTranslator/requests.py219CODE
LOWsrc/LunaTranslator/requests.py294CODE
LOWsrc/LunaTranslator/main.py149CODE
LOWsrc/LunaTranslator/main.py219CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py2964CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py2987CODE
LOWsrc/LunaTranslator/transoptimi/arabic_reshaper.py3103CODE
LOWsrc/LunaTranslator/textio/textsource/mssr.py223CODE
LOWsrc/LunaTranslator/textio/textsource/ocrtext.py188CODE
LOWsrc/LunaTranslator/textio/textsource/filetrans.py198CODE
LOWsrc/LunaTranslator/textio/textsource/filetrans.py216CODE
LOWsrc/LunaTranslator/textio/textsource/textsourcebase.py130CODE
LOWsrc/LunaTranslator/textio/textsource/texthook.py556CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py41CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py82CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py241CODE
LOW…c/LunaTranslator/network/server/servicecollection_1.py12CODE
LOWsrc/LunaTranslator/network/client/libcurl/requester.py75CODE
LOWsrc/LunaTranslator/ocrengines/tesseract5.py57CODE
LOWsrc/LunaTranslator/ocrengines/googlecloudvision.py7CODE
LOWsrc/LunaTranslator/ocrengines/volcengine.py357CODE
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.py281CODE
LOWsrc/LunaTranslator/translator/basetranslator.py337CODE
LOWsrc/LunaTranslator/translator/jb7.py14CODE
LOWsrc/LunaTranslator/translator/premt.py62CODE
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
LOWsrc/LunaTranslator/cishu/mdict.py202CODE
147 more matches not shown…
Over-Commented Block169 hits · 168 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 <atlsync.h>COMMENT
LOWsrc/NativeImpl/pch.h41#include <comdef.h>COMMENT
LOWsrc/NativeImpl/pch.h61#include <shlobj.h>COMMENT
LOWsrc/NativeImpl/pch.h81#include <d3d11.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/RibbonMagic.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp41#include "engine32/FrontWing.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp61#include "engine32/RPGMakerRGSS3.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp81#include "engine32/Eushully.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp101#include "engine32/Tenco.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp121#include "engine32/Live.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp141#include "engine32/Nitroplus.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp161#include "engine32/Minori.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp181#include "engine32/Pensil.h"COMMENT
LOWsrc/NativeImpl/LunaHook/LunaHook/enginecollection32.cpp201#include "engine32/System4x.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
109 more matches not shown…
Hallucination Indicators8 hits · 95 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.py240 callback=lambda x: gobject.base.translation_ui.translate_text.textbrowser.loadex(),CODE
CRITICALsrc/LunaTranslator/gui/setting/hotkey.py238 "_29": lambda: gobject.base.searchwordW.ankiwindow.recordbtn1.click(),CODE
CRITICALsrc/LunaTranslator/gui/setting/hotkey.py239 "_30": lambda: gobject.base.searchwordW.ankiwindow.recordbtn2.click(),CODE
CRITICALsrc/LunaTranslator/gui/setting/hotkey.py242 "_35": lambda: gobject.base.searchwordW.ankiconnect.customContextMenuRequested.emit(CODE
CRITICALsrc/LunaTranslator/gui/setting/textinput.py407 lambda _: (gobject.base.textsource.engine.engine.show(not _)),CODE
CRITICALsrc/LunaTranslator/gui/setting/textinput.py416 lambda _: (gobject.base.textsource.engine.engine.setkill(_)),CODE
Excessive Try-Catch Wrapping71 hits · 90 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.py190def __safeinvoke(self, fobj):CODE
MEDIUMsrc/LunaTranslator/LunaTranslator.py951def __usewhich(self):CODE
LOWsrc/LunaTranslator/LunaTranslator.py625 except Exception as e:CODE
LOWsrc/LunaTranslator/LunaTranslator.py1203 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/requests.py453 print("Error invalid timeout", timeout)CODE
LOWsrc/LunaTranslator/main.py175 except Exception:CODE
LOWsrc/LunaTranslator/textio/textsource/mssr.py285 except Exception as e:CODE
LOWsrc/LunaTranslator/textio/textsource/texthook.py484 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/textio/textsource/texthook.py162def edit_selectedhook_remove(self, key):CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py287 except Exception as e:CODE
LOWsrc/LunaTranslator/network/server/tcpservice.py372 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.py427 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/ocrengines/volcengine.py423def 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.py144 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/ocrengines/SnippingTool.py132def downloadxSafe(self, url):CODE
LOWsrc/LunaTranslator/ocrengines/mangaocr.py27 except Exception as e:CODE
LOWsrc/LunaTranslator/translator/basetranslator.py76 except Exception as e:CODE
LOWsrc/LunaTranslator/translator/basetranslator.py126 except Exception as e:CODE
LOWsrc/LunaTranslator/translator/basetranslator.py270 except Exception as e:CODE
LOWsrc/LunaTranslator/translator/basetranslator.py385 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/translator/basetranslator.py73def 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/gptsovits.py82 except Exception:CODE
LOWsrc/LunaTranslator/tts/voiceroid2.py13except 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.py772 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/textbrowser.py61 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/dialog_memory.py381 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/dialog_memory.py467 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.py1930def tryMessage(self, func, *args):CODE
MEDIUMsrc/LunaTranslator/gui/usefulwidget.py2315def _createwebview(self, shoudong=False, transp=False):CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py1933 except Exception as e:STRING
LOWsrc/LunaTranslator/gui/usefulwidget.py2320 except Exception as e:STRING
LOWsrc/LunaTranslator/gui/showword.py668 except Exception as e:CODE
LOWsrc/LunaTranslator/gui/showword.py689 except Exception as e:CODE
MEDIUMsrc/LunaTranslator/gui/showword.py640def simulate_key(self, i):CODE
MEDIUMsrc/LunaTranslator/gui/setting/translate.py1643def firstshow(self, _=None):CODE
LOWsrc/LunaTranslator/gui/setting/translate.py1656 except Exception as e:CODE
LOWsrc/LunaTranslator/myutils/regedit.py12 except Exception:CODE
MEDIUMsrc/LunaTranslator/myutils/regedit.py9def __del__(self):CODE
11 more matches not shown…
Hyper-Verbose Identifiers70 hits · 70 pts
SeverityFileLineSnippetContext
LOW…tiveImpl/LunaHook/LunaHook/resource/renpy_hook_font.py48 def hook_renpy_text_font_get_font_init(original):CODE
LOWsrc/LunaTranslator/LunaTranslator.py531 def maybeneedtranslateshowhidetranslate(self):CODE
LOWsrc/LunaTranslator/LunaTranslator.py1425 def __dontshowintaborsetbackdrop(self, widget: QWidget):CODE
LOWsrc/LunaTranslator/requests.py77 def stream_decode_response_unicode(self, iterator):CODE
LOWsrc/LunaTranslator/transoptimi/noundict.py48 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.py722 def delaycollectallselectedoutput(self):CODE
LOWsrc/LunaTranslator/textio/textsource/texthook.py743 def dispatchtext_multiline_delayed(self, key, text):CODE
LOWsrc/LunaTranslator/translator/basetranslator.py250 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.py409 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.py474 def update_item_new_line_function(self, key, output: str):CODE
LOWsrc/LunaTranslator/gui/selecthook.py985 def textbrowappendandmovetoend(CODE
LOWsrc/LunaTranslator/gui/transhist.py211 def ifformatchangedrewriteautosave(trace):CODE
LOWsrc/LunaTranslator/gui/textbrowser.py344 def set_word_hover_show_word_info(self, _):CODE
LOWsrc/LunaTranslator/gui/edittext.py219 def unsafegetcurrentgameconfig(self):CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py688 def adjust_window_to_screen_bounds(self, screen_rect: QRect):CODE
LOWsrc/LunaTranslator/gui/showword.py721 def recordvediohotkeycallback(self, crop):CODE
LOWsrc/LunaTranslator/gui/showword.py967 def __ocr_search_word_save_image(self, img: QImage):CODE
LOWsrc/LunaTranslator/gui/showword.py1637 def __show_dict_result_function(self, timestamp, k, res: "str|Exception"):CODE
LOWsrc/LunaTranslator/gui/showword.py1883 def luna_recheck_current_html(self, html):CODE
LOWsrc/LunaTranslator/gui/showword.py1886 def switch_hightlightmode_callback(self, ishightlight):CODE
LOWsrc/LunaTranslator/gui/showword.py1948 def __parsemaybeplaymdictaudio(self, html):CODE
LOWsrc/LunaTranslator/gui/showword.py2346 def _click_word_search_function(self, word: str, sentence, append, readydata=None):CODE
LOWsrc/LunaTranslator/gui/translatorUI.py1235 def changemousetransparentstate(self, idx):STRING
LOWsrc/LunaTranslator/gui/rendertext/textbrowser.py651 def set_word_hover_show_word_info(self, _):CODE
LOWsrc/LunaTranslator/gui/rendertext/webview.py134 def set_word_hover_show_word_info(self, action):CODE
LOWsrc/LunaTranslator/gui/rendertext/webview.py347def get_sorted_toolbuttonitems():CODE
LOWsrc/LunaTranslator/gui/gamemanager/dialog.py507 def get_shrunk_rounded_rect_path(self, rect: QRectF, r, shrink_width):CODE
LOWsrc/LunaTranslator/gui/gamemanager/setting.py1203 def __privatetextproc_showmenu(self, p):CODE
LOWsrc/LunaTranslator/gui/gamemanager/setting.py1223 def __privatetextproc_moverank(self, dy):CODE
LOWsrc/LunaTranslator/gui/setting/display_text.py113def createinternalfontsettings(self, forml: LFormLayout, group, _type):CODE
LOWsrc/LunaTranslator/gui/setting/translate.py458def show_tscolor_setting_guide():CODE
LOWsrc/LunaTranslator/gui/setting/translate.py776def update_context_from_slider(value):CODE
LOWsrc/LunaTranslator/gui/setting/translate.py1717def detect_llama_installed_archs(llamaserver: str):CODE
LOWsrc/LunaTranslator/gui/setting/hotkey.py82def 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.py224def legacy_string_replace_with_escape(line: str, args: dict) -> str:CODE
LOWsrc/LunaTranslator/myutils/post.py251def _remove_non_shiftjis_char(line: str) -> str:CODE
10 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.py452 _s = font.toString()CODE
HIGHsrc/LunaTranslator/gui/transhist.py612 _s = font.toString()CODE
HIGHsrc/LunaTranslator/gui/usefulwidget.py2180 if seq.toString():STRING
HIGHsrc/LunaTranslator/gui/usefulwidget.py2196 if self.callonlymod and not value.toString():STRING
HIGHsrc/LunaTranslator/gui/usefulwidget.py2212 self.changeedvent.emit(value.toString().replace("Meta", "Win"))STRING
HIGHsrc/LunaTranslator/gui/rendertext/textbrowser.py1040 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.py550CODE
LOWsrc/LunaTranslator/LunaTranslator.py590CODE
LOWsrc/LunaTranslator/requests.py388CODE
LOWsrc/LunaTranslator/transoptimi/transerrorfix.py36CODE
LOWsrc/LunaTranslator/ocrengines/chatgptlike.py135CODE
LOWsrc/LunaTranslator/translator/huoshanapi.py404CODE
LOWsrc/LunaTranslator/translator/gptcommon.py504CODE
LOWsrc/LunaTranslator/cishu/chatgptlike.py55CODE
LOWsrc/LunaTranslator/cishu/chatgptlike.py126CODE
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.py1148CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py1229CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py2635CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py3021CODE
LOWsrc/LunaTranslator/gui/usefulwidget.py3282CODE
LOWsrc/LunaTranslator/myutils/utils.py1242CODE
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.json1197 "placeholder": "{sentence}\nword:{word}",CODE
LOWsrc/LunaTranslator/defaultconfig/config.json1261 "placeholder": "You are a professional dictionary assistant whose task is to help users search for iCODE
LOWsrc/LunaTranslator/defaultconfig/ocrsetting.json323 "placeholder": "Recognize the {srclang} text in the picture."CODE
LOWsrc/LunaTranslator/defaultconfig/translatorsetting.json466 "placeholder": "{DictWithPrompt[When translating, please ensure to translate the specified nouns into the translatioCODE
LOWsrc/LunaTranslator/defaultconfig/translatorsetting.json551 "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 Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
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