Repository Analysis

jianchang512/pyvideotrans

Translate the video from one language to another and embed dubbing & subtitles.

10.0 Low AI signal View on GitHub
10.0
Adjusted Score
10.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
17,682
Stars
Python
Language
60,544
Lines of Code
365
Files
507
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 0MEDIUM 47LOW 459

Pattern Findings

507 matches across 7 categories. Click a row to expand file-level details.

Excessive Try-Catch Wrapping236 hits · 265 pts
SeverityFileLineSnippet
LOWsp.py129 except Exception as e:
LOWsp.py157 except Exception as e:
LOWsp.py219 except Exception as e:
LOWtests/test_excepts.py100 except Exception as e:
MEDIUMtests/test_excepts.py42def test_raises_and_catches(self):
LOWdocs/architecture.md173 except Exception as e:
LOWvideotrans/__init__.py33 except Exception as e:
LOWvideotrans/ui/info.py161 except Exception:
LOWvideotrans/winform/fn_hebingsrt.py41 except Exception as e:
MEDIUMvideotrans/winform/fn_hebingsrt.py26def run(self):
LOWvideotrans/winform/fn_videoandsrt.py119 except Exception as e:
LOWvideotrans/winform/fn_audiofromvideo.py54 except Exception as e:
MEDIUMvideotrans/winform/fn_audiofromvideo.py25def run(self):
LOWvideotrans/winform/fn_subtitlescover.py60 except Exception as e:
MEDIUMvideotrans/winform/fn_subtitlescover.py26def run(self):
LOWvideotrans/winform/fn_watermark.py111 except Exception as e:
LOWvideotrans/winform/fn_recogn.py182 except Exception as e:
LOWvideotrans/winform/fn_vas.py183 except Exception as e:
LOWvideotrans/winform/fn_vas.py264 except Exception as e:
LOWvideotrans/winform/cambtts.py56 except Exception as e:
LOWvideotrans/winform/fn_formatcover.py47 except Exception as e:
MEDIUMvideotrans/winform/fn_formatcover.py31def run(self):
LOWvideotrans/winform/elevenlabs.py50 except Exception as e:
LOWvideotrans/winform/fn_videoandaudio.py120 except Exception as e:
LOWvideotrans/winform/fn_hunliu.py41 except Exception as e:
MEDIUMvideotrans/winform/fn_hunliu.py27def run(self):
LOWvideotrans/util/help_srt.py207 except Exception:
LOWvideotrans/util/help_srt.py292 except Exception as e:
LOWvideotrans/util/help_srt.py365 except Exception as e:
LOWvideotrans/util/help_srt.py389 except Exception as e:
LOWvideotrans/util/help_srt.py437 except Exception as e:
LOWvideotrans/util/checkgpu.py20 except Exception as e:
MEDIUMvideotrans/util/checkgpu.py13def run(self):
LOWvideotrans/util/help_ffmpeg.py88 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py138 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py169 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py205 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py244 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py350 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py412 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py420 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py499 except Exception:
LOWvideotrans/util/help_ffmpeg.py531 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py581 except Exception as e:
LOWvideotrans/util/help_ffmpeg.py624 except Exception:
LOWvideotrans/util/TestSrtTrans.py26 except Exception as e:
MEDIUMvideotrans/util/TestSrtTrans.py15def run(self):
LOWvideotrans/util/gpus.py64 except Exception as e:
LOWvideotrans/util/help_misc.py60 except Exception as e:
LOWvideotrans/util/help_misc.py254 except Exception as e:
LOWvideotrans/util/help_misc.py265 except Exception as e:
LOWvideotrans/util/help_misc.py324 except Exception as e:
LOWvideotrans/util/help_misc.py339 except Exception:
LOWvideotrans/util/help_misc.py358 except Exception as e:
LOWvideotrans/util/help_misc.py406 except Exception:
LOWvideotrans/util/help_misc.py455 except Exception as e:
MEDIUMvideotrans/util/help_misc.py317def pygameaudio(filepath=None):
LOWvideotrans/util/TestSTT.py26 except Exception as e:
MEDIUMvideotrans/util/TestSTT.py11def run(self):
LOWvideotrans/util/ListenVoice.py25 except Exception as e:
176 more matches not shown…
Hyper-Verbose Identifiers96 hits · 126 pts
SeverityFileLineSnippet
LOWtests/test_job_helpers.py16 def test_none_index_returns_dash(self):
LOWtests/test_job_helpers.py19 def test_out_of_range_returns_dash(self):
LOWtests/test_job_helpers.py22 def test_negative_index_returns_last_element(self):
LOWtests/test_job_helpers.py28 def test_returns_dash_for_none(self):
LOWtests/test_job_helpers.py31 def test_returns_name_for_valid_index(self):
LOWtests/test_job_helpers.py41 def test_returns_dash_for_none(self):
LOWtests/test_job_helpers.py44 def test_returns_name_for_valid_index(self):
LOWtests/test_job_helpers.py51 def test_returns_dash_for_none(self):
LOWtests/test_job_helpers.py54 def test_returns_name_for_valid_index(self):
LOWtests/test_contants.py23 def test_punc_flags_contains_common_chars(self):
LOWtests/test_contants.py31 def test_half_flags_no_end_punctuation(self):
LOWtests/test_contants.py38 def test_end_flags_are_sentence_terminators(self):
LOWtests/test_contants.py48 def test_has_common_languages(self):
LOWtests/test_contants.py57 def test_listen_text_is_non_empty(self):
LOWtests/test_contants.py63 def test_common_models_present(self):
LOWtests/test_contants.py71 def test_model_values_are_non_empty(self):
LOWtests/test_contants.py77 def test_contains_expected_domains(self):
LOWtests/test_contants.py81 def test_formed_into_env_string(self):
LOWtests/test_contants.py88 def test_non_word_matches_punctuation(self):
LOWtests/test_contants.py98 def test_non_word_does_not_match_text(self):
LOWtests/test_contants.py108 def test_audio_exits_has_common_formats(self):
LOWtests/test_contants.py114 def test_video_exts_has_common_formats(self):
LOWtests/test_taskcfg.py16 def test_default_initialization(self):
LOWtests/test_taskcfg.py71 def test_or_with_non_dict_raises_typeerror(self):
LOWtests/test_taskcfg.py117 def test_default_initialization(self):
LOWtests/test_taskcfg.py160 def test_items_iterates_all_fields(self):
LOWtests/test_taskcfg.py170 def test_iter_yields_field_names(self):
LOWtests/test_taskcfg.py181 def test_mixed_attribute_and_dict_access(self):
LOWtests/test_taskcfg.py193 def test_default_initialization(self):
LOWtests/test_taskcfg.py201 def test_partial_initialization(self):
LOWtests/test_taskcfg.py218 def test_inherits_base_fields(self):
LOWtests/test_taskcfg.py287 def test_inherits_all_parent_fields(self):
LOWtests/test_taskcfg.py335 def test_vtt_tiqu_mode_settings(self):
LOWtests/test_taskcfg.py351 def test_shared_fields_consistent(self):
LOWtests/test_taskcfg.py366 def test_stt_and_tts_and_sts_together(self):
LOWtests/test_base_tts.py17 def test_volume_plain_number_fixed(self):
LOWtests/test_base_tts.py33 def test_rate_plain_number_fixed(self):
LOWtests/test_base_tts.py75 def test_get_pitch_zero_hz_returns_default(self):
LOWtests/test_base_tts.py80 def test_get_pitch_positive_hz_returns_default(self):
LOWtests/test_base_tts.py84 def test_get_pitch_negative_hz_returns_default(self):
LOWtests/test_base_trans.py16 def test_default_trans_thread(self):
LOWtests/test_base_trans.py20 def test_translate_type_default(self):
LOWtests/test_base_trans.py50 def test_different_text_different_keys(self):
LOWtests/test_base_trans.py56 def test_different_languages_different_keys(self):
LOWtests/test_base_trans.py61 def test_same_key_for_identical_input(self):
LOWtests/test_base_trans.py69 def test_chunking_with_thread_count(self):
LOWtests/test_mainwin_actions.py19 def test_invalid_proxy_no_port(self):
LOWtests/test_mainwin_actions.py24 def test_invalid_proxy_wrong_scheme(self):
LOWtests/test_mainwin_actions.py28 def test_proxy_http_prefix_added(self):
LOWtests/test_mainwin_actions.py36 def test_voice_autorate_hides_silent_mid(self):
LOWtests/test_mainwin_actions.py48 def test_video_autorate_alone_hides(self):
LOWtests/test_mainwin_actions.py56 def test_dual_subtitle_shows_output_srt(self):
LOWtests/test_mainwin_actions.py61 def test_single_hard_subtitle_hides(self):
LOWtests/test_mainwin_actions.py68 def test_tiqu_forces_voice_role_no(self):
LOWtests/test_mainwin_actions.py76 def test_biaozhun_keeps_voice_role(self):
LOWtests/test_base_recogn.py17 def test_cjk_language_join_word_flag(self):
LOWtests/test_base_recogn.py54 def test_removes_punctuation_only_lines(self):
LOWtests/test_base_recogn.py78 def test_fixes_overlapping_timestamps(self):
LOWtests/test_base_recogn.py98 def test_single_element_passes_through(self):
LOWtests/test_cli.py18 def test_all_task_types_have_entries(self):
36 more matches not shown…
Deep Nesting125 hits · 123 pts
SeverityFileLineSnippet
LOWcli.py14
LOWvideotrans/ui/setini.py590
LOWvideotrans/winform/fn_videoandsrt.py4
LOWvideotrans/winform/fn_videoandsrt.py36
LOWvideotrans/winform/fn_videoandsrt.py55
LOWvideotrans/winform/fn_subtitlescover.py1
LOWvideotrans/winform/fn_subtitlescover.py26
LOWvideotrans/winform/fn_recogn.py6
LOWvideotrans/winform/fn_recogn.py27
LOWvideotrans/winform/fn_vas.py5
LOWvideotrans/winform/fn_vas.py270
LOWvideotrans/winform/fn_vas.py72
LOWvideotrans/winform/fn_separate.py3
LOWvideotrans/winform/fn_separate.py23
LOWvideotrans/winform/fn_peiyinrole.py4
LOWvideotrans/winform/fn_peiyinrole.py81
LOWvideotrans/winform/fn_videoandaudio.py4
LOWvideotrans/winform/fn_videoandaudio.py128
LOWvideotrans/winform/fn_videoandaudio.py31
LOWvideotrans/winform/fn_videoandaudio.py54
LOWvideotrans/winform/fn_peiyin.py7
LOWvideotrans/winform/fn_peiyin.py209
LOWvideotrans/winform/fn_fanyisrt.py7
LOWvideotrans/winform/fn_fanyisrt.py42
LOWvideotrans/winform/fn_fanyisrt.py203
LOWvideotrans/winform/fn_fanyisrt.py232
LOWvideotrans/util/help_srt.py111
LOWvideotrans/util/help_srt.py227
LOWvideotrans/util/help_srt.py257
LOWvideotrans/util/cn_tn.py565
LOWvideotrans/util/cn_tn.py651
LOWvideotrans/util/cn_tn.py439
LOWvideotrans/util/cn_tn.py586
LOWvideotrans/util/cn_tn.py620
LOWvideotrans/util/help_ffmpeg.py119
LOWvideotrans/util/help_ffmpeg.py293
LOWvideotrans/util/helper_supertonic.py388
LOWvideotrans/util/en_tn.py68
LOWvideotrans/util/en_tn.py206
LOWvideotrans/util/help_misc.py204
LOWvideotrans/util/help_misc.py362
LOWvideotrans/util/help_down.py42
LOWvideotrans/util/help_down.py121
LOWvideotrans/util/help_down.py164
LOWvideotrans/util/help_down.py200
LOWvideotrans/util/help_role.py115
LOWvideotrans/util/help_role.py266
LOWvideotrans/util/help_role.py428
LOWvideotrans/configure/config.py218
LOWvideotrans/configure/config.py477
LOWvideotrans/configure/excepts.py128
LOWvideotrans/component/clip_video.py39
LOWvideotrans/component/set_form.py470
LOWvideotrans/component/set_form.py560
LOWvideotrans/component/set_form.py602
LOWvideotrans/component/textmatching.py124
LOWvideotrans/component/textmatching.py530
LOWvideotrans/component/onlyone_set_editdubb.py229
LOWvideotrans/component/onlyone_set_editdubb.py248
LOWvideotrans/component/onlyone_set_editdubb.py314
65 more matches not shown…
Decorative Section Separators16 hits · 48 pts
SeverityFileLineSnippet
MEDIUMcli.py352 # ==========================================
MEDIUMcli.py354 # ==========================================
MEDIUMvideotrans/component/textmatching.py20# ==========================================
MEDIUMvideotrans/component/textmatching.py22# ==========================================
MEDIUMvideotrans/component/textmatching.py94# ==========================================
MEDIUMvideotrans/component/textmatching.py96# ==========================================
MEDIUMvideotrans/component/textmatching.py335# ==========================================
MEDIUMvideotrans/component/textmatching.py337# ==========================================
MEDIUMvideotrans/component/textmatching.py473 # ==========================
MEDIUMvideotrans/component/textmatching.py475 # ==========================
MEDIUMvideotrans/component/textmatching.py497 # ==========================
MEDIUMvideotrans/component/textmatching.py499 # ==========================
MEDIUMvideotrans/process/signelobj.py4# ==========================================
MEDIUMvideotrans/process/signelobj.py6# ==========================================
MEDIUMvideotrans/process/signelobj.py19# ==========================================
MEDIUMvideotrans/process/signelobj.py21# ==========================================
Unused Imports30 hits · 30 pts
SeverityFileLineSnippet
LOWsp.py142
LOWtests/test_base_trans.py1
LOWtests/test_base_recogn.py3
LOWvideotrans/ui/en.py4
LOWvideotrans/winform/fn_recogn.py13
LOWvideotrans/winform/minimaxi.py3
LOWvideotrans/winform/minimaxi.py5
LOWvideotrans/winform/cambtts.py31
LOWvideotrans/util/tools.py4
LOWvideotrans/util/tools.py5
LOWvideotrans/util/tools.py6
LOWvideotrans/util/tools.py7
LOWvideotrans/util/tools.py8
LOWvideotrans/util/TestSTT.py15
LOWvideotrans/util/TestSTT.py15
LOWvideotrans/util/TestSTT.py15
LOWvideotrans/util/TestSTT.py15
LOWvideotrans/util/TestSTT.py15
LOWvideotrans/util/TestSTT.py15
LOWvideotrans/util/TestSTT.py15
LOWvideotrans/task/only_one.py6
LOWvideotrans/process/tts_fun.py43
LOWvideotrans/process/__init__.py1
LOWvideotrans/process/__init__.py1
LOWvideotrans/process/__init__.py1
LOWvideotrans/process/__init__.py1
LOWvideotrans/process/__init__.py1
LOWvideotrans/process/__init__.py1
LOWvideotrans/process/__init__.py2
LOWvideotrans/process/prepare_audio.py2
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALvideotrans/tts/_azuretts.py5from azure.core.exceptions import ResourceExistsError, ClientAuthenticationError, ResourceNotFoundError
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippet
LOWvideotrans/util/cn_tn.py1#!/usr/bin/env python3
LOWvideotrans/util/cn_tn.py841 self.date = date
LOWvideotrans/util/en_tn.py1# 本代码复制自 https://github.com/OpenDocCN/python-code-anls/blob/master/docs/hf-tfm/models----clvp----number_normalizer.py.md