Repository Analysis

NEKOparapa/AiNiee

一款专注于Ai翻译的工具,一键自动翻译RPG SLG游戏,Epub TXT小说,PDF Word MD文档,Srt Vtt Lrc字幕等等复杂长文本。

16.5 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of NEKOparapa/AiNiee, a Python project with 6,107 GitHub stars. SynthScan v2.0 examined 55,748 lines of code across 277 source files, recording 788 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 16.5 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

16.5
Adjusted Score
16.5
Raw Score
100%
Time Factor
2026-08-07
Last Push
6.1K
Stars
Python
Language
55.7K
Lines of Code
277
Files
788
Pattern Hits
2026-08-09
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 1MEDIUM 70LOW 717

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 788 distinct pattern matches across 14 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 Wrapping236 hits · 294 pts
SeverityFileLineSnippetContext
LOWAiNiee.py172 except Exception as e:CODE
LOWModuleFolders/Config/Config.py51 except Exception as error:CODE
LOWModuleFolders/Log/Log.py31 except Exception:CODE
LOWModuleFolders/Log/Log.py40 except Exception:CODE
LOWModuleFolders/Log/Log.py70 except Exception:CODE
LOWModuleFolders/Log/Log.py110 except Exception:CODE
MEDIUMModuleFolders/Log/Log.py37def _safe_str(value) -> str:CODE
MEDIUMModuleFolders/Log/LogSystem.py312def flush(self):CODE
MEDIUMModuleFolders/Log/LogSystem.py333def isatty(self):CODE
MEDIUMModuleFolders/Log/LogSystem.py414def _excepthook(exc_type, exc_value, exc_tb) -> None:CODE
LOWModuleFolders/Log/LogSystem.py258 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py262 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py270 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py398 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py406 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py410 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py419 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py112 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py209 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py224 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py293 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py308 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py315 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py330 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py336 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py371 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py432 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py457 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py476 except Exception:CODE
LOWModuleFolders/Log/LogSystem.py511 except Exception as e:CODE
LOWModuleFolders/Log/LogSystem.py532 except Exception as e:CODE
LOWModuleFolders/Service/Cache/CacheItem.py84 except Exception as e:CODE
LOWModuleFolders/Service/Cache/CacheItem.py118 except Exception as e:CODE
MEDIUMModuleFolders/Service/Cache/CacheManager.py656 print(f"Error: 找不到文件 {storage_path}")CODE
MEDIUMModuleFolders/Service/Cache/CacheManager.py682 print(f"Error: 找不到文件 {storage_path}")CODE
LOW…eFolders/Service/TranslationChecker/LanguageChecker.py261 except Exception as e:CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py213 except Exception:CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py242 except Exception:CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py257 except Exception:CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py269 except Exception as e:CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py293 except Exception as e:CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py438 except Exception as e:CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py570 except Exception as e:CODE
LOWModuleFolders/Service/NameExtractor/NameExtractor.py242 except Exception as e:CODE
LOWModuleFolders/Service/HttpService/HttpService.py95 except Exception as e:CODE
LOWModuleFolders/Service/HttpService/HttpService.py293 except Exception as e:CODE
LOWModuleFolders/Service/HttpService/HttpService.py337 except Exception as e:CODE
LOWModuleFolders/Service/HttpService/HttpService.py374 except Exception as e:CODE
MEDIUMModuleFolders/Service/HttpService/HttpService.py199def _parse_int(value) -> int:CODE
MEDIUMModuleFolders/Service/HttpService/HttpService.py350def send_request():CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py251 except Exception as error:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py211 except Exception as error:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py358 except Exception as error:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py690 except Exception as error:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py59 except Exception:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py171 except Exception as error:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py217 except Exception as error:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py237 except Exception as error:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py282 except Exception as error:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py321 except Exception as e:CODE
176 more matches not shown…
Hyper-Verbose Identifiers244 hits · 246 pts
SeverityFileLineSnippetContext
LOWAiNiee.py142def prepare_runtime_environment() -> str:CODE
LOWModuleFolders/Config/FilePathConfig.py100def is_windows_installer_build() -> bool:CODE
LOWModuleFolders/Config/FilePathConfig.py204def bundled_tiktoken_cache_dir() -> Path:CODE
LOWModuleFolders/Config/FilePathConfig.py259def default_polish_output_dir() -> Path:CODE
LOWModuleFolders/Log/Log.py114def _gui_rows_from_rich_table(value):CODE
LOWModuleFolders/Service/Cache/CacheManager.py65 def on_manual_save_cache_requested(self, event: int, data: dict) -> None:CODE
LOWModuleFolders/Service/Cache/CacheManager.py116 def get_project_statistics_path(cls, project_id: str) -> str:CODE
LOWModuleFolders/Service/Cache/CacheManager.py208 def _write_project_cache_files(cls, project: CacheProject) -> None:CODE
LOWModuleFolders/Service/Cache/CacheManager.py267 def _build_history_entry_from_stats(CODE
LOWModuleFolders/Service/Cache/CacheManager.py533 def _reset_project_status_in_memory(self, task_mode: int) -> int:CODE
LOWModuleFolders/Service/Cache/CacheManager.py671 def update_generated_translation(CODE
LOWModuleFolders/Service/Cache/CacheManager.py749 def generate_analysis_source_chunks(self, limit_type: str, limit_count: int) -> List[List[dict]]:CODE
LOW…eFolders/Service/TranslationChecker/LanguageChecker.py80 def _collect_lang_errors_from_cache(self) -> List[Dict]:CODE
LOW…eFolders/Service/TranslationChecker/LanguageChecker.py109 def _build_language_issue_rows_from_results(self, results: List[Dict]) -> List[Dict]:CODE
LOW…eFolders/Service/TranslationChecker/LanguageChecker.py151 def _build_language_report_rows(self, results: List[Dict]) -> List[Dict]:CODE
LOW…lders/Service/TranslationChecker/TerminologyChecker.py39 def _get_project_analysis_data(self) -> Dict[str, Any]:CODE
LOW…lders/Service/TranslationChecker/TerminologyChecker.py61 def _collect_merged_term_rows(self) -> List[Dict[str, str]]:CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py36 def _build_missing_preserve_error(self, label: str, src_detail: str) -> str:CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py47 def _get_project_analysis_data(self) -> Dict[str, Any]:CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py54 def _collect_merged_exclusion_data(self) -> List[Dict[str, str]]:CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py174 def glossary_translation_start(self, event: int, data: dict):CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py330 def handle_table_translation_start(self, event, data: dict):CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py335 def process_table_translation(self, data: dict):CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py472 def handle_table_polish_start(self, event, data: dict):CODE
LOWModuleFolders/Service/NameExtractor/NameExtractor.py203 def extract_names_from_folder(self,folder_path_str: str) -> list:CODE
LOWModuleFolders/Service/HttpService/HttpService.py18class RequestHandler(BaseHTTPRequestHandler):CODE
LOWModuleFolders/Service/TaskExecutor/TranslatorUtil.py58def map_language_code_to_name(language_code: str) -> str:CODE
LOWModuleFolders/Service/TaskExecutor/TranslatorUtil.py82def map_language_name_to_code(language_name: str) -> str:CODE
LOWModuleFolders/Service/TaskExecutor/TranslatorUtil.py101def get_language_display_names(source_lang, target_lang):CODE
LOWModuleFolders/Service/TaskExecutor/TranslatorUtil.py173def get_source_language_for_file(source_language,target_language, language_stats) -> str:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py255 def _get_recommended_translation_language_requirement(self) -> str:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py264 def _build_first_stage_prompt(self, source_text: str) -> tuple[str, list[dict]]:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py502 def _get_candidate_occurrence_count(self, source: str, candidate_type: str) -> int:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py606 def _calculate_progress_percent(self, phase: str, current: int = 0, total: int = 0) -> int:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py631 def _execute_analysis_request(CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py362 def _prepare_reduction_batches(self, first_stage_results: list) -> list:CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py417 def _build_second_stage_prompt(self, batch: list) -> tuple[str, list[dict]]:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py143 def _resolve_output_source_language(self, configured_source: str | None) -> str | None:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py155 def _resolve_output_target_language(configured_target: str | None) -> str | None:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py159 def _convert_translated_text_with_opencc(self, preset: str | None) -> bool:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py229 def table_proofread_start_target(self, data: dict) -> None:CODE
LOWModuleFolders/Service/TaskExecutor/ProofreadTask.py250 def _build_single_proofread_prompt(self, item: dict) -> tuple[list[dict], str]:CODE
LOWModuleFolders/Infrastructure/Tokener/TiktokenLoader.py26def _seed_cache_from_bundled_files(cache_dir: str, required_encodings: dict) -> None:CODE
LOWModuleFolders/Infrastructure/Tokener/TiktokenLoader.py179def copy_cache_from_system_temp():CODE
LOW…/Infrastructure/LLMRequester/AmazonbedrockRequester.py21 def request_amazonbedrock_anthropic(self, messages, system_prompt, platform_config) -> tuple[bool, str, str, int, inCODE
LOW…lders/Infrastructure/LLMRequester/ModelConfigHelper.py38 def _extract_claude_version_info(model_name: str) -> tuple[float, str]:CODE
LOW…lders/Infrastructure/LLMRequester/ModelConfigHelper.py83 def get_thinking_level_options(cls, model_name: str) -> list[str]:CODE
LOW…lders/Infrastructure/LLMRequester/ModelConfigHelper.py95 def get_claude_max_output_tokens(cls, model_name: str) -> int:CODE
LOW…lders/Infrastructure/LLMRequester/ModelConfigHelper.py132 def get_google_max_output_tokens(cls, model_name: str) -> int:CODE
LOW…olders/Infrastructure/LLMRequester/LLMClientFactory.py247 def _create_anthropic_bedrock(self, config):CODE
LOW…Folders/Infrastructure/LLMRequester/OpenaiRequester.py16 def apply_platform_thinking_params(self, base_params: dict, platform_config: dict) -> dict:CODE
LOWModuleFolders/Infrastructure/Platform/AppMetadata.py15def configure_application_metadata(app, version: str) -> None:CODE
LOWModuleFolders/Infrastructure/Platform/RuntimeSetup.py29def prepare_working_directory():CODE
LOWModuleFolders/Infrastructure/Platform/RuntimeSetup.py71def _migrate_legacy_user_data() -> bool:CODE
LOWModuleFolders/Infrastructure/Platform/RuntimeSetup.py118def _looks_like_pending_legacy_config() -> bool:CODE
LOWModuleFolders/Infrastructure/TaskConfig/TaskConfig.py46 def _normalize_project_table_rows(CODE
LOWModuleFolders/Infrastructure/TaskConfig/TaskConfig.py103 def _normalize_interface_role(self, interface_role: str | None) -> str:CODE
LOWModuleFolders/Infrastructure/TaskConfig/TaskConfig.py147 def resolve_platform_tag_for_role(self, interface_role: str | None = None) -> str | None:CODE
LOWModuleFolders/Infrastructure/TaskConfig/TaskConfig.py252 def sync_active_platform_settings(self) -> None:CODE
LOWModuleFolders/Infrastructure/TaskConfig/TaskConfig.py258 def prepare_for_active_platform(self, interface_role: str | None = None) -> None:CODE
184 more matches not shown…
Deep Nesting153 hits · 137 pts
SeverityFileLineSnippetContext
LOWModuleFolders/Config/Config.py33CODE
LOWModuleFolders/Config/Config.py57CODE
LOWModuleFolders/Config/Config.py120CODE
LOWModuleFolders/Log/LogSystem.py234CODE
LOWModuleFolders/Service/Cache/CacheProject.py75CODE
LOWModuleFolders/Service/Cache/CacheManager.py208CODE
LOWModuleFolders/Service/Cache/CacheManager.py443CODE
LOWModuleFolders/Service/Cache/CacheManager.py533CODE
LOWModuleFolders/Service/Cache/CacheManager.py651CODE
LOWModuleFolders/Service/Cache/CacheManager.py692CODE
LOWModuleFolders/Service/Cache/CacheManager.py734CODE
LOWModuleFolders/Service/Cache/BaseCache.py25CODE
LOWModuleFolders/Service/Cache/BaseCache.py64CODE
LOW…eFolders/Service/TranslationChecker/LanguageChecker.py109CODE
LOW…eFolders/Service/TranslationChecker/LanguageChecker.py174CODE
LOW…eFolders/Service/TranslationChecker/LanguageChecker.py309CODE
LOW…eFolders/Service/TranslationChecker/LanguageChecker.py459CODE
LOW…lders/Service/TranslationChecker/TerminologyChecker.py185CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py123CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py205CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py227CODE
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py246CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py41CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py179CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py335CODE
LOWModuleFolders/Service/SimpleExecutor/SimpleExecutor.py477CODE
LOWModuleFolders/Service/NameExtractor/NameExtractor.py12CODE
LOWModuleFolders/Service/NameExtractor/NameExtractor.py55CODE
LOWModuleFolders/Service/NameExtractor/NameExtractor.py73CODE
LOWModuleFolders/Service/NameExtractor/NameExtractor.py99CODE
LOWModuleFolders/Service/NameExtractor/NameExtractor.py203CODE
LOWModuleFolders/Service/HttpService/HttpService.py25CODE
LOWModuleFolders/Service/HttpService/HttpService.py109CODE
LOWModuleFolders/Service/TaskExecutor/TranslatorUtil.py136CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py47CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py514CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py631CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py16CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py352CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py545CODE
LOWModuleFolders/Service/TaskExecutor/ProofreadTask.py24CODE
LOWModuleFolders/Infrastructure/Tokener/BabeldocPatch.py20CODE
LOWModuleFolders/Infrastructure/Tokener/BabeldocPatch.py37CODE
LOWModuleFolders/Infrastructure/Tokener/TiktokenLoader.py72CODE
LOW…lders/Infrastructure/LLMRequester/ModelConfigHelper.py95CODE
LOW…lders/Infrastructure/LLMRequester/LocalLLMRequester.py12CODE
LOW…Folders/Infrastructure/LLMRequester/GoogleRequester.py15CODE
LOW…uleFolders/Infrastructure/LLMRequester/LLMRequester.py14CODE
LOW…ders/Infrastructure/LLMRequester/AnthropicRequester.py29CODE
LOW…eFolders/Domain/ResponseExtractor/ResponseExtractor.py131CODE
LOWModuleFolders/Domain/FileOutputer/DirectoryWriter.py25CODE
LOWModuleFolders/Domain/FileOutputer/PptxWriter.py20CODE
LOWModuleFolders/Domain/FileOutputer/CsvWriter.py19CODE
LOWModuleFolders/Domain/FileOutputer/FileOutputer.py180CODE
LOWModuleFolders/Domain/FileOutputer/RenpyWriter.py99CODE
LOWModuleFolders/Domain/FileOutputer/AssWriter.py39CODE
LOWModuleFolders/Domain/FileOutputer/TransWriter.py17CODE
LOWModuleFolders/Domain/FileOutputer/XlsxWriter.py24CODE
LOWModuleFolders/Domain/FileOutputer/VntWriter.py34CODE
LOWModuleFolders/Domain/FileOutputer/VntWriter.py81CODE
93 more matches not shown…
Decorative Section Separators24 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMModuleFolders/Service/Cache/CacheItem.py6# ============================================================COMMENT
MEDIUMModuleFolders/Service/Cache/CacheItem.py8# ============================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py333 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py335 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py498 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py500 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py602 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py604 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py627 # ---------------------------------------------------------COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py629 # ---------------------------------------------------------COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py43 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py45 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py229 # ========================================================================COMMENT
MEDIUMModuleFolders/Service/TaskExecutor/AnalysisTask.py231 # ========================================================================COMMENT
MEDIUMModuleFolders/Domain/FileOutputer/FileOutputer.py13# ----------------------------------------------------------------------------COMMENT
MEDIUMModuleFolders/Domain/FileOutputer/FileOutputer.py15# ----------------------------------------------------------------------------COMMENT
MEDIUMModuleFolders/Domain/FileOutputer/FileOutputer.py22# ----------------------------------------------------------------------------COMMENT
MEDIUMModuleFolders/Domain/FileReader/FileReader.py15# ----------------------------------------------------------------------------COMMENT
MEDIUMModuleFolders/Domain/FileReader/FileReader.py17# ----------------------------------------------------------------------------COMMENT
MEDIUMModuleFolders/Domain/FileReader/FileReader.py24# ----------------------------------------------------------------------------COMMENT
MEDIUMUserInterface/EditView/Analysis/AnalysisPage.py2089 # ==========================COMMENT
MEDIUMUserInterface/EditView/Analysis/AnalysisPage.py2091 # ==========================COMMENT
MEDIUMUserInterface/EditView/Analysis/AnalysisPage.py120 # ==========================COMMENT
MEDIUMUserInterface/EditView/Analysis/AnalysisPage.py122 # ==========================COMMENT
Modern Structural Boilerplate67 hits · 76 pts
SeverityFileLineSnippetContext
LOWModuleFolders/Service/Cache/CacheManager.py651 def update_item_text(self, storage_path: str, text_index: int, field_name: str, new_text: str) -> None:CODE
LOWModuleFolders/Service/Cache/CacheManager.py787 def set_analysis_data(self, analysis_data: dict) -> None:CODE
LOWModuleFolders/Service/TaskExecutor/TranslatorTask.py58 def set_items(self, items: list[CacheItem]) -> None:CODE
LOWModuleFolders/Service/TaskExecutor/TranslatorTask.py62 def set_previous_items(self, previous_items: list[CacheItem]) -> None:CODE
LOWModuleFolders/Service/TaskExecutor/PolisherTask.py36 def set_items(self, items: list[CacheItem]) -> None:CODE
LOWModuleFolders/Service/TaskExecutor/PolisherTask.py39 def set_previous_items(self, previous_items: list[CacheItem]) -> None:CODE
LOWModuleFolders/Service/TaskExecutor/TaskExecutor.py122 def _set_active_executor(self, executor: concurrent.futures.ThreadPoolExecutor) -> None:CODE
LOW…olders/Infrastructure/RequestLimiter/RequestLimiter.py18 def set_limit(self, rpm_limit: int) -> None:CODE
LOWUserInterface/EditView/EditViewPage.py64 def set_current_step(self, route_key: str) -> None:CODE
LOWUserInterface/EditView/Analysis/AnalysisPage.py978 def _set_filter_for_view(self, view_name: str, filter_value) -> None:CODE
LOWUserInterface/EditView/Analysis/AnalysisPage.py1929 def _update_action_buttons(self, running: bool | None = None) -> None:CODE
LOWUserInterface/EditView/Translation/MonitoringPage.py168 def update_time(self, event: int, data: dict) -> None:CODE
LOWUserInterface/EditView/Translation/MonitoringPage.py199 def update_line(self, event: int, data: dict) -> None:CODE
LOWUserInterface/EditView/Translation/MonitoringPage.py237 def update_task(self, event: int, data: dict) -> None:CODE
LOWUserInterface/EditView/Translation/MonitoringPage.py247 def update_token(self, event: int, data: dict) -> None:CODE
LOWUserInterface/EditView/Translation/MonitoringPage.py272 def update_stability(self, event: int, data: dict) -> None:CODE
LOWUserInterface/EditView/Translation/MonitoringPage.py296 def update_status(self, event: int, data: dict) -> None:CODE
LOWUserInterface/EditView/Translation/BottomCommandBar.py106 def update_task_action_button(self, mode: str | None) -> None:CODE
LOWUserInterface/EditView/Translation/BottomCommandBar.py257 def _update_reset_button_state(self) -> None:CODE
LOWUserInterface/EditView/Proofreading/ProofreadingPage.py133 def update_tree(self, hierarchy: dict) -> None:CODE
LOWUserInterface/EditView/Proofreading/ProofreadingPage.py190 def _update_action_state(self) -> None:CODE
LOW…terface/EditView/Proofreading/Layout/NavigationCard.py33 def update_tree(self, hierarchy: dict) -> None:CODE
LOW…nterface/EditView/Proofreading/Table/BasicTablePage.py120 def _update_status_cell(self, row: int, translation_status: int) -> None:CODE
LOWUserInterface/EditView/Startup/StartupPage.py182 def _set_history_controls_enabled(self, enabled: bool) -> None:CODE
LOWUserInterface/Widget/PlainTextEditCard.py64 def set_text(self, text: str) -> None:CODE
LOWUserInterface/Widget/PlainTextEditCard.py68 def set_fixed_width(self, width: int) -> None:CODE
LOWUserInterface/Widget/PlainTextEditCard.py72 def set_placeholder_text(self, text: str) -> None:CODE
LOWUserInterface/Widget/GroupCard.py40 def set_title(self, title: str) -> None:CODE
LOWUserInterface/Widget/GroupCard.py43 def set_description(self, description: str) -> None:CODE
LOWUserInterface/Widget/SliderCard.py50 def set_text(self, text:str) -> None:CODE
LOWUserInterface/Widget/SliderCard.py53 def set_value(self, value: int) -> None:CODE
LOWUserInterface/Widget/SliderCard.py56 def set_range(self, min: int, max: int) -> None:CODE
LOWUserInterface/Widget/SegmentedControl.py73 def set_current_key(self, key: str) -> None:CODE
LOWUserInterface/Widget/SegmentedControl.py118 def _update_text_colors(self) -> None:CODE
LOWUserInterface/Widget/FlowCard.py61 def set_title(self, title: str) -> None:CODE
LOWUserInterface/Widget/FlowCard.py64 def set_description(self, description: str) -> None:CODE
LOWUserInterface/Widget/EditableComboBoxCard.py71 def set_items(self, items: list) -> None:CODE
LOWUserInterface/Widget/EditableComboBoxCard.py85 def set_current_index(self, index) -> None:CODE
LOWUserInterface/Widget/EditableComboBoxCard.py89 def set_fixed_width(self, width: int) -> None:CODE
LOWUserInterface/Widget/EditableComboBoxCard.py93 def set_placeholder_text(self, text: str) -> None:CODE
LOWUserInterface/Widget/EmptyCard.py36 def set_title(self, title: str) -> None:CODE
LOWUserInterface/Widget/EmptyCard.py39 def set_description(self, description: str) -> None:CODE
LOWUserInterface/Widget/LineEditMessageBox.py40 def set_placeholder_text(self, text: str) -> None:CODE
LOWUserInterface/Widget/LineEditCard.py63 def set_text(self, text: str) -> None:CODE
LOWUserInterface/Widget/LineEditCard.py67 def set_fixed_width(self, width: int) -> None:CODE
LOWUserInterface/Widget/LineEditCard.py71 def set_placeholder_text(self, text: str) -> None:CODE
LOWUserInterface/Widget/ComboBoxCard.py45 def set_items(self, items: list) -> None:CODE
LOWUserInterface/Widget/ComboBoxCard.py55 def set_current_index(self, index) -> None:CODE
LOWUserInterface/Widget/SpinCard.py44 def set_range(self, min, max) -> None:CODE
LOWUserInterface/Widget/SpinCard.py47 def set_value(self, value) -> None:CODE
LOWUserInterface/Widget/PushButtonCard.py49 def set_title(self, title: str) -> None:CODE
LOWUserInterface/Widget/PushButtonCard.py52 def set_description(self, description: str) -> None:CODE
LOWUserInterface/Widget/PushButtonCard.py55 def set_text(self, text: str) -> None:CODE
LOWUserInterface/Widget/PushButtonCard.py58 def set_icon(self, icon: str) -> None:CODE
LOWUserInterface/Platform/AddAPIDialog.py65 def _set_adaptive_size(self) -> None:CODE
LOWUserInterface/Platform/AddAPIDialog.py258 def _set_page(self, page_index: int) -> None:CODE
LOW…gs/TranslationSettings/TranslationExamplePromptPage.py59 def update_table(self) -> None:CODE
LOW…ings/TranslationSettings/CharacterizationPromptPage.py88 def update_table(self) -> None:CODE
LOW…ings/TranslationSettings/CharacterizationPromptPage.py94 def _update_table_rows(self, rows: list[dict] | None) -> None:CODE
LOW…ings/TranslationSettings/CharacterizationPromptPage.py115 def _set_row_highlight(self, row_index: int, highlighted: bool) -> None:CODE
7 more matches not shown…
Over-Commented Block25 hits · 25 pts
SeverityFileLineSnippetContext
LOWAiNiee.py1#COMMENT
LOW…uleFolders/Domain/TextSymbolRepair/TextSymbolRepair.py41 trailing_whitespace = trailing_whitespace_match.group(1) if trailing_whitespace_match else ""COMMENT
LOW…uleFolders/Domain/TextSymbolRepair/TextSymbolRepair.py61 #"source_text": "「息子さんが結婚したの。それはおめでとうございます」乾杯。「めでたいものか、ちくしょう」「まあまあ」乾杯。「俺が育てたのに自分で勝手に育ったようなツラをする」「親はなくても子は育つ」「俺は居COMMENT
LOWModuleFolders/Domain/PromptBuilder/PromptBuilder.py321 # ex_dict = {COMMENT
LOWModuleFolders/Domain/FileReader/BaseReader.py121 processed_items = 0COMMENT
LOWModuleFolders/Domain/FileReader/ReaderUtil.py401# Args:COMMENT
LOWModuleFolders/Domain/FileReader/ReaderUtil.py421# results.append((['no_text'], -1.0, -1.0))COMMENT
LOWModuleFolders/Domain/FileReader/ReaderUtil.py441# if valid_texts:COMMENT
LOWModuleFolders/Domain/FileReader/ReaderUtil.py461# # 如果有至少两个识别结果,则使用最高置信度减去第二个COMMENT
LOWModuleFolders/Domain/FileReader/ReaderUtil.py481# items: 当前处理的缓存项列表COMMENT
LOWModuleFolders/Domain/FileReader/ReaderUtil.py501# if is_symbols_only(cleaned_text):COMMENT
LOWModuleFolders/Domain/FileReader/ReaderUtil.py521# # 计算置信度 - 从percent转换为0-1范围的概率COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py1# # 辅助函数:SoftmaxCOMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py21# _instance = NoneCOMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py41# self.onnx_model_path = os.path.join(model_path, "onnx", "model_int8.onnx")COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py61# # rich.print(f"[[green]INFO[/]] Tokenizer loaded from {self.tokenizer_path}")COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py81# rich.print(f"[[red]ERROR[/]] 加载 ONNX 语言检测器失败: {e}")COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py101# cls._instance.tokenizer = NoneCOMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py121# results = self.predict_batch([text])COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py141# # 检查 _instance 是否还存在,如果 release 后实例被设为 None,直接访问 self 上的属性会出错COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py161# # 2. 准备 ONNX Runtime 输入 (确保 int64 类型)COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py181# predicted_class_id = np.argmax(probabilities)COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py201# # 排序并过滤COMMENT
LOW…lders/Domain/FileReader/unused/LanguageDetectorONNX.py221# # 对于批处理错误,你可能想返回一个列表,其中每个失败的项都是 None 或错误标记COMMENT
LOWStevExtraction/scratchpad.py21# test.InputFromJson(path=r'res/TrsData.json')COMMENT
Unused Imports15 hits · 14 pts
SeverityFileLineSnippetContext
LOWModuleFolders/Infrastructure/Tokener/Tokener.py2CODE
LOWModuleFolders/Infrastructure/Tokener/Tokener.py3CODE
LOWModuleFolders/Infrastructure/Platform/PlatformPaths.py3CODE
LOWModuleFolders/Domain/FileOutputer/DirectoryWriter.py4CODE
LOWModuleFolders/Domain/FileOutputer/FileOutputer.py10CODE
LOWModuleFolders/Domain/FileOutputer/AssWriter.py3CODE
LOWModuleFolders/Domain/FileOutputer/PoWriter.py5CODE
LOW…Folders/Domain/PromptBuilder/PromptBuilderPolishing.py7CODE
LOWModuleFolders/Domain/FileReader/FileReader.py12CODE
LOWOldPlugin/IOPlugins/CustomRegistry.py7CODE
LOWOldPlugin/IOPlugins/CustomRegistry.py8CODE
LOWUserInterface/EditView/Analysis/AnalysisPage.py2CODE
LOW…Interface/EditView/Translation/LanguageSettingsCard.py3CODE
LOWUserInterface/Platform/ArgsEditPage.py5CODE
LOWStevExtraction/scratchpad.py4CODE
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOWModuleFolders/Service/TranslationChecker/RuleChecker.py181 if rules_config.get("placeholder"):CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py326 {"role": "user", "content": fake_user},CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py491 {"role": "user", "content": fake_user},CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py288 fake_user = (CODE
LOWModuleFolders/Service/TaskExecutor/AnalysisTask.py465 fake_user = (CODE
LOWModuleFolders/Domain/ResponseChecker/AdvancedChecks.py81 每个占位符字典包含 "placeholder" (占位符字符串) 键。STRING
LOWModuleFolders/Domain/ResponseChecker/AdvancedChecks.py108 placeholder = placeholder_data.get("placeholder")CODE
LOWModuleFolders/Domain/ResponseChecker/AdvancedChecks.py110 # 确保 'placeholder' 键存在且值是字符串COMMENT
LOWModuleFolders/Domain/TextProcessor/TextProcessor.py511 "placeholder": placeholder_val,CODE
LOWModuleFolders/Domain/TextProcessor/TextProcessor.py544 placeholder_text = item.get("placeholder")CODE
LOWUserInterface/EditView/Analysis/AnalysisPage.py2099 if self._contains_category_hint(combined_hint, self.NON_TRANSLATE_PLACEHOLDER, "占位", "placeholder", "%s", "%d", CODE
LOW…ace/EditView/Proofreading/RuleCheck/RuleCheckDialog.py127 "placeholder": self.check_placeholder.isChecked(),CODE
AI Structural Patterns7 hits · 7 pts
SeverityFileLineSnippetContext
LOW…uleFolders/Domain/TextSymbolRepair/TextSymbolRepair.py168CODE
LOWModuleFolders/Domain/ResponseChecker/AdvancedChecks.py286CODE
LOWModuleFolders/Domain/PromptBuilder/PromptBuilder.py275CODE
LOW…uleFolders/Domain/PromptBuilder/PromptBuilderSakura.py33CODE
LOW…uleFolders/Domain/PromptBuilder/PromptBuilderSakura.py43CODE
LOWUserInterface/Widget/ProgressRingCard.py10CODE
LOWUserInterface/Widget/CombinedLineCard.py6CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…duleFolders/Domain/PromptBuilder/PromptBuilderLocal.py436 # 保留原签名,当前本地模型链路不使用上文 few-shot。COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMTools/pyinstall.py12 #"--onefile", # Create a one-file bundled executable.COMMENT
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHModuleFolders/Domain/FileReader/ParatranzReader.py22 "context": null,STRING
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMModuleFolders/Domain/ResponseChecker/AdvancedChecks.py390CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…olders/Infrastructure/LLMRequester/LLMClientFactory.py34 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE