AI Slop Code RIsk Monitor

liuzhao1225/YouDub-webui

Open-source AI video localization and dubbing for YouTube/Bilibili: speech recognition, subtitle translation, voice cloning, audio mixing and rendering. 开源 AI 视频翻译配音工具。

14.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for liuzhao1225/YouDub-webui, a Python project with 5,639 GitHub stars. SynthScan examined 32,020 lines of code across 100 source files, recording 459 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 14.4 (Moderate pattern signal); it is not an authorship estimate.

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

14.4
Adjusted Signal
14.4
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
5.6K
Stars
Python
Language
32.0K
Lines of Code
100
Files
459
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 42.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 7.3/100 · LOW

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

Agent Over-Engineering Ratio 46.9/100 · MEDIUM

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

PR Review Velocity Impact 52.0/100 · HIGH

Which changes need focused human review? 459 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 0HIGH 1MEDIUM 3LOW 455

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 459 distinct pattern matches across 7 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 Identifiers356 hits · 348 pts
SeverityFileLineSnippetContext
LOWbackend/app/auth.py107def validate_auth_configuration() -> AuthSettings:CODE
LOWbackend/app/config.py18def configure_windows_ffmpeg_dll_directory() -> None:CODE
LOWbackend/app/config.py48def _load_runtime_environment(repo_root: Path) -> None:CODE
LOWbackend/app/gpu_memory.py76def release_after_stage_enabled() -> bool:CODE
LOWbackend/app/database.py47def _migrate_openai_defaults_to_atlascloud(conn: sqlite3.Connection) -> None:CODE
LOWbackend/app/database.py204def delete_expired_auth_sessions(expires_before: str) -> int:CODE
LOWbackend/app/database.py213def reserve_auth_login_attempt(CODE
LOWbackend/app/database.py260def delete_auth_login_attempt(client_hash: str) -> bool:CODE
LOWbackend/app/database.py269def backfill_titles_from_metadata() -> None:CODE
LOWbackend/app/pipeline.py227 def _write_uploaded_asr_artifact(self, task: dict) -> Path:CODE
LOWbackend/app/pipeline.py283 def _log_release_report_preserving_error(CODE
LOWbackend/app/pipeline.py296 def _log_messages_preserving_error(CODE
LOW⚡backend/app/pipeline.py325 def _log_secondary_release_failure(CODE
LOWbackend/app/main.py110def normalize_translate_concurrency(value: str) -> str:CODE
LOWbackend/app/main.py146async def redact_login_validation_error(CODE
LOWbackend/app/main.py204def _clear_replaced_login_cookie(CODE
LOWbackend/app/devices.py104def _resolve_configured_device(value: str, setting_name: str) -> str:CODE
LOWbackend/app/devices.py145def validate_device_available(selected_device: str, setting_name: str = "DEVICE") -> None:CODE
LOWbackend/app/runtime_security.py93def _validate_directory_metadata(path: Path, metadata: os.stat_result) -> None:CODE
LOWbackend/app/runtime_security.py107def _secure_open_fd_without_mode_change(path: Path, *, directory: bool) -> int:CODE
LOWbackend/app/runtime_security.py179def ensure_model_cache_directory(path: Path | str) -> Path:CODE
LOWbackend/app/runtime_security.py342def validate_model_cache_location(CODE
LOWbackend/app/runtime_security.py441def _validate_sqlite_sidecar_metadata(CODE
LOWbackend/app/runtime_security.py456def secure_sqlite_sidecar_file(path: Path | str) -> os.stat_result | None:CODE
LOWbackend/app/runtime_security.py511def secure_sqlite_database_file(database_path: Path | str) -> None:CODE
LOWbackend/app/runtime_security.py525def atomic_write_private_text(path: Path | str, content: str, *, encoding: str = "utf-8") -> None:CODE
LOWbackend/app/runtime_security.py575def open_private_binary_exclusive(path: Path | str) -> BinaryIO:CODE
LOWbackend/app/adapters/openai_translate.py244def write_preprocess_artifact(session: Path, pre: PreprocessResponse) -> Path:CODE
LOWbackend/app/adapters/whisper_asr.py38def _remove_corrupt_whisper_cache(whisper, name: str, download_root: str | None) -> bool:CODE
LOWbackend/app/adapters/ytdlp.py32def _bootstrap_bilibili_cookie(cookie_path: Path) -> None:CODE
LOWbackend/app/adapters/ytdlp.py109def _download_with_format_candidates(CODE
LOWbackend/app/adapters/ffmpeg.py228def subtitle_style_for_orientation(orientation: str, font: str, lang: str = "zh") -> str:CODE
LOWbackend/app/adapters/voxcpm.py114def _write_original_target_audio(CODE
LOWbackend/app/adapters/audio.py20def split_audio_by_translation(vocals_file: Path, translation_file: Path, session: Path) -> Path:CODE
LOWbackend/app/adapters/openai_client.py6def normalize_openai_base_url(base_url: str) -> str:CODE
LOWbackend/app/adapters/local_subtitles.py102def _uploaded_subtitle_payloads(CODE
LOW⚡backend/app/adapters/local_subtitles.py135def write_uploaded_asr_artifact(CODE
LOW⚡backend/app/adapters/local_subtitles.py144def write_uploaded_asr_fixed_artifact(CODE
LOW⚡backend/app/adapters/local_subtitles.py153def write_uploaded_translation_artifact(CODE
LOWbackend/app/adapters/local_subtitles.py165def write_uploaded_subtitle_artifacts(CODE
LOWbackend/tests/test_voxcpm.py16def test_release_model_clears_cached_model(monkeypatch):CODE
LOWbackend/tests/test_voxcpm.py51def test_fallback_cache_built_once_and_reused(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py131def test_skips_existing_tts_files(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py175def test_empty_translation_skips_tts(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py192def test_original_mode_copies_original_audio_with_non_empty_caption(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py246def test_legacy_empty_target_copies_original_audio_without_loading_model(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py270def test_original_target_audio_writes_exact_private_range(tmp_path):CODE
LOWbackend/tests/test_voxcpm.py292def test_original_target_audio_rejects_partially_out_of_range(tmp_path):CODE
LOWbackend/tests/test_voxcpm.py312def test_original_target_audio_rejects_fully_out_of_range(tmp_path):CODE
LOWbackend/tests/test_voxcpm.py332def test_original_target_audio_accepts_end_at_source_boundary(tmp_path):CODE
LOWbackend/tests/test_voxcpm.py351def test_original_target_audio_accepts_sub_millisecond_rounded_tail(tmp_path):CODE
LOWbackend/tests/test_voxcpm.py370def test_original_target_audio_rejects_one_millisecond_tail_overflow(tmp_path):CODE
LOWbackend/tests/test_voxcpm.py390def test_original_target_audio_rejects_quantized_one_millisecond_tail_overflow(CODE
LOWbackend/tests/test_voxcpm.py417def test_original_target_audio_rejects_symlink_output(tmp_path):CODE
LOWbackend/tests/test_voxcpm.py439def test_original_segments_are_excluded_from_tts_fallback_references(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py498def test_calls_progress_callback(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py535def test_model_generate_used_for_own_reference(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py567def test_fallback_cache_preserves_wrapper_generation_behavior(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py603def test_fallback_cache_is_scoped_by_speaker(mock_load, tmp_path):CODE
LOWbackend/tests/test_voxcpm.py667def test_fallback_keeps_same_speaker_when_only_other_speaker_has_long_reference(mock_load, tmp_path):CODE
296 more matches not shown…
Unused Imports52 hits · 48 pts
SeverityFileLineSnippetContext
LOWbackend/app/worker.py3CODE
LOWbackend/app/auth.py1CODE
LOWbackend/app/config.py1CODE
LOWbackend/app/youtube.py1CODE
LOWbackend/app/gpu_memory.py1CODE
LOWbackend/app/database.py1CODE
LOWbackend/app/stage_reset.py1CODE
LOWbackend/app/runtime_checks.py1CODE
LOWbackend/app/audio_mode.py1CODE
LOWbackend/app/stages.py1CODE
LOWbackend/app/sources.py1CODE
LOWbackend/app/pipeline.py1CODE
LOWbackend/app/main.py1CODE
LOWbackend/app/devices.py1CODE
LOWbackend/app/sanitize.py1CODE
LOWbackend/app/runtime_security.py1CODE
LOWbackend/app/adapters/asr_sentence_fixer.py1CODE
LOWbackend/app/adapters/openai_translate.py1CODE
LOWbackend/app/adapters/whisper_asr.py1CODE
LOWbackend/app/adapters/ytdlp.py1CODE
LOWbackend/app/adapters/ffmpeg.py1CODE
LOWbackend/app/adapters/local_video.py1CODE
LOWbackend/app/adapters/voxcpm.py1CODE
LOWbackend/app/adapters/demucs.py1CODE
LOWbackend/app/adapters/audio.py1CODE
LOWbackend/app/adapters/openai_client.py1CODE
LOWbackend/app/adapters/_translate_prompts.py1CODE
LOWbackend/app/adapters/local_subtitles.py1CODE
LOWbackend/tests/test_voxcpm.py1CODE
LOWbackend/tests/conftest.py1CODE
LOWbackend/tests/test_stage_reset.py1CODE
LOWbackend/tests/test_stage_reset.py3CODE
LOWbackend/tests/test_settings_and_api.py1CODE
LOWbackend/tests/test_auth.py1CODE
LOWbackend/tests/test_auth.py4CODE
LOWbackend/tests/test_audio.py1CODE
LOWbackend/tests/test_local_subtitles.py1CODE
LOWbackend/tests/test_file_permissions.py1CODE
LOWbackend/tests/test_demucs_adapter.py1CODE
LOWbackend/tests/test_whisper_asr.py1CODE
LOWbackend/tests/test_worker.py1CODE
LOWbackend/tests/test_gpu_memory.py1CODE
LOWbackend/tests/test_audio_mode.py1CODE
LOWbackend/tests/test_config.py1CODE
LOWbackend/tests/test_runtime_checks.py1CODE
LOWbackend/tests/test_devices.py1CODE
LOWbackend/tests/test_local_video.py1CODE
LOWbackend/tests/test_asr_sentence_fixer.py1CODE
LOWbackend/tests/test_ffmpeg.py1CODE
LOWbackend/tests/test_translation.py1CODE
LOWbackend/tests/test_pipeline.py1CODE
LOWscripts/run_pipeline.py3CODE
Excessive Try-Catch Wrapping36 hits · 44 pts
SeverityFileLineSnippetContext
LOWbackend/app/worker.py40 except Exception:CODE
LOWbackend/app/worker.py52 except Exception:CODE
LOW⚡backend/app/worker.py71 except Exception:CODE
LOW⚡backend/app/worker.py76 except Exception:CODE
LOW⚡backend/app/worker.py85 except Exception as exc:CODE
LOW⚡backend/app/worker.py93 except Exception:CODE
LOWbackend/app/gpu_memory.py106 except Exception as exc:CODE
LOWbackend/app/database.py42 except Exception:CODE
LOWbackend/app/pipeline.py129 except Exception as exc:CODE
LOW⚡backend/app/pipeline.py252 except Exception as stage_exc:CODE
LOW⚡backend/app/pipeline.py255 except Exception as release_exc:CODE
LOW⚡backend/app/pipeline.py265 except Exception as release_exc:CODE
LOWbackend/app/pipeline.py306 except Exception as log_exc:CODE
LOW⚡backend/app/pipeline.py319 except Exception:CODE
LOW⚡backend/app/pipeline.py334 except Exception:CODE
LOW⚡backend/app/pipeline.py596 except Exception as task_exc:CODE
LOW⚡backend/app/pipeline.py599 except Exception as release_exc:CODE
LOW⚡backend/app/pipeline.py609 except Exception as release_exc:CODE
LOW⚡backend/app/pipeline.py612 except Exception as task_read_exc:CODE
LOWbackend/app/pipeline.py628 except Exception as task_update_exc:CODE
LOWbackend/app/main.py401 except Exception:CODE
LOWbackend/app/main.py423 except Exception:CODE
LOWbackend/app/main.py427 except Exception:CODE
LOWbackend/app/main.py482 except Exception:CODE
LOWbackend/app/main.py726 except Exception as exc:CODE
MEDIUMbackend/app/main.py311def _ensure_runtime_ready() -> None:CODE
LOWbackend/app/runtime_security.py123 except Exception:CODE
LOWbackend/app/runtime_security.py136 except Exception:CODE
LOWbackend/app/runtime_security.py570 except Exception:CODE
LOWbackend/app/runtime_security.py586 except Exception:CODE
LOWbackend/app/adapters/ytdlp.py126 except Exception as exc:CODE
LOWbackend/app/adapters/ffmpeg.py323 except Exception:CODE
MEDIUMbackend/tests/test_settings_and_api.py1062def update_settings() -> None:CODE
MEDIUMbackend/tests/test_settings_and_api.py1141def read_settings() -> None:CODE
LOWbackend/tests/test_settings_and_api.py1070 except Exception as exc: # pragma: no cover - asserted belowCODE
LOWbackend/tests/test_settings_and_api.py1144 except Exception as exc: # pragma: no cover - asserted belowCODE
Modern Structural Boilerplate7 hits · 8 pts
SeverityFileLineSnippetContext
LOWbackend/app/worker.py17logger = logging.getLogger(__name__)CODE
LOW⚡backend/app/database.py658def update_task(task_id: str, **fields: Any) -> None:CODE
LOW⚡backend/app/database.py667def update_stage(task_id: str, name: str, **fields: Any) -> None:CODE
LOW⚡backend/app/database.py676def set_setting(key: str, value: str) -> None:CODE
LOWbackend/app/pipeline.py20logger = logging.getLogger(__name__)CODE
LOWbackend/app/main.py39logger = logging.getLogger(__name__)CODE
LOWbackend/tests/test_settings_and_api.py1062 def update_settings() -> None:CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbackend/app/adapters/openai_translate.py84except json.JSONDecodeError:CODE
Deep Nesting6 hits · 4 pts
SeverityFileLineSnippetContext
LOWbackend/app/main.py387CODE
LOWbackend/app/runtime_security.py179CODE
LOWbackend/app/adapters/voxcpm.py168CODE
LOWbackend/tests/test_pipeline.py682CODE
LOWbackend/tests/test_pipeline.py693CODE
LOWbackend/tests/test_pipeline.py694CODE
Overly Generic Function Names1 hit · 2 pts
SeverityFileLineSnippetContext
LOW⚡backend/app/pipeline.py592def run_task(task_id: str) -> None:CODE