AI Slop Code Risk Monitor

meituan-longcat/LongCat-Video

SlopCodeMonitor badge for meituan-longcat/LongCat-Video Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
9.7 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for meituan-longcat/LongCat-Video, a Python project with 9,453 GitHub stars. SynthScan examined 14,027 lines of code across 41 source files, recording 109 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 9.7 (Moderate pattern signal); it is not an authorship estimate.

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

9.7
Adjusted Signal
9.7
Raw Pattern Score
100%
Time Factor
2026-11-15
Last Push
9.5K
Stars
Python
Language
14.0K
Lines of Code
41
Files
109
Pattern Hits
2026-11-15
Scan Date
0.02
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-15.

Cognitive Ownership Risk 24.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 7.2/100 · LOW

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

Agent Over-Engineering Ratio 28.0/100 · MEDIUM

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

PR Review Velocity Impact 39.3/100 · MEDIUM

Which changes need focused human review? 109 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 1HIGH 0MEDIUM 11LOW 97

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 109 distinct pattern matches across 11 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 Identifiers36 hits · 33 pts
SeverityFileLineSnippetContext
LOWrun_demo_avatar_multi_audio_to_video.py44def extract_vocal_from_speech(source_path, vocal_separator, duration):CODE
LOWlongcat_video/pipeline_longcat_video.py290 def do_classifier_free_guidance(self):STRING
LOWlongcat_video/pipeline_longcat_video_avatar.py472 def do_classifier_free_guidance(self):STRING
LOWlongcat_video/pipeline_longcat_video_avatar.py610 def _resize_and_centercrop_tensor(self, mask: torch.Tensor, target_h: int, target_w: int, resize_mode: str = 'crop')STRING
LOWlongcat_video/pipeline_longcat_video_avatar.py663 def get_audio_embedding_whisper(self, speech_array, fps=25, device='cpu', sample_rate=16000,STRING
LOWlongcat_video/audio_process/__init__.py14def get_audio_feature_extractor(checkpoint_path, model_type="avatar-v1.0"):CODE
LOW…o/block_sparse_attention/flash_attn_bsa_varlen_mask.py174def _attn_fwd_bsa_varlen_align(CODE
LOW…o/block_sparse_attention/flash_attn_bsa_varlen_mask.py290def _attn_bwd_dkdv_bsa_varlen(CODE
LOW…o/block_sparse_attention/flash_attn_bsa_varlen_mask.py428def _attn_bwd_dq_bsa_varlen_align(CODE
LOW…o/block_sparse_attention/flash_attn_bsa_varlen_mask.py505def _attn_bwd_dkdv_bsa_varlen_wrapper(CODE
LOW…o/block_sparse_attention/flash_attn_bsa_varlen_mask.py665def _attn_bwd_dq_bsa_varlen_wrapper(CODE
LOW…o/block_sparse_attention/flash_attn_bsa_varlen_mask.py816def _attn_bwd_dq_bsa_varlen_align_wrapper(CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py87 def get_tma_descriptor_kernel_param(self, name):CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py97def create_mask_from_indices_kernel(CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py116def create_mask_from_indices_triton(CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py132def create_mask_from_indices_varlen(block_indices, N_cols_mask):CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py152def create_indices_k_from_indices_q_varlen(CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py213def get_select_indices_topk_from_score(score, sparsity):CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py234def get_select_indices_cdf_from_score(score, cdf_threshold, sm_scale):CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py246def get_select_indices_cdf_topk(q, k, sparsity, cdf_threshold):CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py253def get_select_indices_cdf_topk_from_score(score, sparsity, cdf_threshold, sm_scale):CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py279def get_select_indices_from_score(score, sparsity, cdf_threshold):CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py290def attn_fwd_bsa_varlen_triton(CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py343def attn_bwd_bsa_varlen_triton(CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py464def make_block_indices_varlen_cp_list(block_indices, cp_size, num_blocks_k_full):CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py491def flash_attn_fwd_softmax_lse_correction(CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py504def flash_attn_fwd_out_correction_init(CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py517def flash_attn_fwd_out_correction(CODE
LOWlongcat_video/modules/longcat_video_dit.py234 def _create_multi_lora_forward(self, module, loras):CODE
LOW…_video/modules/scheduling_flow_match_euler_discrete.py228 def stretch_shift_to_terminal(self, t: torch.Tensor) -> torch.Tensor:CODE
LOW⚡longcat_video/modules/autoencoder_kl_wan.py1173 def enable_decoder_fused_padding(self) -> None:STRING
LOW⚡longcat_video/modules/autoencoder_kl_wan.py1178 def enable_decoder_cache_views(self) -> None:STRING
LOW⚡longcat_video/modules/autoencoder_kl_wan.py1183 def enable_encoder_fused_padding(self) -> None:STRING
LOW⚡longcat_video/modules/autoencoder_kl_wan.py1188 def enable_encoder_cache_views(self) -> None:STRING
LOWlongcat_video/modules/quantization.py93def save_quantized_state_dict(model: nn.Module, save_dir: str, config_source_dir: Optional[str] = None):CODE
LOW…ngcat_video/modules/avatar/longcat_video_dit_avatar.py415 def _create_multi_lora_forward(self, module, loras):CODE
Decorative Section Separators10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMrun_demo_avatar_single_audio_to_video.py280 # ==============================COMMENT
MEDIUMrun_demo_avatar_single_audio_to_video.py282 # ==============================COMMENT
MEDIUMrun_demo_avatar_single_audio_to_video.py309 # ==============================COMMENT
MEDIUMrun_demo_avatar_single_audio_to_video.py311 # ==============================COMMENT
MEDIUMrun_demo_avatar_single_audio_to_video.py344 # =========================================COMMENT
MEDIUMrun_demo_avatar_single_audio_to_video.py346 # =========================================COMMENT
MEDIUMrun_demo_avatar_multi_audio_to_video.py374 # ==============================COMMENT
MEDIUMrun_demo_avatar_multi_audio_to_video.py376 # ==============================COMMENT
MEDIUMrun_demo_avatar_multi_audio_to_video.py442 # =========================================COMMENT
MEDIUMrun_demo_avatar_multi_audio_to_video.py444 # =========================================COMMENT
AI Structural Patterns25 hits · 25 pts
SeverityFileLineSnippetContext
LOWlongcat_video/pipeline_longcat_video.py215CODE
LOWlongcat_video/pipeline_longcat_video.py402CODE
LOWlongcat_video/pipeline_longcat_video.py613CODE
LOWlongcat_video/pipeline_longcat_video.py837CODE
LOWlongcat_video/pipeline_longcat_video.py1098CODE
LOWlongcat_video/pipeline_longcat_video_avatar.py389CODE
LOWlongcat_video/pipeline_longcat_video_avatar.py760CODE
LOWlongcat_video/pipeline_longcat_video_avatar.py992CODE
LOWlongcat_video/pipeline_longcat_video_avatar.py1278CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py660CODE
LOWlongcat_video/context_parallel/ulysses_wrapper.py150CODE
LOWlongcat_video/context_parallel/ulysses_wrapper.py159CODE
LOWlongcat_video/modules/longcat_video_dit.py130CODE
LOW…_video/modules/scheduling_flow_match_euler_discrete.py91CODE
LOWlongcat_video/modules/autoencoder_kl_wan.py550CODE
LOWlongcat_video/modules/autoencoder_kl_wan.py832CODE
LOWlongcat_video/modules/autoencoder_kl_wan.py1005CODE
LOWlongcat_video/modules/blocks.py69CODE
LOWlongcat_video/modules/lora_utils.py24CODE
LOWlongcat_video/modules/avatar/attention.py287CODE
LOW…ngcat_video/modules/avatar/longcat_video_dit_avatar.py25CODE
LOW…ngcat_video/modules/avatar/longcat_video_dit_avatar.py98CODE
LOW…ngcat_video/modules/avatar/longcat_video_dit_avatar.py200CODE
LOW…ngcat_video/modules/avatar/longcat_video_dit_avatar.py461CODE
LOWlongcat_video/modules/avatar/blocks.py9CODE
Deep Nesting18 hits · 18 pts
SeverityFileLineSnippetContext
LOWrun_streamlit.py70CODE
LOWrun_demo_avatar_single_audio_to_video.py36CODE
LOWrun_demo_avatar_multi_audio_to_video.py98CODE
LOWlongcat_video/pipeline_longcat_video.py1340CODE
LOWlongcat_video/pipeline_longcat_video_avatar.py389CODE
LOWlongcat_video/pipeline_longcat_video_avatar.py1278CODE
LOWlongcat_video/pipeline_longcat_video_avatar.py1650CODE
LOWlongcat_video/utils/bukcet_config.py91CODE
LOWlongcat_video/modules/longcat_video_dit.py211CODE
LOWlongcat_video/modules/attention.py50CODE
LOWlongcat_video/modules/autoencoder_kl_wan.py254CODE
LOWlongcat_video/modules/autoencoder_kl_wan.py285CODE
LOWlongcat_video/modules/autoencoder_kl_wan.py550CODE
LOWlongcat_video/modules/autoencoder_kl_wan.py1329CODE
LOWlongcat_video/modules/avatar/attention.py61CODE
LOWlongcat_video/modules/avatar/attention.py118CODE
LOWlongcat_video/modules/avatar/attention.py447CODE
LOW…ngcat_video/modules/avatar/longcat_video_dit_avatar.py392CODE
Unused Imports10 hits · 10 pts
SeverityFileLineSnippetContext
LOWlongcat_video/pipeline_longcat_video_avatar.py1CODE
LOWlongcat_video/pipeline_longcat_video_avatar.py5CODE
LOWlongcat_video/audio_process/torch_utils.py3CODE
LOWlongcat_video/audio_process/torch_utils.py9CODE
LOWlongcat_video/audio_process/torch_utils.py11CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py14CODE
LOWlongcat_video/block_sparse_attention/bsa_interface.py16CODE
LOWlongcat_video/modules/rope_3d.py5CODE
LOWlongcat_video/modules/lora_utils.py7CODE
LOWlongcat_video/modules/lora_utils.py8CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALlongcat_video/modules/attention.py245 attn_bias = xformers.ops.fmha.attn_bias.BlockDiagonalMask.from_seqlens([N] * B, kv_seqlen)CODE
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWrun_streamlit.py80 except Exception as e:CODE
LOWlongcat_video/utils/prompt_enhancer.py144 except Exception as e:CODE
LOWlongcat_video/utils/prompt_enhancer.py181 except Exception as e:CODE
LOWlongcat_video/modules/lora_utils.py117 except Exception as e:CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…_video/modules/scheduling_flow_match_euler_discrete.py1# Copyright 2025 Stability AI, Katherine Crowson and The HuggingFace Team. All rights reserved.COMMENT
LOWlongcat_video/modules/autoencoder_kl_wan.py1# Copyright 2025 The Wan Team and The HuggingFace Team. All rights reserved.COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlongcat_video/modules/quantization.py76 # Check if this module should be skippedCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWREADME.md30 <img src='assets/title_placeholder.svg' alt="placeholder">CODE
Self-Referential Comments1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMlongcat_video/modules/autoencoder_kl_wan.py474 # Create the componentsSTRING