AI Slop Code RIsk Monitor

dmMaze/BallonsTranslator

深度学习辅助漫画翻译工具, 支持一键机翻和简单的图像/文本编辑 | Yet another computer-aided comic/manga translation tool powered by deeplearning

16.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for dmMaze/BallonsTranslator, a Python project with 5,202 GitHub stars. SynthScan examined 245,397 lines of code across 421 source files, recording 3541 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 16.8 (Elevated 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.

16.8
Adjusted Signal
16.8
Raw Pattern Score
100%
Time Factor
2026-10-04
Last Push
5.2K
Stars
Python
Language
245.4K
Lines of Code
421
Files
3.5K
Pattern Hits
2026-10-12
Scan Date
0.45
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 37.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 15.1/100 · LOW

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

Agent Over-Engineering Ratio 45.7/100 · MEDIUM

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

PR Review Velocity Impact 61.1/100 · HIGH

Which changes need focused human review? 3541 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 13HIGH 178MEDIUM 43LOW 3307

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 3541 distinct pattern matches across 18 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.

Hyper-Verbose Identifiers2289 hits · 1982 pts
SeverityFileLineSnippetContext
LOWtests/test_text_style_preset_reordering.py65 def test_reordering_moves_widget_and_saved_style_together(self) -> None:CODE
LOWtests/test_text_style_preset_reordering.py101 def test_drop_in_row_gap_uses_horizontal_insertion_point(self) -> None:CODE
LOWtests/test_ruby_furigana.py98 def test_group_html_round_trip_keeps_nested_format_entities_and_rp(self):CODE
LOWtests/test_ruby_furigana.py126 def test_old_html_and_save_load_save_keep_semantic_content(self):CODE
LOWtests/test_ruby_furigana.py156 def test_mono_round_trip_keeps_pair_order_and_distinct_identical_units(self):CODE
LOWtests/test_ruby_furigana.py173 def test_malformed_and_nested_ruby_preserve_only_base_text(self):CODE
LOWtests/test_ruby_furigana.py226 def test_custom_clipboard_round_trip_remaps_both_id_levels(self):CODE
LOWtests/test_ruby_furigana.py286 def test_creation_validation_rejects_empty_paragraph_mismatch_and_tate(self):CODE
LOWtests/test_ruby_furigana.py303 def test_partial_overlap_is_rejected_without_changing_existing_ruby(self):CODE
LOWtests/test_ruby_furigana.py314 def test_caret_update_conversion_remove_undo_and_redo(self):CODE
LOWtests/test_ruby_furigana.py334 def test_group_interior_insertion_extends_but_boundaries_do_not(self):CODE
LOWtests/test_ruby_furigana.py358 def test_group_deletion_and_creation_undo_redo_remain_native(self):CODE
LOWtests/test_ruby_furigana.py374 def test_side_editor_propagation_obeys_group_and_mono_boundaries(self):CODE
LOWtests/test_ruby_furigana.py396 def test_production_replacement_never_transfers_mono_reading(self):CODE
LOWtests/test_ruby_furigana.py413 def test_non_text_keys_use_native_editor(self):CODE
LOWtests/test_ruby_furigana.py436 def test_navigation_keys_do_not_edit_or_add_undo_steps(self):CODE
LOWtests/test_ruby_furigana.py463 def test_ime_replacement_range_never_transfers_mono_reading(self):CODE
LOWtests/test_ruby_furigana.py486 def test_custom_rich_paste_obeys_group_replacement_and_break_rules(self):CODE
LOWtests/test_ruby_furigana.py530 def test_break_insertion_removes_group_in_every_plain_text_path(self):CODE
LOWtests/test_ruby_furigana.py578 def test_mono_boundary_insertion_and_unit_deletion_are_structural(self):CODE
LOWtests/test_ruby_furigana.py594 def test_ruby_and_tate_reject_overlap_in_both_application_orders(self):CODE
LOWtests/test_ruby_furigana.py613 def test_ordinary_formatting_preserves_container_and_unit_ids(self):CODE
LOWtests/test_ruby_furigana.py625 def test_horizontal_long_ruby_expands_inline_positions_bounds_and_hit(self):CODE
LOWtests/test_ruby_furigana.py650 def test_horizontal_wrap_keeps_group_and_pairs_indivisible(self):CODE
LOWtests/test_ruby_furigana.py672 def test_horizontal_wrap_settles_final_ruby_cell_membership(self):CODE
LOWtests/test_ruby_furigana.py711 def test_horizontal_wrap_queries_only_grapheme_endpoints(self):CODE
LOWtests/test_ruby_furigana.py745 def test_paint_span_fragment_lookup_is_single_pass_for_many_mono_units(self):CODE
LOWtests/test_ruby_furigana.py837 def test_horizontal_placement_spacing_and_selection_share_ruby_cell(self):CODE
LOWtests/test_ruby_furigana.py873 def test_vertical_group_and_mono_keep_units_and_annotation_hit_geometry(self):CODE
LOWtests/test_ruby_furigana.py900 def test_vertical_ruby_cells_include_only_selected_whitespace(self) -> None:CODE
LOWtests/test_ruby_furigana.py978 def test_vertical_ruby_keeps_horizontal_alignment_after_space_insertion(self) -> None:CODE
LOWtests/test_ruby_furigana.py1031 def test_space_around_expands_latin_and_mixed_but_not_bopomofo(self):CODE
LOWtests/test_ruby_furigana.py1151 def test_vertical_group_and_mono_use_complete_selected_range(self):CODE
LOWtests/test_ruby_furigana.py1205 def test_vertical_mono_expands_latin_and_mixed_readings_per_pair(self):CODE
LOWtests/test_ruby_furigana.py1254 def test_horizontal_latin_base_expands_native_geometry_and_paint(self):CODE
LOWtests/test_ruby_furigana.py1332 def test_long_annotation_distributes_shorter_cjk_and_latin_base(self):CODE
LOWtests/test_ruby_furigana.py1387 def test_vertical_item_resize_uses_actual_one_sided_annotation_width(self):CODE
LOWtests/test_ruby_furigana.py1460 def test_vertical_wrap_and_both_placements_use_settled_columns(self):CODE
LOWtests/test_ruby_furigana.py1504 def test_wrapped_ruby_keeps_its_font_width_and_side_margins(self) -> None:CODE
LOWtests/test_ruby_furigana.py1543 def test_ruby_and_emphasis_accumulate_same_side_margin(self):CODE
LOWtests/test_ruby_furigana.py1563 def test_ruby_uses_cached_native_documents_without_mutating_live_document(self):CODE
LOWtests/test_ruby_furigana.py1670 def test_vertical_glyph_slant_stroke_keeps_ruby_out_of_dilation(self):CODE
LOWtests/test_ruby_furigana.py1761 def test_effects_glyph_slant_mode_switch_and_paint_share_ruby_geometry(self):CODE
LOWtests/test_ruby_furigana.py1893 def test_panel_editor_emits_apply_shows_errors_and_exposes_remove(self):CODE
LOWtests/test_image_effect.py81 def test_image_placements_use_source_over_and_destination_over(self):CODE
LOWtests/test_image_effect.py116 def test_all_image_prefix_nodes_remain_in_application_order(self):CODE
LOWtests/test_image_effect.py151 def test_image_keeps_canonical_and_generated_rasterization(self):CODE
LOWtests/test_image_effect.py182 def test_image_prefix_cache_tracks_nodes_before_bottom_filter(self):CODE
LOWtests/test_image_effect.py240 def test_strict_image_resolves_missing_prefix(self):CODE
LOWtests/test_image_effect.py277 def test_strict_canvas_export_keeps_filter_before_image(self):CODE
LOWtests/test_image_effect.py305 def test_image_preserves_generated_padding_after_project_attachment(self):CODE
LOWtests/test_image_effect.py334 def test_distorted_glow_uses_canonical_stroke_bounds(self):CODE
LOWtests/test_image_effect.py379 def test_distorted_image_then_expanding_filter_uses_logical_bounds(self):CODE
LOWtests/test_image_effect.py438 def test_missing_image_does_not_expand_distorted_filter_bounds(self):CODE
LOWtests/test_image_effect.py483 def test_sole_missing_image_is_an_interactive_neutral(self):CODE
LOWtests/test_image_effect.py511 def test_raster_memory_failure_stays_inside_callback_and_is_strict(self):CODE
LOWtests/test_image_effect.py559 def test_settled_image_paint_resolves_project_raster_once(self):CODE
LOWtests/test_image_effect.py598 def test_repaint_and_asset_refresh_resolve_project_raster_once(self):CODE
LOWtests/test_image_effect.py625 def test_suppressed_repaint_does_not_resolve_project_raster(self):CODE
LOWtests/test_image_effect.py654 def test_image_mode_preview_resolves_project_raster_once(self):CODE
2229 more matches not shown…
Cross-File Repetition63 hits · 315 pts
SeverityFileLineSnippetContext
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0set acrylic effect for window parameter ---------- hwnd: int or `sip.voidptr` window handle gradientcolor: str hexadecimSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0set acrylic effect for window parameter ---------- hwnd: int or `sip.voidptr` window handle gradientcolor: str hexadecimSTRING
HIGH…lator/ui/framelesswindow/fw_qt5/linux/window_effect.py0set acrylic effect for window parameter ---------- hwnd: int or `sip.voidptr` window handle gradientcolor: str hexadecimSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0set the border color of the window parameters ---------- hwnd: int or `sip.voidptr` window handle color: qcolor border aSTRING
HIGH…llontranslator/ui/framelesswindow/win_window_effect.py0set the border color of the window parameters ---------- hwnd: int or `sip.voidptr` window handle color: qcolor border aSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0set the border color of the window parameters ---------- hwnd: int or `sip.voidptr` window handle color: qcolor border aSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0remove the border color of the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/win_window_effect.py0remove the border color of the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0remove the border color of the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0add the mica effect to the window (win11 only) parameters ---------- hwnd: int or `sip.voidptr` window handle isdarkmodeSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0add the mica effect to the window (win11 only) parameters ---------- hwnd: int or `sip.voidptr` window handle isdarkmodeSTRING
HIGH…llontranslator/ui/framelesswindow/win_window_effect.py0add the mica effect to the window (win11 only) parameters ---------- hwnd: int or `sip.voidptr` window handle isdarkmodeSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0add the aero effect to the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0add the aero effect to the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…lator/ui/framelesswindow/fw_qt5/linux/window_effect.py0add the aero effect to the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/win_window_effect.py0add the aero effect to the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0set transparent effect for window parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0set transparent effect for window parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…lator/ui/framelesswindow/fw_qt5/linux/window_effect.py0set transparent effect for window parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0remove background effect parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0remove background effect parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…lator/ui/framelesswindow/fw_qt5/linux/window_effect.py0remove background effect parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0add shadow to menu parameter ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0add shadow to menu parameter ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…lator/ui/framelesswindow/fw_qt5/linux/window_effect.py0add shadow to menu parameter ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0remove shadow from pop-up menu parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/win_window_effect.py0remove shadow from pop-up menu parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0remove shadow from pop-up menu parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…lator/ui/framelesswindow/fw_qt5/linux/window_effect.py0remove shadow from pop-up menu parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0remove dwm shadow from the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0remove dwm shadow from the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…lator/ui/framelesswindow/fw_qt5/linux/window_effect.py0remove dwm shadow from the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/win_window_effect.py0remove dwm shadow from the window parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0enables the maximize and minimize animation of the window parameters ---------- hwnd : int or `sip.voidptr` window handlSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0enables the maximize and minimize animation of the window parameters ---------- hwnd : int or `sip.voidptr` window handlSTRING
HIGH…lator/ui/framelesswindow/fw_qt5/linux/window_effect.py0enables the maximize and minimize animation of the window parameters ---------- hwnd : int or `sip.voidptr` window handlSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0disable the maximize button of window parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/win_window_effect.py0disable the maximize button of window parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0disable the maximize button of window parameters ---------- hwnd : int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/mac_window_effect.py0enable the blur effect behind the whole client parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…llontranslator/ui/framelesswindow/win_window_effect.py0enable the blur effect behind the whole client parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGH…ontranslator/ui/framelesswindow/linux_window_effect.py0enable the blur effect behind the whole client parameters ---------- hwnd: int or `sip.voidptr` window handleSTRING
HIGHballontranslator/ui/framelesswindow/win32_utils.py0get the accent color of system returns ------- color: qcolor accent colorSTRING
HIGHballontranslator/ui/framelesswindow/linux_utils.py0get the accent color of system returns ------- color: qcolor accent colorSTRING
HIGHballontranslator/ui/framelesswindow/mac_utils.py0get the accent color of system returns ------- color: qcolor accent colorSTRING
HIGHballontranslator/ui/framelesswindow/win32_utils.py0resize window parameters ---------- window: qwidget window globalpos: qpoint the global point of mouse release event edgSTRING
HIGHballontranslator/ui/framelesswindow/linux_utils.py0resize window parameters ---------- window: qwidget window globalpos: qpoint the global point of mouse release event edgSTRING
HIGHballontranslator/ui/framelesswindow/mac_utils.py0resize window parameters ---------- window: qwidget window globalpos: qpoint the global point of mouse release event edgSTRING
HIGH…nslator/ui/framelesswindow/fw_qt5/utils/linux_utils.py0resize window parameters ---------- window: qwidget window globalpos: qpoint the global point of mouse release event edgSTRING
HIGH…ator/ui/framelesswindow/fw_qt5/win_frameless_window.py0set custom title bar # parameters # ---------- # titlebar: titlebar # title bar #STRING
HIGH…translator/ui/framelesswindow/fw_qt5/linux/__init__.py0set custom title bar # parameters # ---------- # titlebar: titlebar # title bar #STRING
HIGH…ator/ui/framelesswindow/fw_qt6/win_frameless_window.py0set custom title bar # parameters # ---------- # titlebar: titlebar # title bar #STRING
HIGH…ator/ui/framelesswindow/fw_qt6/mac_frameless_window.py0set custom title bar # parameters # ---------- # titlebar: titlebar # title bar #STRING
HIGH…or/ui/framelesswindow/fw_qt6/linux_frameless_window.py0set custom title bar # parameters # ---------- # titlebar: titlebar # title bar #STRING
HIGH…ator/ui/framelesswindow/fw_qt5/win_frameless_window.py0returns whether the system title bar button is visibleSTRING
HIGH…ator/ui/framelesswindow/fw_qt6/win_frameless_window.py0returns whether the system title bar button is visibleSTRING
HIGH…or/ui/framelesswindow/fw_qt6/linux_frameless_window.py0returns whether the system title bar button is visibleSTRING
HIGH…ator/ui/framelesswindow/fw_qt5/win_frameless_window.py0set the visibility of system title bar button, only works for macosSTRING
HIGH…ator/ui/framelesswindow/fw_qt6/win_frameless_window.py0set the visibility of system title bar button, only works for macosSTRING
HIGH…or/ui/framelesswindow/fw_qt6/linux_frameless_window.py0set the visibility of system title bar button, only works for macosSTRING
3 more matches not shown…
Cross-Language Confusion57 hits · 310 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_text_transform_undo.py2713 stack.push(CODE
HIGH⚡tests/test_text_transform_undo.py2717 stack.push(CODE
HIGH⚡tests/test_text_transform_undo.py2726 stack.push(CODE
HIGH⚡tests/test_text_transform_undo.py2729 stack.push(CODE
HIGH⚡tests/test_text_transform_undo.py2782 stack.push(CODE
HIGH⚡tests/test_text_transform_undo.py2787 stack.push(CODE
HIGH⚡tests/test_text_transform_undo.py2792 stack.push(CODE
HIGH⚡tests/test_text_transform_undo.py2797 stack.push(CODE
HIGHtests/test_text_transform_undo.py243 stack.push(TextEditCommand(edit, num_steps, item))CODE
HIGHtests/test_text_transform_undo.py2540 stack.push(command)CODE
HIGHtests/test_text_transform_undo.py2561 stack.push(SetTextTransformCommand(CODE
HIGHtests/test_text_transform_undo.py2743 stack.push(CODE
HIGHtests/test_text_transform_undo.py4576 stack.push(ReshapeItemCommand(item))CODE
HIGHtests/test_text_transform_undo.py4577 stack.push(CODE
HIGHtests/test_text_transform_undo.py4604 stack.push(MoveBlkItemsCommand(CODE
HIGHtests/test_text_transform_undo.py4620 stack.push(ReshapeItemCommand(item))CODE
HIGHtests/test_rich_text_annotations.py3607 stack.push(TextItemEditCommand(item, None, num_steps, panel))CODE
HIGHtests/test_rich_text_annotations.py3717 stack.push(TextItemEditCommand(item, None, num_steps, panel))CODE
HIGHtests/test_horizontal_whitespace.py181 for position in range(actual.length()):CODE
HIGHtests/test_text_effect_preview.py68 self.stack.push(command)CODE
HIGHtests/test_llm_translation_contract.py335 '{"translations":{"1":"heart"},"page_summary":null}',CODE
HIGHtests/test_text_effect_panel.py113 self.stack.push(command)CODE
HIGHballontranslator/ui/page_search_widget.py89 block_end = block_start + block.length()CODE
HIGH⚡ballontranslator/ui/canvas.py1867 self.draw_undo_stack.push(command)CODE
HIGH⚡ballontranslator/ui/canvas.py1874 self.text_undo_stack.push(command)CODE
HIGHballontranslator/ui/text_engine/horizontal_layout.py1239 bllen = block.length()CODE
HIGHballontranslator/ui/text_engine/horizontal_layout.py1254 min(block.length() - 1, selEnd),CODE
HIGHballontranslator/ui/text_engine/layout.py69 block_length = max(0, block.length() - 1)CODE
HIGHballontranslator/ui/text_engine/layout.py133 if block_position <= cursor_position < block_position + block.length():CODE
HIGHballontranslator/ui/text_engine/layout.py432 char_idx += fragment.length()CODE
HIGHballontranslator/ui/text_engine/vertical_layout.py949 line_position + leading, max(0, block.length() - 2),CODE
HIGHballontranslator/ui/text_engine/font_family.py208 fragment.length(),CODE
HIGH⚡ballontranslator/ui/text_engine/annotations.py1535 if fragment.isValid() and fragment.length() > 0:CODE
HIGH⚡ballontranslator/ui/text_engine/annotations.py1541 length = fragment.length()CODE
HIGHballontranslator/ui/text_engine/annotations.py741 fragment_end = fragment_start + fragment.length()CODE
HIGHballontranslator/ui/text_engine/annotations.py1627 if fragment.isValid() and fragment.length() > 0:CODE
HIGHballontranslator/ui/text_engine/annotations.py1631 length = fragment.length()CODE
HIGHballontranslator/ui/text_engine/annotations.py1729 if fragment.isValid() and fragment.length() > 0:CODE
HIGHballontranslator/ui/text_engine/annotations.py1741 fragment.length(),CODE
HIGHballontranslator/ui/text_engine/item.py1814 frag_end = frag_start + fragment.length()CODE
HIGHballontranslator/ui/text_engine/item.py2187 pos2 = pos1 + fragment.length()CODE
HIGHballontranslator/ui/text_engine/editing/manager.py758 # command construction can capture or mutate items before stack.push().COMMENT
HIGHballontranslator/ui/text_engine/formatting/panel.py265 icon_key = (ratio, font.toString(), color.rgba())CODE
HIGHballontranslator/ui/text_engine/rendering/glyph.py319 and absolute < fragment.position() + fragment.length()CODE
HIGHballontranslator/ui/text_engine/rendering/glyph.py354 block_length = max(0, block.length() - 1)CODE
HIGHballontranslator/ui/text_engine/rendering/glyph.py392 end = start + fragment.length()CODE
HIGH…llontranslator/ui/text_engine/rendering/glyph_slant.py278 block_end = block_start + block.length() - 1CODE
HIGH…llontranslator/ui/text_engine/rendering/glyph_slant.py515 if fragment.isValid() and fragment.length() > 0:CODE
HIGHballontranslator/ui/text_engine/rendering/ruby.py103 if fragment.isValid() and fragment.length() > 0:CODE
HIGHballontranslator/ui/text_engine/rendering/ruby.py106 ends.append(start + fragment.length())CODE
HIGHballontranslator/ui/text_engine/rendering/ruby.py439 and absolute < fragment.position() + fragment.length()CODE
HIGHballontranslator/ui/text_engine/effects/renderer.py1809 fragment.position() + fragment.length(),CODE
HIGHballontranslator/ui/text_engine/effects/renderer.py2005 fragment.position() + fragment.length(),CODE
HIGHballontranslator/ui/text_engine/effects/renderer.py2236 fragment.length(),CODE
HIGHballontranslator/utils/download_util.py250 f.write(buffer) # type: ignore[possibly-undefined]STRING
HIGHballontranslator/utils/download_util.py252 sha256.update(buffer) # type: ignore[possibly-undefined]STRING
HIGHballontranslator/utils/download_util.py266 digest = sha256.hexdigest() # type: ignore[possibly-undefined]STRING
Unused Imports321 hits · 306 pts
SeverityFileLineSnippetContext
LOWtests/test_codex_storage.py1CODE
LOWtests/test_app_event_filters.py10CODE
LOWtests/test_app_event_filters.py46CODE
LOWtests/test_text_alpha_mask.py4CODE
LOWtests/test_update_dialog.py7CODE
LOWtests/test_update_dialog.py8CODE
LOWtests/test_update_dialog.py8CODE
LOWtests/test_update_dialog.py10CODE
LOWtests/test_update_dialog.py10CODE
LOWtests/test_module_run_errors.py7CODE
LOWtests/test_module_run_errors.py11CODE
LOWtests/test_module_run_errors.py14CODE
LOWtests/test_font_refresh.py1CODE
LOWtests/ui/text_rendering.py20CODE
LOWtests/ui/text_rendering.py20CODE
LOWtests/ui/render_ruby_furigana_fixture.py3CODE
LOWtests/ui/render_emphasis_native_fixture.py3CODE
LOWtests/ui/render_vertical_roman_overflow_fixture.py3CODE
LOWballontranslator/launch.py7CODE
LOWballontranslator/ui/misc.py10CODE
LOWballontranslator/ui/misc.py10CODE
LOWballontranslator/ui/misc.py10CODE
LOWballontranslator/ui/font_refresh.py2CODE
LOWballontranslator/ui/codex_account.py3CODE
LOWballontranslator/ui/drawing_commands.py1CODE
LOWballontranslator/ui/drawing_commands.py1CODE
LOWballontranslator/ui/drawing_commands.py1CODE
LOWballontranslator/ui/drawing_commands.py1CODE
LOWballontranslator/ui/drawing_commands.py1CODE
LOWballontranslator/ui/drawing_commands.py1CODE
LOWballontranslator/ui/drawing_commands.py1CODE
LOWballontranslator/ui/drawing_commands.py2CODE
LOWballontranslator/ui/drawing_commands.py2CODE
LOWballontranslator/ui/drawing_commands.py2CODE
LOWballontranslator/ui/drawing_commands.py2CODE
LOWballontranslator/ui/drawing_commands.py2CODE
LOWballontranslator/ui/drawing_commands.py2CODE
LOWballontranslator/ui/drawing_commands.py8CODE
LOWballontranslator/ui/drawing_commands.py8CODE
LOWballontranslator/ui/drawing_commands.py11CODE
LOWballontranslator/ui/drawing_commands.py13CODE
LOWballontranslator/ui/drawing_commands.py13CODE
LOWballontranslator/ui/drawing_commands.py13CODE
LOWballontranslator/ui/global_search_widget.py1CODE
LOWballontranslator/ui/global_search_widget.py1CODE
LOWballontranslator/ui/global_search_widget.py2CODE
LOWballontranslator/ui/global_search_widget.py5CODE
LOWballontranslator/ui/global_search_widget.py5CODE
LOWballontranslator/ui/global_search_widget.py6CODE
LOWballontranslator/ui/global_search_widget.py8CODE
LOWballontranslator/ui/codex_sign_in.py3CODE
LOWballontranslator/ui/spellcheck.py8CODE
LOWballontranslator/ui/spellcheck.py333CODE
LOWballontranslator/ui/mainwindow.py2CODE
LOWballontranslator/ui/mainwindow.py1236CODE
LOWballontranslator/ui/mainwindow.py1237CODE
LOWballontranslator/ui/adaptive_wrap_layout.py3CODE
LOWballontranslator/ui/funcmaps.py1CODE
LOWballontranslator/ui/image_edit.py1CODE
LOWballontranslator/ui/image_edit.py7CODE
261 more matches not shown…
Empty Error Handlers57 hits · 285 pts
SeverityFileLineSnippetContext
HIGHtests/test_codex_runtime.py104except LLMUserActionRequiredError:CODE
HIGHtests/test_text_alpha_mask_edit_session.py80except RuntimeError:CODE
HIGHtests/test_codex_websocket.py642except ConnectionClosed:CODE
HIGHtests/test_codex_websocket.py749except ConnectionClosed:CODE
HIGHballontranslator/launch.py123except Exception:CODE
HIGHballontranslator/ui/ps_bridge_dialog.py277except Exception:CODE
HIGHballontranslator/ui/ps_bridge_dialog.py235except OSError:CODE
HIGHballontranslator/ui/ps_bridge_dialog.py222except OSError:CODE
HIGHballontranslator/ui/ps_bridge_dialog.py231except OSError:CODE
HIGHballontranslator/ui/codex_account.py59except LLMRequestStopped:CODE
HIGHballontranslator/ui/spellcheck.py525except RuntimeError:CODE
HIGHballontranslator/ui/spellcheck.py531except RuntimeError:CODE
HIGHballontranslator/ui/mainwindow.py1507except:CODE
HIGHballontranslator/ui/mainwindowbars.py228except ValueError:CODE
HIGHballontranslator/ui/llm_profile_widgets.py1198except Exception:CODE
HIGHballontranslator/ui/llm_profile_widgets.py1264except Exception:CODE
HIGHballontranslator/ui/llm_profile_widgets.py1342except Exception:CODE
HIGHballontranslator/ui/text_engine/shape_control.py429except (RuntimeError, TypeError):CODE
HIGHballontranslator/ui/text_engine/editing/widgets.py86except RuntimeError:CODE
HIGHballontranslator/ui/text_engine/editing/widgets.py98except RuntimeError:CODE
HIGHballontranslator/ui/text_engine/editing/widgets.py488except RuntimeError:CODE
HIGHballontranslator/ui/text_engine/editing/widgets.py921except RuntimeError:CODE
HIGHballontranslator/ui/text_engine/editing/widgets.py320except Exception:CODE
HIGH…slator/ui/text_engine/transforms/projective_control.py234except (RuntimeError, TypeError):CODE
HIGH…ontranslator/ui/text_engine/transforms/grid_control.py351except RASTER_BOUNDARY_FAILURES:CODE
HIGH…ontranslator/ui/text_engine/transforms/grid_control.py208except (RuntimeError, TypeError):CODE
HIGHballontranslator/ui/text_engine/formatting/presets.py278except RuntimeError:CODE
HIGH…ator/ui/text_engine/effects/alpha_mask_edit_session.py208except RuntimeError:CODE
HIGH…ator/ui/text_engine/effects/alpha_mask_edit_session.py175except (AttributeError, RuntimeError, TypeError):CODE
HIGH…ator/ui/text_engine/effects/alpha_mask_edit_session.py388except RuntimeError:CODE
HIGHballontranslator/ui/text_engine/effects/renderer.py2174except RASTER_BOUNDARY_FAILURES:CODE
HIGHballontranslator/utils/network_mirrors.py169except Exception:CODE
HIGHballontranslator/utils/network_mirrors.py178except Exception:CODE
HIGHballontranslator/utils/network_mirrors.py182except Exception:CODE
HIGHballontranslator/utils/version.py57except Exception:CODE
HIGHballontranslator/utils/download_util.py278except Exception:CODE
HIGHballontranslator/utils/download_util.py283except Exception:CODE
HIGHballontranslator/utils/updater.py294except OSError:CODE
HIGHballontranslator/utils/fontformat.py549except ValueError:CODE
HIGHballontranslator/utils/split_text_region.py182except:CODE
HIGHballontranslator/modules/responses_ws.py116except RuntimeError:CODE
HIGHballontranslator/modules/codex.py518except (ValueError, UnicodeDecodeError, asyncio.TimeoutError):CODE
HIGHballontranslator/modules/codex.py431except FileNotFoundError:CODE
HIGHballontranslator/modules/codex.py573except FileNotFoundError:CODE
HIGHballontranslator/modules/base.py426except Exception:CODE
HIGHballontranslator/modules/base.py458except Exception:CODE
HIGHballontranslator/modules/llm_image.py383except (AttributeError, RuntimeError):CODE
HIGHballontranslator/modules/llm_image.py305except Exception:CODE
HIGHballontranslator/modules/llm_image.py705except Exception:CODE
HIGHballontranslator/modules/translators/trans_google.py55except json.JSONDecodeError:CODE
HIGHballontranslator/modules/translators/base.py376except:CODE
HIGHballontranslator/modules/context/errors.py21except Exception:CODE
HIGHballontranslator/modules/textdetector/detector_ctbd.py613except Exception:CODE
HIGHballontranslator/modules/textdetector/yolov5/yolo.py220except NameError:CODE
HIGHballontranslator/modules/ocr/ocr_lens_proto.py94except Exception:CODE
HIGHballontranslator/modules/ocr/ocr_screen_ai.py326except:CODE
HIGHballontranslator/modules/ocr/ocr_screen_ai.py126except Exception:CODE
Deep Nesting338 hits · 278 pts
SeverityFileLineSnippetContext
LOWtests/test_ruby_furigana.py745CODE
LOWtests/test_ruby_furigana.py900CODE
LOWtests/test_ruby_furigana.py978CODE
LOWtests/test_ruby_furigana.py1031CODE
LOWtests/test_ruby_furigana.py1332CODE
LOWtests/test_ruby_furigana.py1504CODE
LOWtests/test_ruby_furigana.py1563CODE
LOWtests/test_image_effect.py240CODE
LOWtests/test_image_effect.py379CODE
LOWtests/test_image_effect.py438CODE
LOWtests/test_image_effect.py511CODE
LOWtests/test_image_effect.py625CODE
LOWtests/test_image_effect.py681CODE
LOWtests/test_text_transform_undo.py446CODE
LOWtests/test_text_transform_undo.py1656CODE
LOWtests/test_text_transform_undo.py1994CODE
LOWtests/test_text_transform_undo.py2142CODE
LOWtests/test_text_transform_undo.py2697CODE
LOWtests/test_text_transform_undo.py2772CODE
LOWtests/test_text_transform_undo.py3216CODE
LOWtests/test_text_transform_undo.py3500CODE
LOWtests/test_text_transform_undo.py3741CODE
LOWtests/test_text_transform_undo.py4102CODE
LOWtests/test_text_transform_undo.py4628CODE
LOWtests/test_text_transform_undo.py5769CODE
LOWtests/test_text_transform_undo.py5933CODE
LOWtests/test_rich_text_annotations.py1749CODE
LOWtests/test_rich_text_annotations.py1948CODE
LOWtests/test_horizontal_whitespace.py165CODE
LOWtests/test_horizontal_whitespace.py170CODE
LOWtests/test_codex_storage.py174CODE
LOWtests/test_image_effect_rendering.py235CODE
LOWtests/test_image_effect_rendering.py344CODE
LOWtests/test_image_effect_rendering.py386CODE
LOWtests/test_llm_key_dialog.py486CODE
LOWtests/test_llm_key_dialog.py673CODE
LOWtests/test_updater.py140CODE
LOWtests/test_codex_settings.py123CODE
LOWtests/test_codex_auth.py88CODE
LOWtests/test_codex_auth.py202CODE
LOWtests/test_codex_auth.py326CODE
LOWtests/test_llm_translator.py93CODE
LOWtests/test_llm_translator.py222CODE
LOWtests/test_text_filter_renderer.py307CODE
LOWtests/test_text_filter_renderer.py484CODE
LOWtests/test_text_filter_renderer.py952CODE
LOWtests/test_text_filter_renderer.py1044CODE
LOWtests/test_llm_translation_contract.py51CODE
LOWtests/test_llm_translation_contract.py98CODE
LOWtests/test_text_effect_persistence.py244CODE
LOWtests/test_shape_fill.py476CODE
LOWtests/test_shape_fill.py500CODE
LOWtests/test_shape_fill.py551CODE
LOWtests/test_codex_runtime.py62CODE
LOWtests/test_vertical_alignment.py119CODE
LOWtests/test_vertical_alignment.py466CODE
LOWtests/test_llm_translation_summary.py32CODE
LOWtests/test_llm_translation_summary.py405CODE
LOWtests/test_codex.py116CODE
LOWtests/test_codex.py257CODE
278 more matches not shown…
Excessive Try-Catch Wrapping244 hits · 258 pts
SeverityFileLineSnippetContext
LOWtests/test_codex_auth.py357 except Exception as error:CODE
LOWtests/test_codex_auth.py366 except Exception as error:CODE
MEDIUMtests/test_codex_auth.py354def request() -> None:CODE
MEDIUMtests/test_codex.py688def run():CODE
MEDIUMtests/test_codex.py794def run():CODE
LOWtests/test_codex.py692 except Exception as error:CODE
LOWtests/test_codex.py797 except Exception as error:CODE
MEDIUMtests/test_llm_inpaint.py141def reserve(requester) -> None:CODE
LOWtests/test_llm_inpaint.py146 except Exception as error:CODE
LOWballontranslator/launch.py36 except Exception:CODE
LOWballontranslator/launch.py41 except Exception:CODE
LOWballontranslator/launch.py123 except Exception:CODE
LOWballontranslator/ui/torch_install_dialog.py149 except Exception as e:STRING
MEDIUMballontranslator/ui/torch_install_dialog.py142def update_command_preview(self):CODE
MEDIUMballontranslator/ui/module_manager.py388def run(self):CODE
MEDIUMballontranslator/ui/module_manager.py1338def run(self):CODE
LOWballontranslator/ui/module_manager.py236 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py288 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py402 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py474 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py576 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py674 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py711 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py904 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py1087 except Exception as error:CODE
LOWballontranslator/ui/module_manager.py1276 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py1353 except Exception as e:CODE
LOWballontranslator/ui/module_manager.py1811 except Exception:CODE
LOWballontranslator/ui/font_refresh.py63 except Exception as error:CODE
LOWballontranslator/ui/font_refresh.py201 except Exception as error:CODE
LOWballontranslator/ui/ps_bridge_dialog.py277 except Exception:CODE
LOWballontranslator/ui/ps_bridge_dialog.py292 except Exception:CODE
LOWballontranslator/ui/ps_bridge_dialog.py709 except Exception as ctx_err:STRING
LOWballontranslator/ui/ps_bridge_dialog.py721 except Exception as e:STRING
LOWballontranslator/ui/ps_bridge_dialog.py727 except Exception as e:STRING
LOWballontranslator/ui/codex_account.py67 except Exception:CODE
MEDIUMballontranslator/ui/codex_account.py51def run(self) -> None:CODE
LOWballontranslator/ui/module_tool_button.py122 except Exception:CODE
MEDIUM⚡ballontranslator/ui/spellcheck.py180 print(f"Error saving custom dictionary: {e}")CODE
MEDIUMballontranslator/ui/spellcheck.py166 print(f"Error loading custom dictionary: {e}")CODE
MEDIUMballontranslator/ui/spellcheck.py182def _parse_and_load_file_to_set(self, path, target_set):CODE
MEDIUMballontranslator/ui/spellcheck.py528def rehighlight(self):CODE
LOW⚡ballontranslator/ui/spellcheck.py179 except Exception as e:CODE
LOWballontranslator/ui/spellcheck.py165 except Exception as e:CODE
LOWballontranslator/ui/spellcheck.py203 except Exception as e:CODE
LOWballontranslator/ui/spellcheck.py238 except Exception as e:CODE
LOWballontranslator/ui/spellcheck.py277 except Exception as e:CODE
LOWballontranslator/ui/spellcheck.py310 except Exception as e:CODE
LOWballontranslator/ui/spellcheck.py358 except Exception as e:CODE
LOWballontranslator/ui/spellcheck.py384 except Exception:CODE
LOWballontranslator/ui/spellcheck.py404 except Exception:CODE
LOWballontranslator/ui/spellcheck.py587 except Exception as e:CODE
MEDIUMballontranslator/ui/mainwindow.py2366def on_export_txt(self, dump_target, suffix='.txt'):CODE
MEDIUMballontranslator/ui/mainwindow.py2373def on_import_trans_txt(self):CODE
LOW⚡ballontranslator/ui/mainwindow.py623 except Exception as e:CODE
LOW⚡ballontranslator/ui/mainwindow.py630 except Exception as e:CODE
LOW⚡ballontranslator/ui/mainwindow.py637 except Exception as e:CODE
LOWballontranslator/ui/mainwindow.py807 except Exception as e:CODE
LOWballontranslator/ui/mainwindow.py832 except Exception as e:CODE
LOWballontranslator/ui/mainwindow.py853 except Exception as e:CODE
184 more matches not shown…
Hallucination Indicators13 hits · 185 pts
SeverityFileLineSnippetContext
CRITICAL⚡ballontranslator/ui/mainwindow.py342 self.textPanel.formatpanel.foldTextBtn.checkStateChanged.connect(self.fold_textarea)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py343 self.textPanel.formatpanel.sourceBtn.checkStateChanged.connect(self.show_source_text)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py344 self.textPanel.formatpanel.transBtn.checkStateChanged.connect(self.show_trans_text)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py345 self.textPanel.formatpanel.textstyle_panel.export_style.connect(self.export_tstyles)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py346 self.textPanel.formatpanel.textstyle_panel.import_style.connect(self.import_tstyles)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py504 self.bottomBar.textdet_selector.selector.currentTextChanged.connect(self.on_textdet_changed)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py505 self.bottomBar.inpaint_selector.selector.currentTextChanged.connect(self.on_inpaint_changed)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py508 self.bottomBar.trans_selector.selector.currentTextChanged.connect(self.on_trans_changed)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py510 self.bottomBar.trans_selector.tgt_selector.currentTextChanged.connect(self.on_trans_tgt_changed)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py511 self.bottomBar.trans_selector.src_selector.currentTextChanged.connect(self.on_trans_src_changed)CODE
CRITICAL⚡ballontranslator/ui/mainwindow.py518 self.bottomBar.ocr_selector.selector.currentTextChanged.connect(self.on_ocr_changed)CODE
CRITICALballontranslator/ui/mainwindow.py1161 self.textPanel.formatpanel.formatBtnGroup.italicBtn.click()CODE
CRITICALballontranslator/ui/mainwindow.py1165 self.textPanel.formatpanel.formatBtnGroup.underlineBtn.click()CODE
Modern Structural Boilerplate102 hits · 109 pts
SeverityFileLineSnippetContext
LOWtests/test_vertical_interaction.py458 def set_position(position: int) -> None:CODE
LOWtests/test_vertical_interaction.py508 def set_position(position: int) -> None:CODE
LOWtests/test_codex_storage.py39 def set_password(self, service: str, username: str, password: str) -> None:CODE
LOWtests/test_image_effect_rendering.py85 def _set_image(item: TextBlkItem, image: ImageEffect) -> None:CODE
LOWballontranslator/__init__.py1__all__ = []CODE
LOWballontranslator/ui/ps_bridge_dialog.py486 def _set_sync_status(self, message: str, color: str) -> None:STRING
LOWballontranslator/ui/llm_context_editor.py212 def set_context_visible(self, visible: bool) -> None:CODE
LOW⚡ballontranslator/ui/llm_context_editor.py247 def set_project(self, project: Optional[ProjImgTrans]) -> None:CODE
LOWballontranslator/ui/llm_context_editor.py295 def set_page(self, page_key: Optional[str]) -> None:CODE
LOWballontranslator/ui/bulk_page_summary_editor.py167 def update_palette(self) -> None:STRING
LOW⚡ballontranslator/ui/bulk_page_summary_editor.py231 def _update_line_number_area_width(self, _count: int = 0) -> None:STRING
LOW⚡ballontranslator/ui/bulk_page_summary_editor.py234 def _update_line_number_area(self, rect: QRect, dy: int) -> None:STRING
LOW⚡ballontranslator/ui/run_pipeline_dialog.py891 def _set_llm_ocr_settings_visible(self, module_name: str) -> None:CODE
LOWballontranslator/ui/llm_profile_widgets.py1315 def _setVisionModelText(self, text: str, emit_changed: bool) -> None:CODE
LOWballontranslator/ui/llm_profile_widgets.py1390 def _setImageModelText(self, text: str, emit_changed: bool) -> None:CODE
LOW⚡ballontranslator/ui/drawingpanel.py1599 def _update_rect_mask_preview(self) -> None:CODE
LOWballontranslator/ui/drawingpanel.py378 def set_fill_mode(self, mode: int) -> None:CODE
LOWballontranslator/ui/drawingpanel.py550 def set_border_width(self, value: int) -> None:CODE
LOWballontranslator/ui/drawingpanel.py1138 def set_config(self, config: DrawPanelConfig) -> None:CODE
LOWballontranslator/ui/drawingpanel.py1545 def _update_rect_mask(self) -> None:CODE
LOW⚡ballontranslator/ui/canvas.py1877 def _update_history_save_state(self) -> None:CODE
LOWballontranslator/ui/canvas.py885 def set_active_layer_transparency(self, value: int) -> None:CODE
LOWballontranslator/ui/canvas.py936 def update_brush_line_preview(self, scene_pos: QPointF, modifiers: Qt.KeyboardModifier) -> None:CODE
LOWballontranslator/ui/canvas.py1022 def set_order_badges_visible(self, visible: bool) -> None:CODE
LOWballontranslator/ui/canvas.py1649 def set_magic_wand_hover_tracking(self, enabled: bool) -> None:CODE
LOWballontranslator/ui/canvas.py1944 def update_saved_undostep(self) -> None:CODE
LOWballontranslator/ui/text_engine/shape_control.py136 def _updateVisibleRect(self) -> None:CODE
LOWballontranslator/ui/text_engine/annotations.py2360def set_oldstyle_nums(char_format: QTextCharFormat, state: str) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/item.py427 def _update_nonlinear_editing_ui(self) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/item.py685 def _set_effective_opacity(self, opacity: float) -> None:CODE
LOWballontranslator/ui/text_engine/item.py121 def set_number(self, number: int) -> None:CODE
LOWballontranslator/ui/text_engine/item.py162 def set_selected(self, selected: bool) -> None:CODE
LOWballontranslator/ui/text_engine/item.py1194 def set_order_badge_visible(self, visible: bool) -> None:CODE
LOWballontranslator/ui/text_engine/item.py1253 def set_order_number_override(self, order_number: Optional[int]) -> None:CODE
LOWballontranslator/ui/text_engine/item.py1293 def set_ui_guide_suppressed(self, suppressed: bool) -> None:CODE
LOWballontranslator/ui/text_engine/editing/widgets.py1081 def set_selected_list(self, selection_indices: List[int]) -> None:STRING
LOWballontranslator/ui/text_engine/editing/move_session.py92 def _update_indicator(self) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/transforms/controls.py757 def set_index(self, index: int) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/transforms/controls.py760 def set_move_enabled(self, can_move_up: bool, can_move_down: bool) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/transforms/controls.py764 def set_selected(self, selected: bool) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/transforms/controls.py774 def set_values(self, transforms) -> None:CODE
LOW…ontranslator/ui/text_engine/transforms/edit_session.py186 def _set_global_state(self, state: TextTransformStack) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/transforms/panel.py308 def set_active_format(self, font_format: FontFormat) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/transforms/panel.py311 def set_transform_items(self, items) -> None:CODE
LOW…ontranslator/ui/text_engine/transforms/grid_control.py389 def _set_modal_cursor(self) -> None:CODE
LOW…ontranslator/ui/text_engine/transforms/grid_control.py409 def _update_modal_indicator(self) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/advanced.py181 def set_error(self, message: str) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/formatting/advanced.py574 def set_active_format(self, font_format: FontFormat) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/formatting/advanced.py577 def set_line_spacing_type(self, spacing_type: int) -> None:CODE
LOW⚡ballontranslator/ui/text_engine/formatting/advanced.py581 def set_ligature_axis(self, axis: str, value: str) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/panel.py259 def _update_menu_icons(self) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/panel.py287 def set_values(self, style: str, position: str) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/panel.py424 def set_committed_text(self, text: str) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/panel.py597 def set_weight(self, weight: FontWeight) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/panel.py758 def update_font_entries(self, entries: Iterable[FontEntry]) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/panel.py780 def set_current_family(self, family: str) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/panel.py1163 def update_font_entries(self, entries: Iterable[FontEntry]) -> None:CODE
LOWballontranslator/ui/text_engine/formatting/panel.py1478 def set_tate_chu_yoko_enabled(self, enabled: bool) -> None:CODE
LOW…nslator/ui/text_engine/formatting/size_edit_session.py54 def _set_defaults(self, index: int, redo: bool) -> None:CODE
LOW…ator/ui/text_engine/effects/alpha_mask_edit_session.py127 def set_editing(self, enabled: bool) -> None:CODE
42 more matches not shown…
Decorative Section Separators10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUM…ator/ui/framelesswindow/fw_qt5/win_frameless_window.py61 # ----------COMMENT
MEDIUM…translator/ui/framelesswindow/fw_qt5/linux/__init__.py42 # ----------COMMENT
MEDIUM…ator/ui/framelesswindow/fw_qt6/win_frameless_window.py57 # ----------COMMENT
MEDIUM…ator/ui/framelesswindow/fw_qt6/mac_frameless_window.py67 # ----------COMMENT
MEDIUM…or/ui/framelesswindow/fw_qt6/linux_frameless_window.py57 # ----------COMMENT
MEDIUM…or/ui/framelesswindow/fw_qt6/linux_frameless_window.py83 # ----------COMMENT
MEDIUMballontranslator/modules/ocr/ocr_ppv6_onnx.py16# ── Paths ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMballontranslator/modules/ocr/ocr_ppv6_onnx.py297 # ── Model lifecycle ─────────────────────────────────────────────────COMMENT
MEDIUMballontranslator/modules/ocr/ocr_ppv6_onnx.py411 # ── GPU uniform-batch recognition ───────────────────────────────────COMMENT
MEDIUMballontranslator/modules/ocr/ocr_ppv6_onnx.py448 # ── OCRBase interface — crop-based recognition ──────────────────────COMMENT
Self-Referential Comments5 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUM…ator/ui/_generated/module_param_dialog_i18n_catalog.py1# This file is auto-generated by scripts/update_translation.py.COMMENT
MEDIUM…ntranslator/modules/translators/trans_yandex_foswly.py1# This module is a Python port of the TypeScript library: https://github.com/FOSWLY/translateCOMMENT
MEDIUM⚡ballontranslator/modules/textdetector/panel_finder.py58 # Create a new list to store the filtered polygons.COMMENT
MEDIUMballontranslator/modules/textdetector/panel_finder.py329 # Create a drawing objectCOMMENT
MEDIUMscripts/update_translation.py99 '# This file is auto-generated by scripts/update_translation.py.',CODE
Redundant / Tautological Comments9 hits · 15 pts
SeverityFileLineSnippetContext
LOWballontranslator/utils/py_package_manager.py652 # Check if it is a corrupted package (e.g. folder exists but missing __init__.py,COMMENT
LOWballontranslator/modules/translators/trans_deepl.py99 # Check if the target language supports formalityCOMMENT
LOW⚡ballontranslator/modules/textdetector/panel_finder.py63 # Check if the polygon contains any of the other polygons.COMMENT
LOW⚡ballontranslator/modules/textdetector/panel_finder.py66 # Check if the polygon contains the other polygon and that the polygonsCOMMENT
LOW⚡ballontranslator/modules/textdetector/panel_finder.py71 # Check if rect2 is completely within rect1COMMENT
LOWballontranslator/modules/textdetector/panel_finder.py253 # Check if range1 is before range2COMMENT
LOWballontranslator/modules/textdetector/panel_finder.py256 # Check if range1 is after range2COMMENT
LOWballontranslator/modules/ocr/ocr_paddleVL_manga.py136 # Set pad_token_id to avoid warning during generationCOMMENT
LOWballontranslator/modules/ocr/mit48px.py758 finished = (out_idx[:, -1] == end_tok) # Check if the last token is the end tokenSTRING
AI Structural Patterns15 hits · 14 pts
SeverityFileLineSnippetContext
LOWballontranslator/ui/text_engine/annotations.py2759CODE
LOWballontranslator/ui/custom_widget/__init__.py16CODE
LOWballontranslator/utils/package_installer.py102CODE
LOWballontranslator/utils/download_util.py332CODE
LOWballontranslator/utils/download_util.py391CODE
LOWballontranslator/utils/split_text_region.py216CODE
LOWballontranslator/modules/ocr/mit48px_ctc.py63CODE
LOW…lontranslator/modules/inpaint/flux_inpaint_pipeline.py617CODE
LOWballontranslator/modules/inpaint/aot.py64CODE
LOWballontranslator/modules/inpaint/ffc.py49CODE
LOWballontranslator/modules/inpaint/ffc.py183CODE
LOWballontranslator/modules/inpaint/ffc.py188CODE
LOWballontranslator/modules/inpaint/ffc.py250CODE
LOWballontranslator/modules/inpaint/lama.py65CODE
LOWballontranslator/modules/inpaint/lama.py232CODE
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippetContext
LOW…ator/ui/framelesswindow/fw_qt6/mac_frameless_window.py61 self.setStayOnTop(True)COMMENT
LOWballontranslator/modules/textdetector/ctd/textmask.py161 # bx1, by1, bx2, by2 = expand_textwindow(img.shape, blk.xyxy, expand_r=16)COMMENT
LOWballontranslator/modules/textdetector/ctd/textmask.py181# if neg_thresh:COMMENT
LOWballontranslator/modules/textdetector/ctd/textmask.py201# tmp_merged[label_cordinates] = 255COMMENT
LOWballontranslator/modules/textdetector/ctd/textmask.py221# brect = cv2.boundingRect(contours[ii])COMMENT
LOWballontranslator/modules/textdetector/ctd/textmask.py241# best_xorpix_sum = np.infCOMMENT
LOWballontranslator/modules/textdetector/ctd/textmask.py261# continueCOMMENT
LOWballontranslator/modules/ocr/ocr_macos.py101 'language': {COMMENT
LOWballontranslator/modules/ocr/ocr_ppv6_onnx.py381 # and triggers full kernel recompilation (~1.8 s per batch).COMMENT
LOWballontranslator/modules/ocr/mit48px_ctc.py481 textblk_lst[block_index].update_font_colors(fg_total, bg_total)COMMENT
LOWballontranslator/modules/ocr/mit48px_ctc.py501# model = OCR(dictionary, 32)COMMENT
LOW…lontranslator/modules/inpaint/flux_inpaint_pipeline.py1# Copyright 2025 Black Forest Labs and The HuggingFace Team. All rights reserved.COMMENT
LOWballontranslator/modules/inpaint/patch_match.py1#! /usr/bin/env python3COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMballontranslator/ui/text_engine/editing/widgets.py129 # Stylize borders and round corners so they form a single seamless blockCOMMENT
MEDIUM…ntranslator/modules/translators/trans_yandex_foswly.py192 # A comprehensive language map based on Google's listCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…lontranslator/modules/inpaint/flux_inpaint_pipeline.py640 Function invoked when calling the pipeline for generation. Args: image (`torch.Tensor`, `PSTRING
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_codex_auth.py436CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWballontranslator/modules/llm_chat.py200 dummy_api_key = 'dummy-key'CODE