AI Slop Code Risk Monitor

zai-org/ChatGLM-6B

SlopCodeMonitor badge for zai-org/ChatGLM-6B Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型

10.4 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for zai-org/ChatGLM-6B, a Python project with 40,840 GitHub stars. SynthScan examined 7,089 lines of code across 33 source files, recording 65 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 10.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.

10.4
Adjusted Signal
10.4
Raw Pattern Score
100%
Time Factor
2024-06-27
Last Push
40.8K
Stars
Python
Language
7.1K
Lines of Code
33
Files
65
Pattern Hits
2026-11-27
Scan Date
0.12
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-27.

Cognitive Ownership Risk 27.4/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 7.5/100 · LOW

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

Agent Over-Engineering Ratio 18.5/100 · LOW

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

PR Review Velocity Impact 45.1/100 · MEDIUM

Which changes need focused human review? 65 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 0HIGH 4MEDIUM 0LOW 61

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 65 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.

Deep Nesting25 hits · 16 pts
SeverityFileLineSnippetContext
LOWweb_demo_vision.py26CODE
LOWcli_demo_vision.py31CODE
LOWcli_demo.py29CODE
LOWweb_demo.py26CODE
LOWptuning/trainer.py307CODE
LOWptuning/trainer.py896CODE
LOWptuning/trainer.py1039CODE
LOWptuning/trainer.py1096CODE
LOWptuning/trainer.py1217CODE
LOWptuning/trainer.py1303CODE
LOWptuning/trainer.py1364CODE
LOWptuning/trainer.py1642CODE
LOWptuning/trainer.py2055CODE
LOWptuning/trainer.py2075CODE
LOWptuning/trainer.py2133CODE
LOWptuning/trainer.py2286CODE
LOWptuning/trainer.py2392CODE
LOWptuning/trainer.py2562CODE
LOWptuning/trainer.py2720CODE
LOWptuning/trainer.py2812CODE
LOWptuning/trainer.py3303CODE
LOWptuning/main.py49CODE
LOWptuning/main.py159CODE
LOWptuning/main.py187CODE
LOWptuning/web_demo.py42CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHweb_demo_vision.py0copy from https://github.com/gaizhenbiao/chuanhuchatgpt/STRING
HIGHweb_demo.py0copy from https://github.com/gaizhenbiao/chuanhuchatgpt/STRING
HIGHptuning/web_demo.py0copy from https://github.com/gaizhenbiao/chuanhuchatgpt/STRING
Unused Imports12 hits · 11 pts
SeverityFileLineSnippetContext
LOWcli_demo_vision.py7CODE
LOWcli_demo.py5CODE
LOWutils.py2CODE
LOWptuning/trainer.py305CODE
LOWptuning/trainer.py305CODE
LOWptuning/trainer.py305CODE
LOWptuning/trainer.py305CODE
LOWptuning/web_demo.py7CODE
LOWptuning/web_demo.py8CODE
LOWptuning/web_demo.py8CODE
LOWptuning/web_demo.py8CODE
LOWptuning/web_demo.py19CODE
Hyper-Verbose Identifiers11 hits · 11 pts
SeverityFileLineSnippetContext
LOWutils.py8def auto_configure_device_map(num_gpus: int) -> Dict[str, int]:CODE
LOWptuning/trainer.py723 def _set_signature_columns_if_needed(self):CODE
LOWptuning/trainer.py757 def _get_collator_with_removed_columns(CODE
LOWptuning/trainer.py1023 def create_optimizer_and_scheduler(self, num_training_steps: int):CODE
LOWptuning/trainer.py1096 def get_optimizer_cls_and_kwargs(args: TrainingArguments) -> Tuple[Any, Any]:CODE
LOWptuning/trainer.py2193 def _issue_warnings_after_load(self, load_result):CODE
LOWptuning/trainer.py2392 def _load_optimizer_and_scheduler(self, checkpoint):CODE
LOWptuning/trainer.py2596 def compute_loss_context_manager(self):CODE
LOWptuning/trainer.py2602 def autocast_smart_context_manager(self, cache_enabled: Optional[bool] = True):CODE
LOWptuning/trainer.py3793 def _add_sm_patterns_to_gitignore(self) -> None:CODE
LOWptuning/main.py187 def preprocess_function_train(examples):CODE
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWptuning/trainer.py1734 # Check if saved optimizer or scheduler states existCOMMENT
LOWptuning/trainer.py1759 # Check if continuing training from a checkpointCOMMENT
LOWptuning/trainer.py2886 # Check if we should delete older checkpoint(s)COMMENT
LOWptuning/trainer.py3176 # Set back to None to begin a new accumulationCOMMENT
LOWptuning/trainer.py3735 # Set back to None to begin a new accumulationCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHptuning/trainer.py3572 Upload *self.model* and *self.tokenizer* to the 🤗 model hub on the repo *self.args.hub_model_id*. ParaSTRING
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWptuning/trainer_seq2seq.py1# Copyright 2020 The HuggingFace Team. All rights reserved.COMMENT
LOWptuning/trainer.py1# coding=utf-8COMMENT
LOWptuning/main.py1#!/usr/bin/env pythonCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWptuning/trainer.py1911 # if loss is nan or inf simply add the average of previous logged lossesCOMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWptuning/trainer.py2278 except Exception as e:CODE
AI Structural Patterns2 hits · 1 pts
SeverityFileLineSnippetContext
LOWptuning/trainer.py307CODE
LOWptuning/trainer.py3473CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWptuning/main.py47logger = logging.getLogger(__name__)CODE