AI Slop Code RIsk Monitor

zyddnys/manga-image-translator

Translate manga/image 一键翻译各类图片内文字 https://cotrans.touhou.ai/ (no longer working)

14.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for zyddnys/manga-image-translator, a Python project with 10,493 GitHub stars. SynthScan examined 74,421 lines of code across 291 source files, recording 868 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 14.7 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

14.7
Adjusted Signal
14.7
Raw Pattern Score
100%
Time Factor
2026-09-25
Last Push
10.5K
Stars
Python
Language
74.4K
Lines of Code
291
Files
868
Pattern Hits
2026-10-12
Scan Date
0.13
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 25.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 431 finding(s).

Hallucinated Dependency & Supply Chain Risk 13.9/100 · LOW

Are imports declared and package/API names verified? 175 finding(s).

Agent Over-Engineering Ratio 33.0/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 436 finding(s).

PR Review Velocity Impact 57.2/100 · HIGH

Which changes need focused human review? 868 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 4HIGH 34MEDIUM 95LOW 735

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 868 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Unused Imports161 hits · 158 pts
SeverityFileLineSnippetContext
LOWpip-modules/mit-renderer/mit_renderer/utils/__init__.py3CODE
LOWpip-modules/mit-renderer/mit_renderer/utils/__init__.py4CODE
LOWMangaStudio_Data/app/ui/main_window.py20CODE
LOWMangaStudio_Data/app/ui/main_window.py20CODE
LOWMangaStudio_Data/app/ui/main_window.py29CODE
LOWMangaStudio_Data/app/ui/main_window.py29CODE
LOWtest/test_render.py2CODE
LOWtest/test_render.py7CODE
LOWmanga_translator/config.py5CODE
LOWmanga_translator/config.py5CODE
LOWmanga_translator/config.py5CODE
LOWmanga_translator/config.py8CODE
LOWmanga_translator/manga_translator.py10CODE
LOWmanga_translator/manga_translator.py17CODE
LOWmanga_translator/manga_translator.py208CODE
LOWmanga_translator/__init__.py7CODE
LOWmanga_translator/args.py5CODE
LOWmanga_translator/args.py6CODE
LOWmanga_translator/args.py7CODE
LOWmanga_translator/args.py8CODE
LOWmanga_translator/args.py8CODE
LOWmanga_translator/args.py8CODE
LOWmanga_translator/args.py9CODE
LOWmanga_translator/args.py10CODE
LOWmanga_translator/translators/chatgpt_2stage.py10CODE
LOWmanga_translator/translators/custom_openai.py13CODE
LOWmanga_translator/translators/__init__.py5CODE
LOWmanga_translator/translators/google.py8CODE
LOWmanga_translator/translators/google.py28CODE
LOWmanga_translator/translators/gemini.py493CODE
LOWmanga_translator/translators/deepseek.py3CODE
LOWmanga_translator/translators/chatgpt.py6CODE
LOWmanga_translator/translators/gemini_2stage.py1CODE
LOWmanga_translator/translators/sakura.py10CODE
LOWmanga_translator/translators/qwen2.py3CODE
LOWmanga_translator/translators/qwen2.py4CODE
LOWmanga_translator/ocr/xpos_relative_position.py5CODE
LOWmanga_translator/ocr/model_manga_ocr.py2CODE
LOWmanga_translator/ocr/model_manga_ocr.py3CODE
LOWmanga_translator/ocr/model_manga_ocr.py3CODE
LOWmanga_translator/ocr/model_manga_ocr.py3CODE
LOWmanga_translator/ocr/model_manga_ocr.py4CODE
LOWmanga_translator/ocr/model_48px.py3CODE
LOWmanga_translator/ocr/model_48px.py3CODE
LOWmanga_translator/ocr/model_48px.py3CODE
LOWmanga_translator/ocr/model_48px.py23CODE
LOWmanga_translator/utils/generic.py16CODE
LOWmanga_translator/utils/__init__.py1CODE
LOWmanga_translator/utils/__init__.py2CODE
LOWmanga_translator/utils/__init__.py3CODE
LOWmanga_translator/utils/__init__.py4CODE
LOWmanga_translator/utils/__init__.py5CODE
LOWmanga_translator/utils/__init__.py6CODE
LOWmanga_translator/utils/__init__.py7CODE
LOWmanga_translator/utils/panel/kumikolib.py5CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py2CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py3CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py4CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py7CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py8CODE
101 more matches not shown…
Decorative Section Separators73 hits · 153 pts
SeverityFileLineSnippetContext
MEDIUMMangaStudioMain.py1# ===============================================================COMMENT
MEDIUMMangaStudioMain.py9# ===============================================================COMMENT
MEDIUMMangaStudio_Data/gpt_configs/my_cool_prompt.yaml1# =========================================================COMMENT
MEDIUMMangaStudio_Data/gpt_configs/my_cool_prompt.yaml3# =========================================================COMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py1# ===============================================================COMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py8# ===============================================================COMMENT
MEDIUMMangaStudio_Data/app/core/constants.py1# ===============================================================COMMENT
MEDIUMMangaStudio_Data/app/core/constants.py8# ===============================================================COMMENT
MEDIUM⚡MangaStudio_Data/dicts/example_post_dict.txt1# =========================================================COMMENT
MEDIUM⚡MangaStudio_Data/dicts/example_post_dict.txt3# =========================================================COMMENT
MEDIUM⚡MangaStudio_Data/dicts/example_post_dict.txt6#----------------------------------------------------------COMMENT
MEDIUM⚡MangaStudio_Data/dicts/example_pre_dict.txt1# =========================================================COMMENT
MEDIUM⚡MangaStudio_Data/dicts/example_pre_dict.txt3# =========================================================COMMENT
MEDIUM⚡MangaStudio_Data/dicts/example_pre_dict.txt6#----------------------------------------------------------COMMENT
MEDIUM⚡…tor/inpainting/ldm/modules/image_degradation/bsrgan.py3# --------------------------------------------STRING
MEDIUM⚡…tor/inpainting/ldm/modules/image_degradation/bsrgan.py5# --------------------------------------------STRING
MEDIUM⚡…tor/inpainting/ldm/modules/image_degradation/bsrgan.py10# --------------------------------------------STRING
MEDIUM…tor/inpainting/ldm/modules/image_degradation/bsrgan.py43# --------------------------------------------STRING
MEDIUM…tor/inpainting/ldm/modules/image_degradation/bsrgan.py45# --------------------------------------------STRING
MEDIUM…tor/inpainting/ldm/modules/image_degradation/bsrgan.py222# --------------------------------------------STRING
MEDIUM…tor/inpainting/ldm/modules/image_degradation/bsrgan.py224# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py182# --------------------------------------------COMMENT
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py184# --------------------------------------------COMMENT
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py244# --------------------------------------------COMMENT
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py246# --------------------------------------------COMMENT
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py618# --------------------------------------------COMMENT
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py620# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py200# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py202# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py217# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py219# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py269# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py271# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py296# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py298# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py639# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py641# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py763# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py765# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py836# --------------------------------------------COMMENT
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py838# --------------------------------------------COMMENT
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py16# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py19# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py22# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py175# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py178# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py234# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py236# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py240# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py370# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py372# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py376# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py612# --------------------------------------------STRING
MEDIUM⚡…npainting/ldm/modules/image_degradation/utils_image.py614# --------------------------------------------STRING
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py61# --------------------------------------------STRING
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py63# --------------------------------------------STRING
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py87# --------------------------------------------STRING
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py89# --------------------------------------------STRING
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py147# --------------------------------------------STRING
MEDIUM…npainting/ldm/modules/image_degradation/utils_image.py149# --------------------------------------------STRING
13 more matches not shown…
Excessive Try-Catch Wrapping158 hits · 140 pts
SeverityFileLineSnippetContext
LOWMangaStudioMain.py65 except Exception as e:CODE
LOWdocker_prepare.py25 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py130 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py1284 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py1313 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py1358 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py1383 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py2027 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py2178 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py2604 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py2669 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py2686 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py2748 except Exception as e:CODE
LOWMangaStudio_Data/app/ui/main_window.py3097 except Exception as e:CODE
LOWMangaStudio_Data/app/core/config_loader.py40 except Exception:CODE
LOWMangaStudio_Data/app/core/config_loader.py54 except Exception as e:CODE
LOWMangaStudio_Data/app/core/config_loader.py82 except Exception as e:CODE
LOWMangaStudio_Data/app/core/config_loader.py96 except Exception as e:CODE
LOWMangaStudio_Data/app/core/config_loader.py107 except Exception:CODE
MEDIUMMangaStudio_Data/app/core/config_loader.py100def _get_definition_from_ref(self, ref_path):CODE
LOWMangaStudio_Data/app/core/pipeline.py63 except Exception as e:CODE
LOWMangaStudio_Data/app/core/pipeline.py105 except Exception as e:CODE
LOWMangaStudio_Data/app/core/pipeline.py161 except Exception as e:CODE
LOWMangaStudio_Data/app/core/pipeline.py177 except Exception as e:CODE
LOWMangaStudio_Data/app/core/pipeline.py188 except Exception:CODE
LOWmanga_translator/config.py51 except Exception:CODE
MEDIUMmanga_translator/config.py46def translator_chain(string):CODE
MEDIUMmanga_translator/manga_translator.py239def write(self, text):CODE
LOWmanga_translator/manga_translator.py200 except Exception:CODE
LOWmanga_translator/manga_translator.py224 except Exception:CODE
LOWmanga_translator/manga_translator.py244 except Exception:CODE
LOWmanga_translator/manga_translator.py266 except Exception as e:CODE
LOWmanga_translator/manga_translator.py270 except Exception as e:CODE
LOWmanga_translator/manga_translator.py373 except Exception as e:CODE
LOWmanga_translator/manga_translator.py398 except Exception as e:CODE
LOWmanga_translator/manga_translator.py441 except Exception as e:CODE
LOWmanga_translator/manga_translator.py457 except Exception as e:CODE
LOWmanga_translator/manga_translator.py471 except Exception as e:CODE
LOWmanga_translator/manga_translator.py498 except Exception as e:CODE
LOWmanga_translator/manga_translator.py514 except Exception as e:CODE
LOWmanga_translator/manga_translator.py546 except Exception as e:CODE
LOWmanga_translator/manga_translator.py569 except Exception as e:CODE
LOWmanga_translator/manga_translator.py585 except Exception as e:CODE
LOWmanga_translator/manga_translator.py599 except Exception as e:CODE
LOWmanga_translator/manga_translator.py613 except Exception as e:CODE
LOWmanga_translator/manga_translator.py641 except Exception as e:CODE
LOWmanga_translator/manga_translator.py790 except Exception:CODE
LOWmanga_translator/manga_translator.py1305 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1509 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1561 except Exception as retry_error:CODE
LOWmanga_translator/manga_translator.py1568 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1622 except Exception as individual_error:CODE
LOWmanga_translator/manga_translator.py1643 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1685 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1710 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1723 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1737 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1763 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1778 except Exception as e:CODE
LOWmanga_translator/manga_translator.py1945 except Exception as e:CODE
98 more matches not shown…
Deep Nesting157 hits · 136 pts
SeverityFileLineSnippetContext
LOWdocker_prepare.py17CODE
LOWMangaStudio_Data/app/ui/main_window.py614CODE
LOWMangaStudio_Data/app/ui/main_window.py1018CODE
LOWMangaStudio_Data/app/ui/main_window.py1235CODE
LOWMangaStudio_Data/app/ui/main_window.py1458CODE
LOWMangaStudio_Data/app/ui/main_window.py1577CODE
LOWMangaStudio_Data/app/ui/main_window.py1634CODE
LOWMangaStudio_Data/app/ui/main_window.py1889CODE
LOWMangaStudio_Data/app/ui/main_window.py1938CODE
LOWMangaStudio_Data/app/ui/main_window.py2274CODE
LOWMangaStudio_Data/app/ui/main_window.py2341CODE
LOWMangaStudio_Data/app/ui/main_window.py2556CODE
LOWMangaStudio_Data/app/ui/main_window.py2727CODE
LOWMangaStudio_Data/app/core/config_loader.py126CODE
LOWMangaStudio_Data/app/core/pipeline.py118CODE
LOWtest/test_textline_merge.py30CODE
LOWmanga_translator/manga_translator.py63CODE
LOWmanga_translator/manga_translator.py154CODE
LOWmanga_translator/manga_translator.py772CODE
LOWmanga_translator/manga_translator.py921CODE
LOWmanga_translator/manga_translator.py1059CODE
LOWmanga_translator/manga_translator.py1458CODE
LOWmanga_translator/manga_translator.py1812CODE
LOWmanga_translator/manga_translator.py2022CODE
LOWmanga_translator/manga_translator.py2222CODE
LOWmanga_translator/manga_translator.py2353CODE
LOWmanga_translator/manga_translator.py2586CODE
LOWmanga_translator/manga_translator.py2739CODE
LOWmanga_translator/manga_translator.py2046CODE
LOWmanga_translator/__main__.py23CODE
LOWmanga_translator/translators/chatgpt_2stage.py199CODE
LOWmanga_translator/translators/chatgpt_2stage.py247CODE
LOWmanga_translator/translators/chatgpt_2stage.py354CODE
LOWmanga_translator/translators/chatgpt_2stage.py619CODE
LOWmanga_translator/translators/chatgpt_2stage.py787CODE
LOWmanga_translator/translators/chatgpt_2stage.py998CODE
LOWmanga_translator/translators/chatgpt_2stage.py1062CODE
LOWmanga_translator/translators/chatgpt_2stage.py1423CODE
LOWmanga_translator/translators/custom_openai.py121CODE
LOWmanga_translator/translators/google.py202CODE
LOWmanga_translator/translators/common_gpt.py311CODE
LOWmanga_translator/translators/google_gtoken.py46CODE
LOWmanga_translator/translators/google_gtoken.py142CODE
LOWmanga_translator/translators/deepseek.py105CODE
LOWmanga_translator/translators/deepseek.py111CODE
LOWmanga_translator/translators/chatgpt.py177CODE
LOWmanga_translator/translators/chatgpt.py272CODE
LOWmanga_translator/translators/chatgpt.py600CODE
LOWmanga_translator/translators/chatgpt.py926CODE
LOWmanga_translator/translators/chatgpt.py1070CODE
LOWmanga_translator/translators/gemini_2stage.py91CODE
LOWmanga_translator/translators/sakura.py245CODE
LOWmanga_translator/textline_merge/__init__.py110CODE
LOWmanga_translator/mode/local.py88CODE
LOWmanga_translator/mode/local.py240CODE
LOWmanga_translator/mode/local.py333CODE
LOWmanga_translator/ocr/model_manga_ocr.py25CODE
LOWmanga_translator/ocr/model_manga_ocr.py132CODE
LOWmanga_translator/ocr/model_ocr_large.py384CODE
LOWmanga_translator/ocr/model_48px_ctc.py62CODE
97 more matches not shown…
Empty Error Handlers24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHMangaStudio_Data/app/core/config_loader.py40except Exception:CODE
HIGHMangaStudio_Data/app/core/pipeline.py188except Exception:CODE
HIGHMangaStudio_Data/app/core/pipeline.py69except: passCODE
HIGHMangaStudio_Data/app/core/pipeline.py114except:CODE
HIGHmanga_translator/manga_translator.py200except Exception:CODE
HIGHmanga_translator/manga_translator.py1507except ImportError:CODE
HIGHmanga_translator/manga_translator.py224except Exception:CODE
HIGHmanga_translator/manga_translator.py244except Exception:CODE
HIGHmanga_translator/translators/google.py264except Exception:CODE
HIGHmanga_translator/translators/google.py270except Exception:CODE
HIGHmanga_translator/translators/google.py445except Exception: # pragma: nocoverCODE
HIGHmanga_translator/translators/google.py451except Exception: # pragma: nocoverCODE
HIGHmanga_translator/translators/google.py527except Exception: # pragma: nocoverCODE
HIGHmanga_translator/translators/google.py250except Exception:CODE
HIGHmanga_translator/translators/google.py255except Exception:CODE
HIGHmanga_translator/translators/google.py457except Exception: # pragma: nocoverCODE
HIGHmanga_translator/translators/chatgpt.py201except Exception:CODE
HIGHmanga_translator/mode/local.py70except:CODE
HIGHmanga_translator/utils/inference.py261except Exception:CODE
HIGHmanga_translator/rendering/__init__.py125except Exception as e:CODE
HIGHmanga_translator/rendering/__init__.py158except Exception as e:CODE
HIGHmanga_translator/rendering/text_render.py19except Exception:CODE
HIGH…nga_translator/inpainting/ldm/models/diffusion/ddpm.py1240except KeyError:CODE
HIGHmanga_translator/detection/ctd_utils/yolov5/yolo.py220except NameError:CODE
Hyper-Verbose Identifiers107 hits · 88 pts
SeverityFileLineSnippetContext
LOWMangaStudio_Data/app/ui/main_window.py292 def _create_settings_tab_container(self) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py325 def _create_visual_compare_tab(self) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py403 def _build_dynamic_tab_content(self, tab_name: str, settings_list: list) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py842 def _create_language_checkbox_grid(self, info: dict) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py890 def _create_entry_with_button(self, info: dict) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py908 def _create_translator_chain_builder(self, info: dict) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py956 def _create_chain_step_widget(self) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py1018 def _get_translator_chain_string(self) -> str:CODE
LOWMangaStudio_Data/app/ui/main_window.py1043 def _rebuild_chain_from_string(self, chain_string: str):CODE
LOWMangaStudio_Data/app/ui/main_window.py1072 def _create_grid_segmented_button(self, info: dict) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py1186 def _update_chain_list_height(self):CODE
LOWMangaStudio_Data/app/ui/main_window.py1208 def _update_translator_tooltip(self, translator_name: str):CODE
LOWMangaStudio_Data/app/ui/main_window.py1235 def _handle_widget_button_click(self, key: str, associated_widget: QWidget):CODE
LOWMangaStudio_Data/app/ui/main_window.py1425 def _create_font_scale_widget(self) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py1538 def _filter_language_dropdown(self, translator_name: str, lang_combo: QComboBox):CODE
LOWMangaStudio_Data/app/ui/main_window.py1766 def _remove_selected_jobs_from_queue(self):CODE
LOWMangaStudio_Data/app/ui/main_window.py1923 def _on_job_selection_changed(self):CODE
LOWMangaStudio_Data/app/ui/main_window.py2263 def _update_colorize_restore_ui_state(self):CODE
LOWMangaStudio_Data/app/ui/main_window.py2274 def _build_final_config_for_job(self, job: dict) -> dict:CODE
LOWMangaStudio_Data/app/ui/main_window.py2518 def _set_settings_panel_enabled(self, is_enabled: bool):CODE
LOWMangaStudio_Data/app/ui/main_window.py2556 def _assign_task_to_selection(self, task_key: str):CODE
LOWMangaStudio_Data/app/ui/main_window.py2689 def _create_theme_manager_widget(self) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py2947 def _apply_settings_to_selection(self):CODE
LOWMangaStudio_Data/app/ui/main_window.py2965 def _remove_selected_jobs_from_queue(self):CODE
LOWMangaStudio_Data/app/ui/main_window.py3022 def _create_api_manager_widget(self, info: dict) -> QWidget:CODE
LOWMangaStudio_Data/app/ui/main_window.py3130 def _show_history_context_menu(self, position):CODE
LOWtest/test_textline_merge.py20def find_region_containing_line(line, regions):CODE
LOWtest/test_translation_manual.py9async def test_specified_translator(translator, tgt_lang, text, count):CODE
LOWmanga_translator/manga_translator.py344 def _save_current_image_context(self, image_md5: str):CODE
LOWmanga_translator/manga_translator.py1667 async def _translate_until_translation(self, image: Image.Image, config: Config) -> Context:CODE
LOWmanga_translator/manga_translator.py1812 async def _batch_translate_contexts(self, contexts_with_configs: List[tuple], batch_size: int) -> List[tuple]:CODE
LOWmanga_translator/manga_translator.py2022 async def _concurrent_translate_contexts(self, contexts_with_configs: List[tuple]) -> List[tuple]:CODE
LOWmanga_translator/manga_translator.py2314 def create_result_path_callback(image_context):CODE
LOWmanga_translator/manga_translator.py2353 async def _apply_post_translation_processing(self, ctx: Context, config: Config) -> List:CODE
LOWmanga_translator/manga_translator.py2491 async def _complete_translation_pipeline(self, ctx: Context, config: Config) -> Context:CODE
LOWmanga_translator/manga_translator.py2586 async def _check_repetition_hallucination(self, text: str, threshold: int = 5, silent: bool = False) -> bool:CODE
LOWmanga_translator/manga_translator.py2642 async def _check_target_language_ratio(self, text_regions: List, target_lang: str, min_ratio: float = 0.5) -> bool:CODE
LOWmanga_translator/manga_translator.py2739 async def _retry_translation_with_validation(self, region, config: Config, ctx: Context) -> str:CODE
LOWmanga_translator/args.py62 def _format_action_invocation(self, action: argparse.Action) -> str:CODE
LOWmanga_translator/translators/nllb.py110 def _map_detected_lang_to_translator(self, lang):CODE
LOWmanga_translator/translators/mbart50.py113 def _map_detected_lang_to_translator(self, lang):CODE
LOWmanga_translator/translators/chatgpt_2stage.py569 def _get_refine_system_instruction(self, from_lang: str):CODE
LOWmanga_translator/translators/chatgpt_2stage.py1372 def _parse_batch_json_response(self, raw_content: str, fallback_queries: List[str], query_to_image_mapping: List[tupCODE
LOWmanga_translator/translators/chatgpt_2stage.py1423 async def _generate_batch_debug_images(self, batch_contexts: List[Context], batch_query_regions: List[List],CODE
LOWmanga_translator/translators/chatgpt_2stage.py747 def _remap_translations_to_original_positions(self, reordered_translations: List[str],STRING
LOWmanga_translator/translators/chatgpt_2stage.py1290 def _get_batch_refine_system_instruction(self, from_lang: str):STRING
LOWmanga_translator/translators/google.py202 async def _request_and_parse_translation(self, query, to_lang, from_lang):CODE
LOWmanga_translator/translators/common.py256 def _modify_invalid_translation_query(self, query: str, trans: str) -> str:CODE
LOWmanga_translator/translators/common.py263 def _clean_translation_output(self, query: str, trans: str, to_lang: str) -> str:CODE
LOWmanga_translator/translators/chatgpt.py1137 def japanese_levenshtein_distance(s1, s2):CODE
LOWmanga_translator/translators/gemini_2stage.py236 def _get_refine_system_instruction(self, from_lang: str):CODE
LOWmanga_translator/translators/gemini_2stage.py249 def get_translate_system_instruction(self, from_lang: str, to_lang: str):CODE
LOWmanga_translator/translators/baidu.py76 def _modify_invalid_translation_query(self, query: str, trans: str) -> str:CODE
LOWmanga_translator/translators/sakura.py245 def detect_and_caculate_repeats(self, s: str, threshold: int = _REPEAT_DETECT_THRESHOLD, remove_all=True) -> Tuple[bCODE
LOWmanga_translator/translators/sakura.py371 async def _check_translation_quality(self, queries: List[str], response: str) -> List[str]:CODE
LOWmanga_translator/translators/sakura.py472 async def _handle_translation_request(self, prompt: str) -> str:CODE
LOWmanga_translator/ocr/model_ocr_large.py172def generate_square_subsequent_mask(sz):CODE
LOWmanga_translator/ocr/model_32px.py306def generate_square_subsequent_mask(sz):CODE
LOWmanga_translator/ocr/model_48px.py278def transformer_encoder_forward(STRING
LOWmanga_translator/ocr/model_48px.py396def generate_square_subsequent_mask(sz):STRING
47 more matches not shown…
AI Structural Patterns67 hits · 64 pts
SeverityFileLineSnippetContext
LOWmanga_translator/manga_translator.py693CODE
LOWmanga_translator/translators/mbart50.py111CODE
LOWmanga_translator/translators/google.py284CODE
LOWmanga_translator/translators/google.py469CODE
LOWmanga_translator/translators/google.py474CODE
LOWmanga_translator/translators/google.py531CODE
LOWmanga_translator/ocr/model_48px_ctc.py212CODE
LOWmanga_translator/utils/textblock.py44CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py301CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py317CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py444CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py29CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py84CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py126CODE
LOWmanga_translator/upscaling/esrgan_pytorch.py422CODE
LOW…zation/manga_colorization_v2_utils/denoising/models.py66CODE
LOW…tion/manga_colorization_v2_utils/networks/extractor.py70CODE
LOWmanga_translator/rendering/text_render_eng.py336CODE
LOWmanga_translator/rendering/__init__.py235CODE
LOWmanga_translator/inpainting/inpainting_lama.py49CODE
LOWmanga_translator/inpainting/inpainting_lama.py52CODE
LOWmanga_translator/inpainting/inpainting_lama.py269CODE
LOWmanga_translator/inpainting/inpainting_lama.py273CODE
LOWmanga_translator/inpainting/inpainting_lama.py385CODE
LOWmanga_translator/inpainting/inpainting_lama.py390CODE
LOWmanga_translator/inpainting/inpainting_lama.py452CODE
LOWmanga_translator/inpainting/inpainting_lama.py528CODE
LOWmanga_translator/inpainting/inpainting_attn.py58CODE
LOWmanga_translator/inpainting/inpainting_attn.py166CODE
LOWmanga_translator/inpainting/inpainting_aot.py86CODE
LOWmanga_translator/inpainting/guided_ldm_inpainting.py31CODE
LOWmanga_translator/inpainting/inpainting_lama_mpe.py189CODE
LOWmanga_translator/inpainting/inpainting_lama_mpe.py307CODE
LOWmanga_translator/inpainting/inpainting_lama_mpe.py312CODE
LOWmanga_translator/inpainting/inpainting_lama_mpe.py374CODE
LOWmanga_translator/inpainting/inpainting_lama_mpe.py481CODE
LOWmanga_translator/inpainting/inpainting_lama_mpe.py546CODE
LOWmanga_translator/inpainting/ldm/util.py92CODE
LOWmanga_translator/inpainting/ldm/models/autoencoder.py13CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddim.py55CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddim.py123CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddim.py181CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/plms.py59CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/plms.py118CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/plms.py178CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py48CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py526CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py1016CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py1047CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py1103CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py1154CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py1211CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py1455CODE
LOW…nga_translator/inpainting/ldm/models/diffusion/ddpm.py1615CODE
LOW…painting/ldm/models/diffusion/dpm_solver/dpm_solver.py161CODE
LOW…painting/ldm/models/diffusion/dpm_solver/dpm_solver.py939CODE
LOW…/inpainting/ldm/models/diffusion/dpm_solver/sampler.py27CODE
LOW…inpainting/ldm/modules/midas/midas/midas_net_custom.py16CODE
LOW…slator/inpainting/ldm/modules/midas/midas/dpt_depth.py85CODE
LOW…ranslator/inpainting/ldm/modules/midas/midas/blocks.py226CODE
7 more matches not shown…
Redundant / Tautological Comments27 hits · 40 pts
SeverityFileLineSnippetContext
LOWMangaStudio_Data/app/ui/main_window.py2060 # Check if zoom limiting is enabledCOMMENT
LOWMangaStudio_Data/app/ui/main_window.py3089 # Open the file with the default system applicationCOMMENT
LOWmanga_translator/manga_translator.py1065 # Set translator to none to provent token waste if prep_manual is TrueCOMMENT
LOWmanga_translator/manga_translator.py2301 # Check if batch processing is enabled and batch_contexts are providedCOMMENT
LOWmanga_translator/translators/chatgpt_2stage.py345 # Check if this is a batch processing scenarioCOMMENT
LOWmanga_translator/translators/chatgpt_2stage.py1454 # Check if verbose mode is enabledCOMMENT
LOWmanga_translator/translators/chatgpt_2stage.py824 # Check if this is batch processingSTRING
LOWmanga_translator/translators/gemini.py360 # Check if any translations are emptyCOMMENT
LOWmanga_translator/translators/common_gpt.py447 # Check if the ID is within the expected rangeCOMMENT
LOWmanga_translator/translators/deepseek.py172 # Check if any translations are emptyCOMMENT
LOWmanga_translator/translators/chatgpt.py333 # Check if invalid indexes exist (for example, <|2|>, <|3|>, etc.)COMMENT
LOWmanga_translator/translators/chatgpt.py424 # Check if all expected indexes were foundCOMMENT
LOWmanga_translator/translators/chatgpt.py492 # Check if the number of translations matches - fix list index out of range errorCOMMENT
LOWmanga_translator/translators/chatgpt.py1163 # Check if it's within the katakana range (0x30A0-0x30FF)COMMENT
LOWmanga_translator/ocr/model_48px.py738 finished = (out_idx[:, -1] == end_tok) # Check if the last token is the end tokenSTRING
LOWmanga_translator/utils/sort.py32 # Assign panel_index to each regionCOMMENT
LOWmanga_translator/rendering/text_render.py360 # Check if the character is a punctuationCOMMENT
LOWmanga_translator/rendering/text_render.py377 # Check if the bitmap is valid (characters like spaces may not have valid bitmaps)COMMENT
LOWmanga_translator/rendering/text_render.py431 # Check if the slice is valid (width and height both greater than 0)COMMENT
LOW⚡manga_translator/detection/panel_finder.py56 # Check if the polygon contains any of the other polygons.COMMENT
LOW⚡manga_translator/detection/panel_finder.py59 # Check if the polygon contains the other polygon and that the polygonsCOMMENT
LOW⚡manga_translator/detection/panel_finder.py64 # Check if rect2 is completely within rect1COMMENT
LOWmanga_translator/detection/panel_finder.py238 # Check if range1 is before range2COMMENT
LOWmanga_translator/detection/panel_finder.py241 # Check if range1 is after range2COMMENT
LOWserver/main.py336 # Check if final.png exists in this directoryCOMMENT
LOWserver/main.py355 # Check if final.png exists in this directoryCOMMENT
LOWserver/main.py375 # Check if final.png exists in this directoryCOMMENT
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALmanga_translator/translators/gemini.py570 response = await self.translator.client.aio.models.generate_content(model=GEMINI_MODEL,CODE
CRITICALmanga_translator/translators/deepseek.py255 response = await self.client.beta.chat.completions.parse(**kwargs)CODE
CRITICALmanga_translator/translators/gemini_2stage.py170 response = self.client.beta.chat.completions.parse(CODE
CRITICALmanga_translator/translators/gemini_2stage.py187 response = self.client2.beta.chat.completions.parse(CODE
Self-Referential Comments13 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMMangaStudioMain.py22# Define the path to the directory containing our application source codeCOMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py437 # Create the separator widget (Label + Line)COMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py597 # Define the button first, then set its text and connect the signal.COMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py858 # Create a 2-column grid of checkboxesCOMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py1466 # Create a handler function that "captures" the current key and context_key.COMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py1789 # Create a completely new job dictionary, only reusing the source path and name.COMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py1840 # This function is now superseded by drag-and-drop, but we keep it for now.COMMENT
MEDIUMMangaStudio_Data/app/ui/main_window.py2103 # Create a temporary 'job' dictionary to hold the settings for the test.COMMENT
MEDIUMmanga_translator/translators/chatgpt_2stage.py1473 # Create a copy and update text with corrected versionCOMMENT
MEDIUMmanga_translator/translators/chatgpt_2stage.py760 # Create a mapping from original_bbox_id to translationSTRING
MEDIUMmanga_translator/translators/chatgpt.py298 # Initialize response_text variable to avoid UnboundLocalErrorCOMMENT
MEDIUMmanga_translator/translators/config_gpt.py8# Define the schema for the responseCOMMENT
MEDIUM⚡manga_translator/detection/panel_finder.py51 # Create a new list to store the filtered polygons.COMMENT
Over-Commented Block36 hits · 36 pts
SeverityFileLineSnippetContext
LOWMangaStudioMain.py1# ===============================================================COMMENT
LOWREADME.md1221# If you wish to set a different value for a specific translator configuration:COMMENT
LOWREADME.md1401# This will significantly increase the probability of successful translationCOMMENT
LOWREADME_CN.md1201COMMENT
LOWREADME_CN.md1221# include_template | bool COMMENT
LOWrequirements-rocm.txt1# For AMD GPU (ROCm) support.COMMENT
LOWdemo/doc/docker-compose-local-dev.yml21 #deploy:COMMENT
LOWMangaStudio_Data/gpt_configs/my_cool_prompt.yaml1# =========================================================COMMENT
LOWMangaStudio_Data/gpt_configs/my_cool_prompt.yaml21COMMENT
LOWMangaStudio_Data/dicts/example_post_dict.txt1# =========================================================COMMENT
LOWMangaStudio_Data/dicts/example_post_dict.txt21COMMENT
LOWMangaStudio_Data/dicts/example_pre_dict.txt1# =========================================================COMMENT
LOWMangaStudio_Data/dicts/example_pre_dict.txt21# the translator from getting confused.COMMENT
LOWtest/test_textline_merge.py61 # similar_expected_combination = NoneCOMMENT
LOWmanga_translator/translators/common_gpt.py181 # 加上分行内容COMMENT
LOWmanga_translator/translators/sugoi.py41 # self._get_file_path('jparacrawl'),COMMENT
LOWmanga_translator/translators/deepseek.py21 _TIMEOUT = 40 # 在重试之前等待服务器响应的时间(秒)COMMENT
LOWmanga_translator/translators/chatgpt.py1201 # if len(normalized_text) > len(normalized_term):COMMENT
LOWmanga_translator/textline_merge/__init__.py81 for node_set in nx.algorithms.components.connected_components(G):COMMENT
LOWmanga_translator/textline_merge/__init__.py101# index_3 = 2COMMENT
LOWmanga_translator/ocr/model_48px_ctc.py461 _, preds_index = logprobs.max(2)COMMENT
LOWmanga_translator/utils/textblock.py441 # left_std = abs(np.std(polygons[:, :2, 1] - y1))COMMENT
LOWmanga_translator/utils/generic.py601# def merge_quadrilaterals(q1: Quadrilateral, q2: Quadrilateral):COMMENT
LOWmanga_translator/utils/bubble.py41COMMENT
LOWmanga_translator/rendering/__init__.py181 # elif char_count_orig > 0 and char_count_trans < char_count_orig:COMMENT
LOWmanga_translator/rendering/__init__.py321 h, w, _ = temp_box.shapeCOMMENT
LOWmanga_translator/rendering/text_render.py161 fg = np.zeros((bw_char_map.shape[0], bw_char_map.shape[1], 4), dtype = np.uint8)COMMENT
LOWmanga_translator/rendering/text_render.py281COMMENT
LOWmanga_translator/rendering/text_render.py401 return char_offset_y COMMENT
LOWmanga_translator/rendering/text_render.py941 bitmap_char = np.array(bitmap.buffer, dtype=np.uint8).reshape((bitmap.rows, bitmap.width))COMMENT
LOWmanga_translator/detection/ctd.py161 # map output to input imgCOMMENT
LOWmanga_translator/detection/ctd.py181 # blk_list = group_output(blks, lines, im_w, im_h, mask)COMMENT
LOWmanga_translator/detection/ctd_utils/yolov5/yolo.py101 # def _forward_augment(self, x):COMMENT
LOWexamples/gpt_config-example.yaml1# Values will be search for upwards. COMMENT
LOWexamples/gpt_config-example.yaml21# rgx_capture | StringCOMMENT
LOWexamples/gpt_config-example.yaml181COMMENT
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHmanga_translator/ocr/model_ocr_large.py0featureextractor of fan (http://openaccess.thecvf.com/content_iccv_2017/papers/cheng_focusing_attention_towards_iccv_201STRING
HIGHmanga_translator/ocr/model_48px_ctc.py0featureextractor of fan (http://openaccess.thecvf.com/content_iccv_2017/papers/cheng_focusing_attention_towards_iccv_201STRING
HIGHmanga_translator/ocr/model_32px.py0featureextractor of fan (http://openaccess.thecvf.com/content_iccv_2017/papers/cheng_focusing_attention_towards_iccv_201STRING
HIGH…nga_translator/inpainting/ldm/models/diffusion/ddpm.py0overwrite model.train with this function to make sure train/eval mode does not change anymore.STRING
HIGHmanga_translator/inpainting/ldm/modules/midas/api.py0overwrite model.train with this function to make sure train/eval mode does not change anymore.STRING
HIGH…_translator/inpainting/ldm/modules/encoders/modules.py0overwrite model.train with this function to make sure train/eval mode does not change anymore.STRING
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHmanga_translator/utils/generic.py760 return self * (1. / self.length())CODE
HIGHmanga_translator/utils/generic.py788 da = a.length()CODE
HIGHmanga_translator/utils/generic.py789 db = b.length()CODE
HIGHmanga_translator/utils/generic.py818 return d.length()CODE
AI Slop Vocabulary5 hits · 9 pts
SeverityFileLineSnippetContext
LOWmanga_translator/translators/common.py108 # If it is a list it will simply return the language code as is.COMMENT
MEDIUMmanga_translator/utils/bubble.py53 # Consequence: Cannot utilize common-sense features like "bubbles typically surround the text box and are moderatelyCOMMENT
LOWmanga_translator/rendering/text_render.py182 # since bg rect is always larger than fg rect, we can just use the bg rectCOMMENT
LOWmanga_translator/rendering/text_render.py400 # For whitespace characters, just return the vertical advanceCOMMENT
LOWexamples/gpt_config-example.yaml157# If you'd like to disable this feature, just set this to an empty list.COMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWMangaStudio_Data/ui_map.json79 "placeholder": "e.g., my_cool_prompt.yaml",CODE
LOWMangaStudio_Data/ui_map.json90 "placeholder": "e.g., dicts/my_pre_dict.txt",CODE
LOWMangaStudio_Data/ui_map.json101 "placeholder": "e.g., dicts/my_post_dict.txt",CODE
LOWMangaStudio_Data/ui_map.json259 "placeholder": "e.g., 0.85 (default: auto)",CODE
LOWMangaStudio_Data/ui_map.json496 "placeholder": "e.g., (SFX),[NOISE]",CODE
LOWMangaStudio_Data/app/ui/main_window.py836 placeholder = info.get("placeholder", "")CODE
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMmanga_translator/translators/groq.py118 # Maintain the context windowCOMMENT
MEDIUMmanga_translator/translators/chatgpt.py446 # Skip common hallucination characters in specific modelsCOMMENT
Verbosity Indicators9 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡manga_translator/translators/chatgpt_2stage.py625 # Step 1: 在解析前先检查是否为拒绝消息STRING
LOW⚡manga_translator/translators/chatgpt_2stage.py629 # Step 2: Remove markdown code blocks and clean upSTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py654 # Step 3: Parse JSONSTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py657 # Step 4: Extract corrected texts - ignore key names, just find the arraySTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py704 # Step 5: Sort by reading_order to get proper reading sequenceSTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py707 # Step 6: Extract reordered texts and position mappingSTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py715 # Step 7: Validate and handle edge casesSTRING
LOWmanga_translator/rendering/text_render.py706 # Step 1:COMMENT
LOWmanga_translator/rendering/text_render.py746 # Step 2:COMMENT
Structural Annotation Overuse7 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡manga_translator/translators/chatgpt_2stage.py625 # Step 1: 在解析前先检查是否为拒绝消息STRING
LOW⚡manga_translator/translators/chatgpt_2stage.py629 # Step 2: Remove markdown code blocks and clean upSTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py654 # Step 3: Parse JSONSTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py657 # Step 4: Extract corrected texts - ignore key names, just find the arraySTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py704 # Step 5: Sort by reading_order to get proper reading sequenceSTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py707 # Step 6: Extract reordered texts and position mappingSTRING
LOW⚡manga_translator/translators/chatgpt_2stage.py715 # Step 7: Validate and handle edge casesSTRING
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmanga_translator/rendering/text_render.py115logger = logging.getLogger(__name__)CODE
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWmanga_translator/utils/threading.py54 async def my_function(arg):STRING