Translate manga/image 一键翻译各类图片内文字 https://cotrans.touhou.ai/ (no longer working)
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 431 finding(s).
Are imports declared and package/API names verified? 175 finding(s).
Are wrappers, guards, and repeated structures necessary? 436 finding(s).
Which changes need focused human review? 868 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pip-modules/mit-renderer/mit_renderer/utils/__init__.py | 3 | CODE | |
| LOW | pip-modules/mit-renderer/mit_renderer/utils/__init__.py | 4 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 20 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 20 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 29 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 29 | CODE | |
| LOW | test/test_render.py | 2 | CODE | |
| LOW | test/test_render.py | 7 | CODE | |
| LOW | manga_translator/config.py | 5 | CODE | |
| LOW | manga_translator/config.py | 5 | CODE | |
| LOW | manga_translator/config.py | 5 | CODE | |
| LOW | manga_translator/config.py | 8 | CODE | |
| LOW | manga_translator/manga_translator.py | 10 | CODE | |
| LOW | manga_translator/manga_translator.py | 17 | CODE | |
| LOW | manga_translator/manga_translator.py | 208 | CODE | |
| LOW | manga_translator/__init__.py | 7 | CODE | |
| LOW | manga_translator/args.py | 5 | CODE | |
| LOW | manga_translator/args.py | 6 | CODE | |
| LOW | manga_translator/args.py | 7 | CODE | |
| LOW | manga_translator/args.py | 8 | CODE | |
| LOW | manga_translator/args.py | 8 | CODE | |
| LOW | manga_translator/args.py | 8 | CODE | |
| LOW | manga_translator/args.py | 9 | CODE | |
| LOW | manga_translator/args.py | 10 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 10 | CODE | |
| LOW | manga_translator/translators/custom_openai.py | 13 | CODE | |
| LOW | manga_translator/translators/__init__.py | 5 | CODE | |
| LOW | manga_translator/translators/google.py | 8 | CODE | |
| LOW | manga_translator/translators/google.py | 28 | CODE | |
| LOW | manga_translator/translators/gemini.py | 493 | CODE | |
| LOW | manga_translator/translators/deepseek.py | 3 | CODE | |
| LOW | manga_translator/translators/chatgpt.py | 6 | CODE | |
| LOW | manga_translator/translators/gemini_2stage.py | 1 | CODE | |
| LOW | manga_translator/translators/sakura.py | 10 | CODE | |
| LOW | manga_translator/translators/qwen2.py | 3 | CODE | |
| LOW | manga_translator/translators/qwen2.py | 4 | CODE | |
| LOW | manga_translator/ocr/xpos_relative_position.py | 5 | CODE | |
| LOW | manga_translator/ocr/model_manga_ocr.py | 2 | CODE | |
| LOW | manga_translator/ocr/model_manga_ocr.py | 3 | CODE | |
| LOW | manga_translator/ocr/model_manga_ocr.py | 3 | CODE | |
| LOW | manga_translator/ocr/model_manga_ocr.py | 3 | CODE | |
| LOW | manga_translator/ocr/model_manga_ocr.py | 4 | CODE | |
| LOW | manga_translator/ocr/model_48px.py | 3 | CODE | |
| LOW | manga_translator/ocr/model_48px.py | 3 | CODE | |
| LOW | manga_translator/ocr/model_48px.py | 3 | CODE | |
| LOW | manga_translator/ocr/model_48px.py | 23 | CODE | |
| LOW | manga_translator/utils/generic.py | 16 | CODE | |
| LOW | manga_translator/utils/__init__.py | 1 | CODE | |
| LOW | manga_translator/utils/__init__.py | 2 | CODE | |
| LOW | manga_translator/utils/__init__.py | 3 | CODE | |
| LOW | manga_translator/utils/__init__.py | 4 | CODE | |
| LOW | manga_translator/utils/__init__.py | 5 | CODE | |
| LOW | manga_translator/utils/__init__.py | 6 | CODE | |
| LOW | manga_translator/utils/__init__.py | 7 | CODE | |
| LOW | manga_translator/utils/panel/kumikolib.py | 5 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 2 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 3 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 4 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 7 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 8 | CODE | |
| 101 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | MangaStudioMain.py | 1 | # =============================================================== | COMMENT |
| MEDIUM | MangaStudioMain.py | 9 | # =============================================================== | COMMENT |
| MEDIUM | MangaStudio_Data/gpt_configs/my_cool_prompt.yaml | 1 | # ========================================================= | COMMENT |
| MEDIUM | MangaStudio_Data/gpt_configs/my_cool_prompt.yaml | 3 | # ========================================================= | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 1 | # =============================================================== | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 8 | # =============================================================== | COMMENT |
| MEDIUM | MangaStudio_Data/app/core/constants.py | 1 | # =============================================================== | COMMENT |
| MEDIUM | MangaStudio_Data/app/core/constants.py | 8 | # =============================================================== | COMMENT |
| MEDIUM⚡ | MangaStudio_Data/dicts/example_post_dict.txt | 1 | # ========================================================= | COMMENT |
| MEDIUM⚡ | MangaStudio_Data/dicts/example_post_dict.txt | 3 | # ========================================================= | COMMENT |
| MEDIUM⚡ | MangaStudio_Data/dicts/example_post_dict.txt | 6 | #---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | MangaStudio_Data/dicts/example_pre_dict.txt | 1 | # ========================================================= | COMMENT |
| MEDIUM⚡ | MangaStudio_Data/dicts/example_pre_dict.txt | 3 | # ========================================================= | COMMENT |
| MEDIUM⚡ | MangaStudio_Data/dicts/example_pre_dict.txt | 6 | #---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …tor/inpainting/ldm/modules/image_degradation/bsrgan.py | 3 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …tor/inpainting/ldm/modules/image_degradation/bsrgan.py | 5 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …tor/inpainting/ldm/modules/image_degradation/bsrgan.py | 10 | # -------------------------------------------- | STRING |
| MEDIUM | …tor/inpainting/ldm/modules/image_degradation/bsrgan.py | 43 | # -------------------------------------------- | STRING |
| MEDIUM | …tor/inpainting/ldm/modules/image_degradation/bsrgan.py | 45 | # -------------------------------------------- | STRING |
| MEDIUM | …tor/inpainting/ldm/modules/image_degradation/bsrgan.py | 222 | # -------------------------------------------- | STRING |
| MEDIUM | …tor/inpainting/ldm/modules/image_degradation/bsrgan.py | 224 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 182 | # -------------------------------------------- | COMMENT |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 184 | # -------------------------------------------- | COMMENT |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 244 | # -------------------------------------------- | COMMENT |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 246 | # -------------------------------------------- | COMMENT |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 618 | # -------------------------------------------- | COMMENT |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 620 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 200 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 202 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 217 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 219 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 269 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 271 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 296 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 298 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 639 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 641 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 763 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 765 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 836 | # -------------------------------------------- | COMMENT |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 838 | # -------------------------------------------- | COMMENT |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 16 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 19 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 22 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 175 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 178 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 234 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 236 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 240 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 370 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 372 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 376 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 612 | # -------------------------------------------- | STRING |
| MEDIUM⚡ | …npainting/ldm/modules/image_degradation/utils_image.py | 614 | # -------------------------------------------- | STRING |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 61 | # -------------------------------------------- | STRING |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 63 | # -------------------------------------------- | STRING |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 87 | # -------------------------------------------- | STRING |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 89 | # -------------------------------------------- | STRING |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 147 | # -------------------------------------------- | STRING |
| MEDIUM | …npainting/ldm/modules/image_degradation/utils_image.py | 149 | # -------------------------------------------- | STRING |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | MangaStudioMain.py | 65 | except Exception as e: | CODE |
| LOW | docker_prepare.py | 25 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 130 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1284 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1313 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1358 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1383 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2027 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2178 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2604 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2669 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2686 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2748 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 3097 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/core/config_loader.py | 40 | except Exception: | CODE |
| LOW | MangaStudio_Data/app/core/config_loader.py | 54 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/core/config_loader.py | 82 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/core/config_loader.py | 96 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/core/config_loader.py | 107 | except Exception: | CODE |
| MEDIUM | MangaStudio_Data/app/core/config_loader.py | 100 | def _get_definition_from_ref(self, ref_path): | CODE |
| LOW | MangaStudio_Data/app/core/pipeline.py | 63 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/core/pipeline.py | 105 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/core/pipeline.py | 161 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/core/pipeline.py | 177 | except Exception as e: | CODE |
| LOW | MangaStudio_Data/app/core/pipeline.py | 188 | except Exception: | CODE |
| LOW | manga_translator/config.py | 51 | except Exception: | CODE |
| MEDIUM | manga_translator/config.py | 46 | def translator_chain(string): | CODE |
| MEDIUM | manga_translator/manga_translator.py | 239 | def write(self, text): | CODE |
| LOW | manga_translator/manga_translator.py | 200 | except Exception: | CODE |
| LOW | manga_translator/manga_translator.py | 224 | except Exception: | CODE |
| LOW | manga_translator/manga_translator.py | 244 | except Exception: | CODE |
| LOW | manga_translator/manga_translator.py | 266 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 270 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 373 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 398 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 441 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 457 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 471 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 498 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 514 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 546 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 569 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 585 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 599 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 613 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 641 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 790 | except Exception: | CODE |
| LOW | manga_translator/manga_translator.py | 1305 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1509 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1561 | except Exception as retry_error: | CODE |
| LOW | manga_translator/manga_translator.py | 1568 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1622 | except Exception as individual_error: | CODE |
| LOW | manga_translator/manga_translator.py | 1643 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1685 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1710 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1723 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1737 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1763 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1778 | except Exception as e: | CODE |
| LOW | manga_translator/manga_translator.py | 1945 | except Exception as e: | CODE |
| 98 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker_prepare.py | 17 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 614 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1018 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1235 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1458 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1577 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1634 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1889 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1938 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2274 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2341 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2556 | CODE | |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2727 | CODE | |
| LOW | MangaStudio_Data/app/core/config_loader.py | 126 | CODE | |
| LOW | MangaStudio_Data/app/core/pipeline.py | 118 | CODE | |
| LOW | test/test_textline_merge.py | 30 | CODE | |
| LOW | manga_translator/manga_translator.py | 63 | CODE | |
| LOW | manga_translator/manga_translator.py | 154 | CODE | |
| LOW | manga_translator/manga_translator.py | 772 | CODE | |
| LOW | manga_translator/manga_translator.py | 921 | CODE | |
| LOW | manga_translator/manga_translator.py | 1059 | CODE | |
| LOW | manga_translator/manga_translator.py | 1458 | CODE | |
| LOW | manga_translator/manga_translator.py | 1812 | CODE | |
| LOW | manga_translator/manga_translator.py | 2022 | CODE | |
| LOW | manga_translator/manga_translator.py | 2222 | CODE | |
| LOW | manga_translator/manga_translator.py | 2353 | CODE | |
| LOW | manga_translator/manga_translator.py | 2586 | CODE | |
| LOW | manga_translator/manga_translator.py | 2739 | CODE | |
| LOW | manga_translator/manga_translator.py | 2046 | CODE | |
| LOW | manga_translator/__main__.py | 23 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 199 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 247 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 354 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 619 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 787 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 998 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 1062 | CODE | |
| LOW | manga_translator/translators/chatgpt_2stage.py | 1423 | CODE | |
| LOW | manga_translator/translators/custom_openai.py | 121 | CODE | |
| LOW | manga_translator/translators/google.py | 202 | CODE | |
| LOW | manga_translator/translators/common_gpt.py | 311 | CODE | |
| LOW | manga_translator/translators/google_gtoken.py | 46 | CODE | |
| LOW | manga_translator/translators/google_gtoken.py | 142 | CODE | |
| LOW | manga_translator/translators/deepseek.py | 105 | CODE | |
| LOW | manga_translator/translators/deepseek.py | 111 | CODE | |
| LOW | manga_translator/translators/chatgpt.py | 177 | CODE | |
| LOW | manga_translator/translators/chatgpt.py | 272 | CODE | |
| LOW | manga_translator/translators/chatgpt.py | 600 | CODE | |
| LOW | manga_translator/translators/chatgpt.py | 926 | CODE | |
| LOW | manga_translator/translators/chatgpt.py | 1070 | CODE | |
| LOW | manga_translator/translators/gemini_2stage.py | 91 | CODE | |
| LOW | manga_translator/translators/sakura.py | 245 | CODE | |
| LOW | manga_translator/textline_merge/__init__.py | 110 | CODE | |
| LOW | manga_translator/mode/local.py | 88 | CODE | |
| LOW | manga_translator/mode/local.py | 240 | CODE | |
| LOW | manga_translator/mode/local.py | 333 | CODE | |
| LOW | manga_translator/ocr/model_manga_ocr.py | 25 | CODE | |
| LOW | manga_translator/ocr/model_manga_ocr.py | 132 | CODE | |
| LOW | manga_translator/ocr/model_ocr_large.py | 384 | CODE | |
| LOW | manga_translator/ocr/model_48px_ctc.py | 62 | CODE | |
| 97 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | MangaStudio_Data/app/core/config_loader.py | 40 | except Exception: | CODE |
| HIGH | MangaStudio_Data/app/core/pipeline.py | 188 | except Exception: | CODE |
| HIGH | MangaStudio_Data/app/core/pipeline.py | 69 | except: pass | CODE |
| HIGH | MangaStudio_Data/app/core/pipeline.py | 114 | except: | CODE |
| HIGH | manga_translator/manga_translator.py | 200 | except Exception: | CODE |
| HIGH | manga_translator/manga_translator.py | 1507 | except ImportError: | CODE |
| HIGH | manga_translator/manga_translator.py | 224 | except Exception: | CODE |
| HIGH | manga_translator/manga_translator.py | 244 | except Exception: | CODE |
| HIGH | manga_translator/translators/google.py | 264 | except Exception: | CODE |
| HIGH | manga_translator/translators/google.py | 270 | except Exception: | CODE |
| HIGH | manga_translator/translators/google.py | 445 | except Exception: # pragma: nocover | CODE |
| HIGH | manga_translator/translators/google.py | 451 | except Exception: # pragma: nocover | CODE |
| HIGH | manga_translator/translators/google.py | 527 | except Exception: # pragma: nocover | CODE |
| HIGH | manga_translator/translators/google.py | 250 | except Exception: | CODE |
| HIGH | manga_translator/translators/google.py | 255 | except Exception: | CODE |
| HIGH | manga_translator/translators/google.py | 457 | except Exception: # pragma: nocover | CODE |
| HIGH | manga_translator/translators/chatgpt.py | 201 | except Exception: | CODE |
| HIGH | manga_translator/mode/local.py | 70 | except: | CODE |
| HIGH | manga_translator/utils/inference.py | 261 | except Exception: | CODE |
| HIGH | manga_translator/rendering/__init__.py | 125 | except Exception as e: | CODE |
| HIGH | manga_translator/rendering/__init__.py | 158 | except Exception as e: | CODE |
| HIGH | manga_translator/rendering/text_render.py | 19 | except Exception: | CODE |
| HIGH | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 1240 | except KeyError: | CODE |
| HIGH | manga_translator/detection/ctd_utils/yolov5/yolo.py | 220 | except NameError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | MangaStudio_Data/app/ui/main_window.py | 292 | def _create_settings_tab_container(self) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 325 | def _create_visual_compare_tab(self) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 403 | def _build_dynamic_tab_content(self, tab_name: str, settings_list: list) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 842 | def _create_language_checkbox_grid(self, info: dict) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 890 | def _create_entry_with_button(self, info: dict) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 908 | def _create_translator_chain_builder(self, info: dict) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 956 | def _create_chain_step_widget(self) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1018 | def _get_translator_chain_string(self) -> str: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1043 | def _rebuild_chain_from_string(self, chain_string: str): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1072 | def _create_grid_segmented_button(self, info: dict) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1186 | def _update_chain_list_height(self): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1208 | def _update_translator_tooltip(self, translator_name: str): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1235 | def _handle_widget_button_click(self, key: str, associated_widget: QWidget): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1425 | def _create_font_scale_widget(self) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1538 | def _filter_language_dropdown(self, translator_name: str, lang_combo: QComboBox): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1766 | def _remove_selected_jobs_from_queue(self): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 1923 | def _on_job_selection_changed(self): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2263 | def _update_colorize_restore_ui_state(self): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2274 | def _build_final_config_for_job(self, job: dict) -> dict: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2518 | def _set_settings_panel_enabled(self, is_enabled: bool): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2556 | def _assign_task_to_selection(self, task_key: str): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2689 | def _create_theme_manager_widget(self) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2947 | def _apply_settings_to_selection(self): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 2965 | def _remove_selected_jobs_from_queue(self): | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 3022 | def _create_api_manager_widget(self, info: dict) -> QWidget: | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 3130 | def _show_history_context_menu(self, position): | CODE |
| LOW | test/test_textline_merge.py | 20 | def find_region_containing_line(line, regions): | CODE |
| LOW | test/test_translation_manual.py | 9 | async def test_specified_translator(translator, tgt_lang, text, count): | CODE |
| LOW | manga_translator/manga_translator.py | 344 | def _save_current_image_context(self, image_md5: str): | CODE |
| LOW | manga_translator/manga_translator.py | 1667 | async def _translate_until_translation(self, image: Image.Image, config: Config) -> Context: | CODE |
| LOW | manga_translator/manga_translator.py | 1812 | async def _batch_translate_contexts(self, contexts_with_configs: List[tuple], batch_size: int) -> List[tuple]: | CODE |
| LOW | manga_translator/manga_translator.py | 2022 | async def _concurrent_translate_contexts(self, contexts_with_configs: List[tuple]) -> List[tuple]: | CODE |
| LOW | manga_translator/manga_translator.py | 2314 | def create_result_path_callback(image_context): | CODE |
| LOW | manga_translator/manga_translator.py | 2353 | async def _apply_post_translation_processing(self, ctx: Context, config: Config) -> List: | CODE |
| LOW | manga_translator/manga_translator.py | 2491 | async def _complete_translation_pipeline(self, ctx: Context, config: Config) -> Context: | CODE |
| LOW | manga_translator/manga_translator.py | 2586 | async def _check_repetition_hallucination(self, text: str, threshold: int = 5, silent: bool = False) -> bool: | CODE |
| LOW | manga_translator/manga_translator.py | 2642 | async def _check_target_language_ratio(self, text_regions: List, target_lang: str, min_ratio: float = 0.5) -> bool: | CODE |
| LOW | manga_translator/manga_translator.py | 2739 | async def _retry_translation_with_validation(self, region, config: Config, ctx: Context) -> str: | CODE |
| LOW | manga_translator/args.py | 62 | def _format_action_invocation(self, action: argparse.Action) -> str: | CODE |
| LOW | manga_translator/translators/nllb.py | 110 | def _map_detected_lang_to_translator(self, lang): | CODE |
| LOW | manga_translator/translators/mbart50.py | 113 | def _map_detected_lang_to_translator(self, lang): | CODE |
| LOW | manga_translator/translators/chatgpt_2stage.py | 569 | def _get_refine_system_instruction(self, from_lang: str): | CODE |
| LOW | manga_translator/translators/chatgpt_2stage.py | 1372 | def _parse_batch_json_response(self, raw_content: str, fallback_queries: List[str], query_to_image_mapping: List[tup | CODE |
| LOW | manga_translator/translators/chatgpt_2stage.py | 1423 | async def _generate_batch_debug_images(self, batch_contexts: List[Context], batch_query_regions: List[List], | CODE |
| LOW | manga_translator/translators/chatgpt_2stage.py | 747 | def _remap_translations_to_original_positions(self, reordered_translations: List[str], | STRING |
| LOW | manga_translator/translators/chatgpt_2stage.py | 1290 | def _get_batch_refine_system_instruction(self, from_lang: str): | STRING |
| LOW | manga_translator/translators/google.py | 202 | async def _request_and_parse_translation(self, query, to_lang, from_lang): | CODE |
| LOW | manga_translator/translators/common.py | 256 | def _modify_invalid_translation_query(self, query: str, trans: str) -> str: | CODE |
| LOW | manga_translator/translators/common.py | 263 | def _clean_translation_output(self, query: str, trans: str, to_lang: str) -> str: | CODE |
| LOW | manga_translator/translators/chatgpt.py | 1137 | def japanese_levenshtein_distance(s1, s2): | CODE |
| LOW | manga_translator/translators/gemini_2stage.py | 236 | def _get_refine_system_instruction(self, from_lang: str): | CODE |
| LOW | manga_translator/translators/gemini_2stage.py | 249 | def get_translate_system_instruction(self, from_lang: str, to_lang: str): | CODE |
| LOW | manga_translator/translators/baidu.py | 76 | def _modify_invalid_translation_query(self, query: str, trans: str) -> str: | CODE |
| LOW | manga_translator/translators/sakura.py | 245 | def detect_and_caculate_repeats(self, s: str, threshold: int = _REPEAT_DETECT_THRESHOLD, remove_all=True) -> Tuple[b | CODE |
| LOW | manga_translator/translators/sakura.py | 371 | async def _check_translation_quality(self, queries: List[str], response: str) -> List[str]: | CODE |
| LOW | manga_translator/translators/sakura.py | 472 | async def _handle_translation_request(self, prompt: str) -> str: | CODE |
| LOW | manga_translator/ocr/model_ocr_large.py | 172 | def generate_square_subsequent_mask(sz): | CODE |
| LOW | manga_translator/ocr/model_32px.py | 306 | def generate_square_subsequent_mask(sz): | CODE |
| LOW | manga_translator/ocr/model_48px.py | 278 | def transformer_encoder_forward( | STRING |
| LOW | manga_translator/ocr/model_48px.py | 396 | def generate_square_subsequent_mask(sz): | STRING |
| 47 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | manga_translator/manga_translator.py | 693 | CODE | |
| LOW | manga_translator/translators/mbart50.py | 111 | CODE | |
| LOW | manga_translator/translators/google.py | 284 | CODE | |
| LOW | manga_translator/translators/google.py | 469 | CODE | |
| LOW | manga_translator/translators/google.py | 474 | CODE | |
| LOW | manga_translator/translators/google.py | 531 | CODE | |
| LOW | manga_translator/ocr/model_48px_ctc.py | 212 | CODE | |
| LOW | manga_translator/utils/textblock.py | 44 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 301 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 317 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 444 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 29 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 84 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 126 | CODE | |
| LOW | manga_translator/upscaling/esrgan_pytorch.py | 422 | CODE | |
| LOW | …zation/manga_colorization_v2_utils/denoising/models.py | 66 | CODE | |
| LOW | …tion/manga_colorization_v2_utils/networks/extractor.py | 70 | CODE | |
| LOW | manga_translator/rendering/text_render_eng.py | 336 | CODE | |
| LOW | manga_translator/rendering/__init__.py | 235 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama.py | 49 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama.py | 52 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama.py | 269 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama.py | 273 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama.py | 385 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama.py | 390 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama.py | 452 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama.py | 528 | CODE | |
| LOW | manga_translator/inpainting/inpainting_attn.py | 58 | CODE | |
| LOW | manga_translator/inpainting/inpainting_attn.py | 166 | CODE | |
| LOW | manga_translator/inpainting/inpainting_aot.py | 86 | CODE | |
| LOW | manga_translator/inpainting/guided_ldm_inpainting.py | 31 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama_mpe.py | 189 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama_mpe.py | 307 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama_mpe.py | 312 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama_mpe.py | 374 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama_mpe.py | 481 | CODE | |
| LOW | manga_translator/inpainting/inpainting_lama_mpe.py | 546 | CODE | |
| LOW | manga_translator/inpainting/ldm/util.py | 92 | CODE | |
| LOW | manga_translator/inpainting/ldm/models/autoencoder.py | 13 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddim.py | 55 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddim.py | 123 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddim.py | 181 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/plms.py | 59 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/plms.py | 118 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/plms.py | 178 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 48 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 526 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 1016 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 1047 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 1103 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 1154 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 1211 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 1455 | CODE | |
| LOW | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 1615 | CODE | |
| LOW | …painting/ldm/models/diffusion/dpm_solver/dpm_solver.py | 161 | CODE | |
| LOW | …painting/ldm/models/diffusion/dpm_solver/dpm_solver.py | 939 | CODE | |
| LOW | …/inpainting/ldm/models/diffusion/dpm_solver/sampler.py | 27 | CODE | |
| LOW | …inpainting/ldm/modules/midas/midas/midas_net_custom.py | 16 | CODE | |
| LOW | …slator/inpainting/ldm/modules/midas/midas/dpt_depth.py | 85 | CODE | |
| LOW | …ranslator/inpainting/ldm/modules/midas/midas/blocks.py | 226 | CODE | |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | MangaStudio_Data/app/ui/main_window.py | 2060 | # Check if zoom limiting is enabled | COMMENT |
| LOW | MangaStudio_Data/app/ui/main_window.py | 3089 | # Open the file with the default system application | COMMENT |
| LOW | manga_translator/manga_translator.py | 1065 | # Set translator to none to provent token waste if prep_manual is True | COMMENT |
| LOW | manga_translator/manga_translator.py | 2301 | # Check if batch processing is enabled and batch_contexts are provided | COMMENT |
| LOW | manga_translator/translators/chatgpt_2stage.py | 345 | # Check if this is a batch processing scenario | COMMENT |
| LOW | manga_translator/translators/chatgpt_2stage.py | 1454 | # Check if verbose mode is enabled | COMMENT |
| LOW | manga_translator/translators/chatgpt_2stage.py | 824 | # Check if this is batch processing | STRING |
| LOW | manga_translator/translators/gemini.py | 360 | # Check if any translations are empty | COMMENT |
| LOW | manga_translator/translators/common_gpt.py | 447 | # Check if the ID is within the expected range | COMMENT |
| LOW | manga_translator/translators/deepseek.py | 172 | # Check if any translations are empty | COMMENT |
| LOW | manga_translator/translators/chatgpt.py | 333 | # Check if invalid indexes exist (for example, <|2|>, <|3|>, etc.) | COMMENT |
| LOW | manga_translator/translators/chatgpt.py | 424 | # Check if all expected indexes were found | COMMENT |
| LOW | manga_translator/translators/chatgpt.py | 492 | # Check if the number of translations matches - fix list index out of range error | COMMENT |
| LOW | manga_translator/translators/chatgpt.py | 1163 | # Check if it's within the katakana range (0x30A0-0x30FF) | COMMENT |
| LOW | manga_translator/ocr/model_48px.py | 738 | finished = (out_idx[:, -1] == end_tok) # Check if the last token is the end token | STRING |
| LOW | manga_translator/utils/sort.py | 32 | # Assign panel_index to each region | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 360 | # Check if the character is a punctuation | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 377 | # Check if the bitmap is valid (characters like spaces may not have valid bitmaps) | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 431 | # Check if the slice is valid (width and height both greater than 0) | COMMENT |
| LOW⚡ | manga_translator/detection/panel_finder.py | 56 | # Check if the polygon contains any of the other polygons. | COMMENT |
| LOW⚡ | manga_translator/detection/panel_finder.py | 59 | # Check if the polygon contains the other polygon and that the polygons | COMMENT |
| LOW⚡ | manga_translator/detection/panel_finder.py | 64 | # Check if rect2 is completely within rect1 | COMMENT |
| LOW | manga_translator/detection/panel_finder.py | 238 | # Check if range1 is before range2 | COMMENT |
| LOW | manga_translator/detection/panel_finder.py | 241 | # Check if range1 is after range2 | COMMENT |
| LOW | server/main.py | 336 | # Check if final.png exists in this directory | COMMENT |
| LOW | server/main.py | 355 | # Check if final.png exists in this directory | COMMENT |
| LOW | server/main.py | 375 | # Check if final.png exists in this directory | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | manga_translator/translators/gemini.py | 570 | response = await self.translator.client.aio.models.generate_content(model=GEMINI_MODEL, | CODE |
| CRITICAL | manga_translator/translators/deepseek.py | 255 | response = await self.client.beta.chat.completions.parse(**kwargs) | CODE |
| CRITICAL | manga_translator/translators/gemini_2stage.py | 170 | response = self.client.beta.chat.completions.parse( | CODE |
| CRITICAL | manga_translator/translators/gemini_2stage.py | 187 | response = self.client2.beta.chat.completions.parse( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | MangaStudioMain.py | 22 | # Define the path to the directory containing our application source code | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 437 | # Create the separator widget (Label + Line) | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 597 | # Define the button first, then set its text and connect the signal. | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 858 | # Create a 2-column grid of checkboxes | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 1466 | # Create a handler function that "captures" the current key and context_key. | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 1789 | # Create a completely new job dictionary, only reusing the source path and name. | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 1840 | # This function is now superseded by drag-and-drop, but we keep it for now. | COMMENT |
| MEDIUM | MangaStudio_Data/app/ui/main_window.py | 2103 | # Create a temporary 'job' dictionary to hold the settings for the test. | COMMENT |
| MEDIUM | manga_translator/translators/chatgpt_2stage.py | 1473 | # Create a copy and update text with corrected version | COMMENT |
| MEDIUM | manga_translator/translators/chatgpt_2stage.py | 760 | # Create a mapping from original_bbox_id to translation | STRING |
| MEDIUM | manga_translator/translators/chatgpt.py | 298 | # Initialize response_text variable to avoid UnboundLocalError | COMMENT |
| MEDIUM | manga_translator/translators/config_gpt.py | 8 | # Define the schema for the response | COMMENT |
| MEDIUM⚡ | manga_translator/detection/panel_finder.py | 51 | # Create a new list to store the filtered polygons. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | MangaStudioMain.py | 1 | # =============================================================== | COMMENT |
| LOW | README.md | 1221 | # If you wish to set a different value for a specific translator configuration: | COMMENT |
| LOW | README.md | 1401 | # This will significantly increase the probability of successful translation | COMMENT |
| LOW | README_CN.md | 1201 | COMMENT | |
| LOW | README_CN.md | 1221 | # include_template | bool | COMMENT |
| LOW | requirements-rocm.txt | 1 | # For AMD GPU (ROCm) support. | COMMENT |
| LOW | demo/doc/docker-compose-local-dev.yml | 21 | #deploy: | COMMENT |
| LOW | MangaStudio_Data/gpt_configs/my_cool_prompt.yaml | 1 | # ========================================================= | COMMENT |
| LOW | MangaStudio_Data/gpt_configs/my_cool_prompt.yaml | 21 | COMMENT | |
| LOW | MangaStudio_Data/dicts/example_post_dict.txt | 1 | # ========================================================= | COMMENT |
| LOW | MangaStudio_Data/dicts/example_post_dict.txt | 21 | COMMENT | |
| LOW | MangaStudio_Data/dicts/example_pre_dict.txt | 1 | # ========================================================= | COMMENT |
| LOW | MangaStudio_Data/dicts/example_pre_dict.txt | 21 | # the translator from getting confused. | COMMENT |
| LOW | test/test_textline_merge.py | 61 | # similar_expected_combination = None | COMMENT |
| LOW | manga_translator/translators/common_gpt.py | 181 | # 加上分行内容 | COMMENT |
| LOW | manga_translator/translators/sugoi.py | 41 | # self._get_file_path('jparacrawl'), | COMMENT |
| LOW | manga_translator/translators/deepseek.py | 21 | _TIMEOUT = 40 # 在重试之前等待服务器响应的时间(秒) | COMMENT |
| LOW | manga_translator/translators/chatgpt.py | 1201 | # if len(normalized_text) > len(normalized_term): | COMMENT |
| LOW | manga_translator/textline_merge/__init__.py | 81 | for node_set in nx.algorithms.components.connected_components(G): | COMMENT |
| LOW | manga_translator/textline_merge/__init__.py | 101 | # index_3 = 2 | COMMENT |
| LOW | manga_translator/ocr/model_48px_ctc.py | 461 | _, preds_index = logprobs.max(2) | COMMENT |
| LOW | manga_translator/utils/textblock.py | 441 | # left_std = abs(np.std(polygons[:, :2, 1] - y1)) | COMMENT |
| LOW | manga_translator/utils/generic.py | 601 | # def merge_quadrilaterals(q1: Quadrilateral, q2: Quadrilateral): | COMMENT |
| LOW | manga_translator/utils/bubble.py | 41 | COMMENT | |
| LOW | manga_translator/rendering/__init__.py | 181 | # elif char_count_orig > 0 and char_count_trans < char_count_orig: | COMMENT |
| LOW | manga_translator/rendering/__init__.py | 321 | h, w, _ = temp_box.shape | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 161 | fg = np.zeros((bw_char_map.shape[0], bw_char_map.shape[1], 4), dtype = np.uint8) | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 281 | COMMENT | |
| LOW | manga_translator/rendering/text_render.py | 401 | return char_offset_y | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 941 | bitmap_char = np.array(bitmap.buffer, dtype=np.uint8).reshape((bitmap.rows, bitmap.width)) | COMMENT |
| LOW | manga_translator/detection/ctd.py | 161 | # map output to input img | COMMENT |
| LOW | manga_translator/detection/ctd.py | 181 | # blk_list = group_output(blks, lines, im_w, im_h, mask) | COMMENT |
| LOW | manga_translator/detection/ctd_utils/yolov5/yolo.py | 101 | # def _forward_augment(self, x): | COMMENT |
| LOW | examples/gpt_config-example.yaml | 1 | # Values will be search for upwards. | COMMENT |
| LOW | examples/gpt_config-example.yaml | 21 | # rgx_capture | String | COMMENT |
| LOW | examples/gpt_config-example.yaml | 181 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | manga_translator/ocr/model_ocr_large.py | 0 | featureextractor of fan (http://openaccess.thecvf.com/content_iccv_2017/papers/cheng_focusing_attention_towards_iccv_201 | STRING |
| HIGH | manga_translator/ocr/model_48px_ctc.py | 0 | featureextractor of fan (http://openaccess.thecvf.com/content_iccv_2017/papers/cheng_focusing_attention_towards_iccv_201 | STRING |
| HIGH | manga_translator/ocr/model_32px.py | 0 | featureextractor of fan (http://openaccess.thecvf.com/content_iccv_2017/papers/cheng_focusing_attention_towards_iccv_201 | STRING |
| HIGH | …nga_translator/inpainting/ldm/models/diffusion/ddpm.py | 0 | overwrite model.train with this function to make sure train/eval mode does not change anymore. | STRING |
| HIGH | manga_translator/inpainting/ldm/modules/midas/api.py | 0 | overwrite model.train with this function to make sure train/eval mode does not change anymore. | STRING |
| HIGH | …_translator/inpainting/ldm/modules/encoders/modules.py | 0 | overwrite model.train with this function to make sure train/eval mode does not change anymore. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | manga_translator/utils/generic.py | 760 | return self * (1. / self.length()) | CODE |
| HIGH | manga_translator/utils/generic.py | 788 | da = a.length() | CODE |
| HIGH | manga_translator/utils/generic.py | 789 | db = b.length() | CODE |
| HIGH | manga_translator/utils/generic.py | 818 | return d.length() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | manga_translator/translators/common.py | 108 | # If it is a list it will simply return the language code as is. | COMMENT |
| MEDIUM | manga_translator/utils/bubble.py | 53 | # Consequence: Cannot utilize common-sense features like "bubbles typically surround the text box and are moderately | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 182 | # since bg rect is always larger than fg rect, we can just use the bg rect | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 400 | # For whitespace characters, just return the vertical advance | COMMENT |
| LOW | examples/gpt_config-example.yaml | 157 | # If you'd like to disable this feature, just set this to an empty list. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | MangaStudio_Data/ui_map.json | 79 | "placeholder": "e.g., my_cool_prompt.yaml", | CODE |
| LOW | MangaStudio_Data/ui_map.json | 90 | "placeholder": "e.g., dicts/my_pre_dict.txt", | CODE |
| LOW | MangaStudio_Data/ui_map.json | 101 | "placeholder": "e.g., dicts/my_post_dict.txt", | CODE |
| LOW | MangaStudio_Data/ui_map.json | 259 | "placeholder": "e.g., 0.85 (default: auto)", | CODE |
| LOW | MangaStudio_Data/ui_map.json | 496 | "placeholder": "e.g., (SFX),[NOISE]", | CODE |
| LOW | MangaStudio_Data/app/ui/main_window.py | 836 | placeholder = info.get("placeholder", "") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | manga_translator/translators/groq.py | 118 | # Maintain the context window | COMMENT |
| MEDIUM | manga_translator/translators/chatgpt.py | 446 | # Skip common hallucination characters in specific models | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 625 | # Step 1: 在解析前先检查是否为拒绝消息 | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 629 | # Step 2: Remove markdown code blocks and clean up | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 654 | # Step 3: Parse JSON | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 657 | # Step 4: Extract corrected texts - ignore key names, just find the array | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 704 | # Step 5: Sort by reading_order to get proper reading sequence | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 707 | # Step 6: Extract reordered texts and position mapping | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 715 | # Step 7: Validate and handle edge cases | STRING |
| LOW | manga_translator/rendering/text_render.py | 706 | # Step 1: | COMMENT |
| LOW | manga_translator/rendering/text_render.py | 746 | # Step 2: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 625 | # Step 1: 在解析前先检查是否为拒绝消息 | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 629 | # Step 2: Remove markdown code blocks and clean up | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 654 | # Step 3: Parse JSON | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 657 | # Step 4: Extract corrected texts - ignore key names, just find the array | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 704 | # Step 5: Sort by reading_order to get proper reading sequence | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 707 | # Step 6: Extract reordered texts and position mapping | STRING |
| LOW⚡ | manga_translator/translators/chatgpt_2stage.py | 715 | # Step 7: Validate and handle edge cases | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | manga_translator/rendering/text_render.py | 115 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | manga_translator/utils/threading.py | 54 | async def my_function(arg): | STRING |