AI Slop Code RIsk Monitor

linyqh/NarratoAI

利用 AI 大模型,一键解说并剪辑视频

24.5 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for linyqh/NarratoAI, a Python project with 11,357 GitHub stars. SynthScan examined 50,217 lines of code across 171 source files, recording 1151 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 24.5 (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.

24.5
Adjusted Signal
24.5
Raw Pattern Score
100%
Time Factor
2026-09-17
Last Push
11.4K
Stars
Python
Language
50.2K
Lines of Code
171
Files
1.2K
Pattern Hits
2026-10-12
Scan Date
0.20
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 50.5/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 9.7/100 · LOW

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

Agent Over-Engineering Ratio 60.9/100 · HIGH

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

PR Review Velocity Impact 74.0/100 · HIGH

Which changes need focused human review? 1151 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 34MEDIUM 17LOW 1100

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 1151 distinct pattern matches across 10 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 Identifiers512 hits · 500 pts
SeverityFileLineSnippetContext
LOWwebui.py160def _render_generation_status(task: dict | None) -> str:CODE
LOWwebui.py375def get_voice_name_for_tts_engine(tts_engine: str) -> str:CODE
LOWwebui.py411def get_jianying_export_params(draft_name=None) -> VideoClipParams:CODE
LOWwebui.py456def _render_jianying_export_status():CODE
LOWwebui.py468def _render_jianying_export_dialog():CODE
LOWwebui.py614def render_export_jianying_button():STRING
LOWapp/config/audio_config.py89 def get_audio_processing_config(cls) -> Dict[str, Any]:CODE
LOWapp/config/audio_config.py168def get_recommended_volumes_for_content(content_type: str = 'mixed') -> Dict[str, float]:CODE
LOWapp/config/config.py42def normalize_tts_engine_name(tts_engine: str) -> str:CODE
LOWapp/config/config.py46def normalize_indextts_voice_prefix(voice_name: str) -> str:CODE
LOWapp/config/test_config_bootstrap_unittest.py20 def test_save_config_keeps_macos_tts_settings_independent(self):CODE
LOWapp/config/test_config_bootstrap_unittest.py44 def test_load_config_bootstraps_webui_llm_defaults(self):CODE
LOWapp/config/test_config_bootstrap_unittest.py133 def test_fast_text_model_falls_back_to_reasoning_model(self):CODE
LOWapp/config/test_config_bootstrap_unittest.py150 def test_ui_keeps_full_model_name_and_openai_provider(self):CODE
LOWapp/config/test_config_bootstrap_unittest.py159 def test_normalize_only_strips_openai_prefix(self):CODE
LOWapp/config/defaults.py54def merge_missing_app_defaults(app_config: dict | None = None) -> dict:CODE
LOWapp/config/defaults.py62def normalize_openai_compatible_model_name(CODE
LOWapp/config/defaults.py99def get_openai_compatible_ui_values(CODE
LOWapp/utils/script_generator.py499 def calculate_duration_and_word_count(self, time_range: str) -> int:CODE
LOWapp/utils/ffmpeg_detector.py225def _parse_ffmpeg_table_names(output: str) -> set[str]:CODE
LOWapp/utils/ffmpeg_detector.py267def _detect_hardware_encoding(ffmpeg_path: str, encoders: set[str]) -> dict[str, Any]:CODE
LOWapp/utils/qwenvl_analyzer.py64 async def _generate_content_with_retry(self, prompt: str, batch: List[PIL.Image.Image]):CODE
LOW⚡app/utils/video_processor.py261 def _collect_extracted_frame_paths(output_dir: str) -> List[str]:CODE
LOW⚡app/utils/video_processor.py269 def _cleanup_fast_path_artifacts(output_dir: str) -> None:CODE
LOW⚡app/utils/video_processor.py277 def _extract_single_frame_optimized(self, timestamp: float, output_path: str,CODE
LOWapp/utils/video_processor.py89 def extract_frames_by_interval(self, output_dir: str, interval_seconds: float = 5.0,CODE
LOWapp/utils/video_processor.py188 def extract_frames_by_interval_with_fallback(self, output_dir: str, interval_seconds: float = 5.0) -> List[str]:CODE
LOWapp/utils/video_processor.py205 def _extract_frames_fast_path(self, output_dir: str, interval_seconds: float = 5.0) -> List[str]:CODE
LOWapp/utils/video_processor.py310 def _try_extract_with_software_decode(self, timestamp: float, output_path: str) -> bool:CODE
LOWapp/utils/video_processor.py338 def _try_extract_with_hwaccel(self, timestamp: float, output_path: str, hw_accel: List[str]) -> bool:CODE
LOWapp/utils/video_processor.py371 def _try_extract_with_software(self, timestamp: float, output_path: str) -> bool:CODE
LOWapp/utils/video_processor.py400 def _try_extract_with_ultra_compatibility(self, timestamp: float, output_path: str) -> bool:CODE
LOWapp/utils/video_processor.py584 def extract_frames_by_interval_ultra_compatible(self, output_dir: str, interval_seconds: float = 5.0) -> List[int]:CODE
LOWapp/utils/video_processor.py675 def _extract_frame_ultra_compatible(self, timestamp: float, output_path: str) -> bool:CODE
LOWapp/utils/test_ffmpeg_detector_unittest.py41 def test_discover_includes_configured_path(self):CODE
LOWapp/utils/test_ffmpeg_detector_unittest.py59 def test_validate_reports_hardware_and_subtitle_support(self):CODE
LOWapp/utils/utils.py191def time_convert_seconds_to_hmsm(seconds) -> str:CODE
LOWapp/utils/utils.py244def split_string_by_punctuations(s):STRING
LOWapp/utils/ffmpeg_utils.py118def check_ffmpeg_installation() -> bool:CODE
LOWapp/utils/ffmpeg_utils.py252def detect_hardware_acceleration() -> Dict[str, Union[bool, str, List[str], None]]:CODE
LOWapp/utils/ffmpeg_utils.py440def _detect_macos_acceleration(supported_hwaccels: str) -> None:CODE
LOWapp/utils/ffmpeg_utils.py470def _detect_windows_acceleration(supported_hwaccels: str) -> None:CODE
LOWapp/utils/ffmpeg_utils.py639def _detect_linux_acceleration(supported_hwaccels: str) -> None:CODE
LOWapp/utils/ffmpeg_utils.py806def get_ffmpeg_hwaccel_encoder() -> Optional[str]:CODE
LOWapp/utils/ffmpeg_utils.py834def is_ffmpeg_hwaccel_available() -> bool:CODE
LOWapp/utils/ffmpeg_utils.py862def get_optimal_ffmpeg_encoder() -> str:CODE
LOWapp/utils/ffmpeg_utils.py881def get_ffmpeg_command_with_hwaccel(input_path: str, output_path: str, **kwargs) -> List[str]:CODE
LOWapp/utils/ffmpeg_utils.py925def test_ffmpeg_compatibility() -> Dict[str, any]:CODE
LOWapp/utils/openai_base_url_security.py49def _is_well_formed_http_base_url(base_url: str) -> bool:CODE
LOWapp/utils/openai_base_url_security.py62def is_trusted_openai_compatible_base_url(base_url: Optional[str]) -> bool:CODE
LOWapp/utils/openai_base_url_security.py88def openai_compatible_base_url_warning(base_url: Optional[str]) -> str:CODE
LOWapp/utils/openai_base_url_security.py101def validate_openai_compatible_base_url(base_url: Optional[str]) -> Optional[str]:CODE
LOWapp/services/clip_video.py48def _calculate_ffmpeg_duration(start_time: str, end_time: str) -> str:CODE
LOWapp/services/clip_video.py61def _normalize_video_origin_paths(CODE
LOWapp/services/clip_video.py104def _resolve_script_video_path(script_item: Dict, video_origin_paths: List[str]) -> str:CODE
LOWapp/services/clip_video.py178def check_hardware_acceleration() -> Optional[str]:CODE
LOWapp/services/clip_video.py329def execute_ffmpeg_with_fallback(CODE
LOWapp/services/clip_video.py444def try_compatibility_fallback(CODE
LOWapp/services/clip_video.py651def _process_narration_only_segment(CODE
LOWapp/services/clip_video.py703def _process_original_audio_segment(CODE
452 more matches not shown…
Excessive Try-Catch Wrapping333 hits · 322 pts
SeverityFileLineSnippetContext
LOWwebui.py99 except Exception as e:CODE
LOWwebui.py286 except Exception as e:CODE
LOWwebui.py355 except Exception as e:CODE
LOWwebui.py582 except Exception as e:STRING
LOWwebui.py603 except Exception as e:STRING
LOWwebui.py666 except Exception as e:CODE
LOWwebui.py689 except Exception as e:CODE
MEDIUMwebui.py143def _safe_int(value, default=0):CODE
LOWapp/config/config.py116 except Exception as e:CODE
LOWapp/config/config.py143 except Exception as e:CODE
LOWapp/config/ffmpeg_config.py115 except Exception as e:CODE
LOWapp/config/ffmpeg_config.py197 except Exception:CODE
LOWapp/config/ffmpeg_config.py258 except Exception:CODE
LOWapp/utils/script_generator.py37 except Exception as e:CODE
LOWapp/utils/script_generator.py77 except Exception as e:CODE
LOWapp/utils/script_generator.py113 except Exception as e:CODE
LOWapp/utils/script_generator.py188 except Exception as e:CODE
LOWapp/utils/script_generator.py300 except Exception as e:CODE
LOWapp/utils/script_generator.py341 except Exception as e:CODE
LOWapp/utils/script_generator.py380 except Exception as e:CODE
LOWapp/utils/script_generator.py422 except Exception as e:CODE
LOWapp/utils/script_generator.py556 except Exception as e:CODE
LOWapp/utils/script_generator.py613 except Exception as e:CODE
LOWapp/utils/script_generator.py639 except Exception as e:CODE
LOWapp/utils/ffmpeg_detector.py93 except Exception as exc:CODE
LOWapp/utils/ffmpeg_detector.py159 except Exception as exc:CODE
LOWapp/utils/ffmpeg_detector.py184 except Exception:CODE
LOWapp/utils/ffmpeg_detector.py239 except Exception as exc:CODE
LOWapp/utils/qwenvl_analyzer.py48 except Exception as e:CODE
LOWapp/utils/qwenvl_analyzer.py98 except Exception as e:CODE
LOWapp/utils/qwenvl_analyzer.py182 except Exception as e:CODE
LOWapp/utils/qwenvl_analyzer.py203 except Exception as e:CODE
LOWapp/utils/qwenvl_analyzer.py259 except Exception as e:CODE
LOWapp/utils/video_processor.py199 except Exception as exc:CODE
LOWapp/utils/video_processor.py440 except Exception as e:CODE
LOWapp/utils/video_processor.py446 except Exception:CODE
LOWapp/utils/video_processor.py488 except Exception:CODE
LOWapp/utils/video_processor.py493 except Exception:CODE
LOWapp/utils/video_processor.py538 except Exception as e:CODE
LOWapp/utils/video_processor.py579 except Exception as e:CODE
LOWapp/utils/video_processor.py720 except Exception as e:CODE
LOWapp/utils/video_processor.py726 except Exception:CODE
LOWapp/utils/video_processor.py737 except Exception as e:CODE
LOWapp/utils/utils.py61 except Exception as e:CODE
LOWapp/utils/utils.py183 except Exception as e:CODE
LOWapp/utils/utils.py291 except Exception as e:STRING
LOWapp/utils/utils.py552 except Exception as e:STRING
LOWapp/utils/utils.py608 except Exception as e:STRING
LOWapp/utils/utils.py659 except Exception as e:CODE
LOWapp/utils/utils.py676 except Exception as e:CODE
LOWapp/utils/utils.py695 except Exception as e:CODE
MEDIUMapp/utils/utils.py33def to_json(obj):CODE
MEDIUMapp/utils/utils.py180def run():CODE
MEDIUMapp/utils/utils.py284def get_system_locale():CODE
LOWapp/utils/check_script.py122 except Exception as e:CODE
LOWapp/utils/ffmpeg_utils.py99 except Exception as e:CODE
LOWapp/utils/ffmpeg_utils.py114 except Exception as e:CODE
LOWapp/utils/ffmpeg_utils.py177 except Exception as e:CODE
LOWapp/utils/ffmpeg_utils.py247 except Exception as e:CODE
LOWapp/utils/ffmpeg_utils.py287 except Exception as e:CODE
273 more matches not shown…
Unused Imports106 hits · 102 pts
SeverityFileLineSnippetContext
LOWapp/config/__init__.py7CODE
LOWapp/config/defaults.py3CODE
LOWapp/config/ffmpeg_config.py6CODE
LOWapp/utils/ffmpeg_detector.py3CODE
LOWapp/utils/video_processor.py23CODE
LOWapp/utils/ffmpeg_utils.py9CODE
LOWapp/models/schema.py3CODE
LOWapp/services/task.py1CODE
LOWapp/services/task.py5CODE
LOWapp/services/task.py10CODE
LOWapp/services/material.py6CODE
LOWapp/services/subtitle_text.py13CODE
LOWapp/services/short_drama_narration_validation.py6CODE
LOWapp/services/subtitle_corrector.py3CODE
LOWapp/services/subtitle_corrector.py9CODE
LOWapp/services/subtitle_merger.py13CODE
LOWapp/services/video_service.py1CODE
LOWapp/services/video_service.py4CODE
LOWapp/services/fun_asr_subtitle.py7CODE
LOWapp/services/update_script.py13CODE
LOWapp/services/audio_normalizer.py14CODE
LOWapp/services/audio_normalizer.py15CODE
LOWapp/services/audio_normalizer.py15CODE
LOWapp/services/audio_normalizer.py17CODE
LOWapp/services/llm.py5CODE
LOWapp/services/llm.py14CODE
LOWapp/services/llm.py15CODE
LOWapp/services/llm.py24CODE
LOWapp/services/subtitle.py1CODE
LOWapp/services/generate_narration_script.py14CODE
LOWapp/services/generate_narration_script.py19CODE
LOWapp/services/voice.py1CODE
LOWapp/services/voice.py13CODE
LOWapp/services/generate_video.py34CODE
LOWapp/services/tavily_search.py3CODE
LOWapp/services/subtitle_translator.py3CODE
LOWapp/services/youtube_service.py8CODE
LOWapp/services/audio_merger.py2CODE
LOWapp/services/audio_merger.py4CODE
LOWapp/services/audio_merger.py5CODE
LOWapp/services/audio_merger.py7CODE
LOWapp/services/audio_merger.py7CODE
LOWapp/services/video.py5CODE
LOWapp/services/video.py7CODE
LOWapp/services/video.py19CODE
LOWapp/services/documentary/__init__.py1CODE
LOWapp/services/documentary/__init__.py1CODE
LOWapp/services/documentary/__init__.py5CODE
LOWapp/services/llm/test_twelvelabs_provider_unittest.py15CODE
LOWapp/services/llm/openai_compatible_provider.py26CODE
LOWapp/services/llm/config_validator.py7CODE
LOWapp/services/llm/config_validator.py12CODE
LOWapp/services/llm/validators.py9CODE
LOWapp/services/llm/__init__.py18CODE
LOWapp/services/llm/__init__.py19CODE
LOWapp/services/llm/__init__.py19CODE
LOWapp/services/llm/__init__.py19CODE
LOWapp/services/llm/__init__.py20CODE
LOWapp/services/llm/__init__.py20CODE
LOWapp/services/llm/__init__.py21CODE
46 more matches not shown…
Deep Nesting117 hits · 92 pts
SeverityFileLineSnippetContext
LOWwebui.py209CODE
LOWwebui.py468CODE
LOWwebui.py474CODE
LOWwebui.py251CODE
LOWapp/config/ffmpeg_config.py99CODE
LOWapp/utils/script_generator.py198CODE
LOWapp/utils/script_generator.py434CODE
LOWapp/utils/script_generator.py572CODE
LOWapp/utils/qwenvl_analyzer.py102CODE
LOWapp/utils/video_processor.py400CODE
LOWapp/utils/video_processor.py675CODE
LOWapp/utils/utils.py33CODE
LOWapp/utils/utils.py295CODE
LOWapp/utils/utils.py573CODE
LOWapp/utils/utils.py612CODE
LOWapp/utils/utils.py36CODE
LOWapp/utils/check_script.py5CODE
LOWapp/utils/ffmpeg_utils.py138CODE
LOWapp/utils/ffmpeg_utils.py183CODE
LOWapp/utils/ffmpeg_utils.py252CODE
LOWapp/utils/ffmpeg_utils.py403CODE
LOWapp/utils/ffmpeg_utils.py470CODE
LOWapp/utils/ffmpeg_utils.py639CODE
LOWapp/utils/ffmpeg_utils.py925CODE
LOWapp/services/clip_video.py189CODE
LOWapp/services/clip_video.py245CODE
LOWapp/services/clip_video.py329CODE
LOWapp/services/clip_video.py798CODE
LOWapp/services/clip_video.py880CODE
LOWapp/services/clip_video.py1011CODE
LOWapp/services/task.py133CODE
LOWapp/services/task.py348CODE
LOWapp/services/task.py644CODE
LOWapp/services/material.py39CODE
LOWapp/services/material.py93CODE
LOWapp/services/material.py190CODE
LOWapp/services/material.py323CODE
LOWapp/services/material.py525CODE
LOWapp/services/merger_video.py280CODE
LOWapp/services/merger_video.py313CODE
LOWapp/services/merger_video.py511CODE
LOWapp/services/merger_video.py30CODE
LOWapp/services/jianying_task.py110CODE
LOWapp/services/jianying_task.py279CODE
LOWapp/services/subtitle_merger.py62CODE
LOWapp/services/fun_asr_subtitle.py309CODE
LOWapp/services/fun_asr_subtitle.py681CODE
LOWapp/services/update_script.py90CODE
LOWapp/services/llm.py115CODE
LOWapp/services/llm.py138CODE
LOWapp/services/llm.py478CODE
LOWapp/services/llm.py532CODE
LOWapp/services/subtitle.py23CODE
LOWapp/services/subtitle.py197CODE
LOWapp/services/subtitle.py254CODE
LOWapp/services/generate_narration_script.py25CODE
LOWapp/services/voice.py84CODE
LOWapp/services/voice.py1147CODE
LOWapp/services/voice.py1410CODE
LOWapp/services/voice.py1472CODE
57 more matches not shown…
Empty Error Handlers18 hits · 90 pts
SeverityFileLineSnippetContext
HIGHapp/config/ffmpeg_config.py197except Exception:CODE
HIGHapp/utils/video_processor.py446except Exception:CODE
HIGHapp/utils/video_processor.py493except Exception:CODE
HIGHapp/services/voice.py77except Exception:CODE
HIGHapp/services/voice.py2424except:CODE
HIGHapp/services/voice.py2433except:CODE
HIGHapp/services/voice.py3037except Exception:CODE
HIGHapp/services/generate_video.py691except Exception:CODE
HIGHapp/services/generate_video.py454except ValueError:CODE
HIGHapp/services/generate_video.py1335except OSError:CODE
HIGHapp/services/generate_video.py1321except OSError:CODE
HIGHapp/services/sonilo.py538except Exception:CODE
HIGHapp/services/state.py100except (ValueError, SyntaxError):CODE
HIGHwebui/tools/generate_short_summary.py129except json.JSONDecodeError:CODE
HIGHwebui/tools/generate_short_summary.py140except json.JSONDecodeError:CODE
HIGHwebui/tools/generate_short_summary.py152except json.JSONDecodeError:CODE
HIGHwebui/components/audio_settings.py2065except:CODE
HIGHwebui/components/subtitle_settings.py719except OSError:CODE
Docstring Block Structure16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHapp/services/upload_validation.py27 验证文件路径是否存在且有效 Args: file_path: 待验证的文件路径 label: 文件类型标签(用于错误提示) allowed_exts: 允许的文件扩展名元组STRING
HIGHapp/services/upload_validation.py69 解析字幕输入源,确保只有一个有效来源 Args: subtitle_content: 字幕文本内容 subtitle_file_path: 字幕文件路径(推荐) srt_pSTRING
HIGHapp/services/llm/validators.py20 验证JSON输出格式 Args: output: 待验证的输出字符串 schema: JSON Schema (可选) STRING
HIGHapp/services/llm/validators.py91 验证解说文案输出格式 Args: output: 待验证的解说文案输出 Returns: 解析后的STRING
HIGHapp/services/llm/validators.py179 验证字幕分析输出格式 Args: output: 待验证的字幕分析输出 Returns: 验证后的STRING
HIGHapp/services/llm/unified_service.py30 分析图片内容 Args: images: 图片路径列表或PIL图片对象列表 prompt: 分析提示词 providSTRING
HIGHapp/services/llm/unified_service.py73 生成文本内容 Args: prompt: 用户提示词 system_prompt: 系统提示词 provider: STRING
HIGHapp/services/llm/unified_service.py149 生成解说文案 Args: prompt: 提示词 provider: 文本模型提供商名称 temperature: STRING
HIGHapp/services/llm/unified_service.py200 分析字幕内容 Args: subtitle_content: 字幕内容 provider: 文本模型提供商名称 teSTRING
HIGHapp/services/llm/manager.py93 获取视觉模型提供商实例 Args: provider_name: 提供商名称,如果不指定则从配置中获取 Returns: 视觉模型提供商实STRING
HIGHapp/services/llm/manager.py158 获取文本模型提供商实例 Args: provider_name: 提供商名称,如果不指定则从配置中获取 Returns: 文本模型提供商实STRING
HIGHapp/services/SDP/generate_script_short.py113生成视频混剪脚本(向后兼容版本) Args: srt_path: 字幕文件路径(向后兼容参数,可选) api_key: API密钥 model_name: 模型名称 STRING
HIGHapp/services/SDP/utils/utils.py10加载并解析SRT文件(使用 pysrt 库,支持多种编码和格式) Args: file_path: SRT文件路径 Returns: 字幕内容列表,格式: [ STRING
HIGHapp/services/SDP/utils/utils.py84从字符串内容解析SRT(用于直接传入字幕内容,无需依赖文件路径) Args: srt_content: SRT格式的字幕文本内容 Returns: 字幕内容列表,格式同 load_srt STRING
HIGHapp/services/prompts/template.py32 渲染模板 Args: template: 模板字符串 parameters: 参数字典 ReturSTRING
HIGHapp/services/prompts/manager.py39 获取渲染后的提示词 Args: category: 分类 name: 名称 version: 版本(可选,默认使用最STRING
AI Structural Patterns22 hits · 19 pts
SeverityFileLineSnippetContext
LOWapp/utils/utils.py275CODE
LOWapp/utils/utils.py508CODE
LOWapp/services/fun_asr_subtitle.py897CODE
LOWapp/services/subtitle_translator.py243CODE
LOWapp/services/subtitle_translator.py353CODE
LOWapp/services/script_service.py12CODE
LOWapp/services/documentary/frame_analysis_service.py37CODE
LOWapp/services/documentary/frame_analysis_service.py97CODE
LOWapp/services/llm/validators.py69CODE
LOWapp/services/llm/migration_adapter.py235CODE
LOWapp/services/SDE/short_drama_explanation.py835CODE
LOWapp/services/SDE/short_drama_explanation.py896CODE
LOWapp/services/SDE/short_drama_explanation.py957CODE
LOWapp/services/SDE/short_drama_explanation.py992CODE
LOWapp/services/SDE/short_drama_explanation.py1029CODE
LOWapp/services/SDP/generate_script_short.py14CODE
LOWapp/services/SDP/generate_script_short.py97CODE
LOW…p/services/SDP/utils/step1_subtitle_analyzer_openai.py192CODE
LOWwebui/tools/generate_short_summary.py272CODE
LOWwebui/tools/generate_short_summary.py351CODE
LOWwebui/tools/generate_short_summary.py463CODE
LOWwebui/tools/generate_script_short.py36CODE
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippetContext
LOWconfig.example.toml21 # 常用视觉模型示例:COMMENT
LOWconfig.example.toml61 text_openai_top_p = 0.95COMMENT
LOWconfig.example.toml81 # sonilo_bgm_prompt = "" # 可选:配乐风格提示,留空则完全根据画面生成COMMENT
LOWrequirements.txt21Pillow>=10.3.0COMMENT
LOWapp/config/__init__.py61 colorize=True,COMMENT
LOWapp/models/schema.py61COMMENT
LOWapp/models/schema.py81#COMMENT
LOWapp/services/task.py421 # logger.info(f"\n\n使用 {subtitle_provider} 生成字幕")COMMENT
LOWapp/services/llm.py801 )COMMENT
LOWapp/services/subtitle.py441 extract_audio_and_create_subtitle(video_file, subtitle_file)COMMENT
LOWapp/services/subtitle.py461 # # if gemini_subtitle_file:COMMENT
LOWapp/services/generate_narration_script.py241 # print(markdown_output)COMMENT
LOWapp/services/generate_narration_script.py261 # with open(narration_file, 'w', encoding='utf-8') as f:COMMENT
LOWwebui/i18n/__init__.py1# 空文件,用于标记包 COMMENT
Modern Structural Boilerplate12 hits · 12 pts
SeverityFileLineSnippetContext
LOWapp/services/documentary/__init__.py9__all__ = [CODE
LOWapp/services/llm/__init__.py26__all__ = [CODE
LOWapp/services/llm/providers/__init__.py45__all__ = [CODE
LOWapp/services/prompts/registry.py114 def set_default_version(self, category: str, name: str, version: str) -> None:CODE
LOWapp/services/prompts/__init__.py29__all__ = [CODE
LOWapp/services/prompts/short_drama_narration/__init__.py49__all__ = [CODE
LOWapp/services/prompts/documentary/__init__.py29__all__ = [CODE
LOWapp/services/prompts/short_drama_editing/__init__.py34__all__ = [CODE
LOWapp/services/prompts/film_tv_narration/__init__.py40__all__ = [CODE
LOWwebui/__init__.py13__all__ = [CODE
LOWwebui/utils/vision_analyzer.py5logger = logging.getLogger(__name__)CODE
LOWwebui/components/__init__.py7__all__ = [CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWwebui.py280 def run_task():CODE