AI Slop Code Risk Monitor

datawhalechina/llm-universe

SlopCodeMonitor badge for datawhalechina/llm-universe Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

本项目是一个面向小白开发者的大模型应用开发教程,在线阅读地址:https://datawhalechina.github.io/llm-universe/

9.5 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for datawhalechina/llm-universe, a Jupyter Notebook project with 14,355 GitHub stars. SynthScan examined 15,003 lines of code across 42 source files, recording 60 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 9.5 (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.5
Adjusted Signal
9.5
Raw Pattern Score
100%
Time Factor
2026-11-25
Last Push
14.4K
Stars
Jupyter Notebook
Language
15.0K
Lines of Code
42
Files
60
Pattern Hits
2026-11-27
Scan Date
0.31
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 13.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 11.4/100 · LOW

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

Agent Over-Engineering Ratio 20.0/100 · LOW

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

PR Review Velocity Impact 40.7/100 · MEDIUM

Which changes need focused human review? 60 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 12MEDIUM 14LOW 33

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 60 distinct pattern matches across 9 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.

Cross-File Repetition11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHdocs/C3/附LangChain自定义Embedding封装讲解.md0生成输入文本列表的 embedding. args: texts (list[str]): 要生成 embedding 的文本列表. returns: list[list[float]]: 输入列表中每个文档的 embedding 列表。每STRING
HIGHnotebook/C3 搭建知识库/zhipuai_embedding.py0生成输入文本列表的 embedding. args: texts (list[str]): 要生成 embedding 的文本列表. returns: list[list[float]]: 输入列表中每个文档的 embedding 列表。每STRING
HIGHnotebook/附/SCNet/streamlit_app.py0生成输入文本列表的 embedding. args: texts (list[str]): 要生成 embedding 的文本列表. returns: list[list[float]]: 输入列表中每个文档的 embedding 列表。每STRING
HIGHnotebook/附/DW高校行/streamlit_app.py0生成输入文本列表的 embedding. args: texts (list[str]): 要生成 embedding 的文本列表. returns: list[list[float]]: 输入列表中每个文档的 embedding 列表。每STRING
HIGHdocs/C3/附LangChain自定义Embedding封装讲解.md0生成输入文本的 embedding. args: texts (str): 要生成 embedding 的文本. return: embeddings (list[float]): 输入文本的 embedding,一个浮点数值列表.STRING
HIGHnotebook/C3 搭建知识库/zhipuai_embedding.py0生成输入文本的 embedding. args: texts (str): 要生成 embedding 的文本. return: embeddings (list[float]): 输入文本的 embedding,一个浮点数值列表.STRING
HIGHnotebook/附/SCNet/streamlit_app.py0生成输入文本的 embedding. args: texts (str): 要生成 embedding 的文本. return: embeddings (list[float]): 输入文本的 embedding,一个浮点数值列表.STRING
HIGHnotebook/附/DW高校行/streamlit_app.py0生成输入文本的 embedding. args: texts (str): 要生成 embedding 的文本. return: embeddings (list[float]): 输入文本的 embedding,一个浮点数值列表.STRING
HIGHdocs/C3/C3.md0so, they still had the 17 piece system on seasonal \ sale for around $49 in the month of november, about \ half off, butSTRING
HIGH…knowledge_db/prompt_engineering/4. 文本概括 Summarizing.md0so, they still had the 17 piece system on seasonal \ sale for around $49 in the month of november, about \ half off, butSTRING
HIGH…e/knowledge_db/prompt_engineering/7. 文本扩展 Expanding.md0so, they still had the 17 piece system on seasonal \ sale for around $49 in the month of november, about \ half off, butSTRING
Modern AI Meta-Vocabulary13 hits · 37 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md118### 第二部分 进阶 RAG 技巧(正在创作)COMMENT
MEDIUMdocs/README.md106### 第二部分 进阶 RAG 技巧(正在创作)COMMENT
MEDIUMdocs/C1/C1.md327## 1.2 什么是 RAGCOMMENT
MEDIUMdocs/C1/C1.md343### 1.2.1 RAG 的工作流程COMMENT
MEDIUMdocs/C1/C1.md362### 1.2.2 RAG 与微调COMMENT
MEDIUMdocs/C1/C1.md384### 1.2.3 RAG 示例项目COMMENT
MEDIUMdocs/C3/C3.md71 # embedding model:'text-embedding-3-small', 'text-embedding-3-large', 'text-embedding-ada-002'COMMENT
MEDIUMnotebook/C1 大型语言模型 LLM 介绍/C1.md327## 1.2 什么是 RAGCOMMENT
MEDIUMnotebook/C1 大型语言模型 LLM 介绍/C1.md343### 1.2.1 RAG 的工作流程COMMENT
MEDIUMnotebook/C1 大型语言模型 LLM 介绍/C1.md362### 1.2.2 RAG 与微调COMMENT
MEDIUMnotebook/C1 大型语言模型 LLM 介绍/C1.md384### 1.2.3 RAG 示例项目COMMENT
MEDIUMnotebook/附/SCNet/streamlit_app.py175 st.markdown('### 🦜🔗 基于 DeepSeek R1 搭建 RAG 应用')CODE
MEDIUMnotebook/附/DW高校行/streamlit_app.py167 st.markdown('### 🦜🔗 基于 DeepSeek R1 搭建 RAG 应用')CODE
Unused Imports11 hits · 11 pts
SeverityFileLineSnippetContext
LOWnotebook/C4 构建 RAG 应用/streamlit_app.py3CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py1CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py1CODE
LOWnotebook/附/SCNet/streamlit_app.py7CODE
LOWnotebook/附/SCNet/streamlit_app.py9CODE
LOWnotebook/附/SCNet/streamlit_app.py14CODE
LOWnotebook/附/SCNet/streamlit_app.py16CODE
LOWnotebook/附/DW高校行/streamlit_app.py7CODE
LOWnotebook/附/DW高校行/streamlit_app.py9CODE
LOWnotebook/附/DW高校行/streamlit_app.py14CODE
LOWnotebook/附/DW高校行/streamlit_app.py16CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALnotebook/C7 高级 RAG 技巧/2. 数据处理/train_dataset.json139 "answer": "经过四次划分已无空白部分,表示决策树生成完毕,从图4-2(d)中可以清晰地看出好瓜与坏瓜的分类边界。含糖率密度0.60.40.20.20.40.60.80(a)第一次划分含糖率密度0.60.40.20.CODE
Fake / Example Data10 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs/C4/C4.md663 ("placeholder", "{chat_history}"),STRING
LOWdocs/C4/C4.md730 ("placeholder", "{chat_history}"),STRING
LOWdocs/C4/C4.md902 ("placeholder", "{chat_history}"),STRING
LOWdocs/C4/C4.md922 ("placeholder", "{chat_history}"),STRING
LOWnotebook/C4 构建 RAG 应用/streamlit_app.py36 ("placeholder", "{chat_history}"),CODE
LOWnotebook/C4 构建 RAG 应用/streamlit_app.py56 ("placeholder", "{chat_history}"),CODE
LOWnotebook/附/SCNet/streamlit_app.py127 ("placeholder", "{chat_history}"),CODE
LOWnotebook/附/SCNet/streamlit_app.py147 ("placeholder", "{chat_history}"),CODE
LOWnotebook/附/DW高校行/streamlit_app.py119 ("placeholder", "{chat_history}"),CODE
LOWnotebook/附/DW高校行/streamlit_app.py139 ("placeholder", "{chat_history}"),CODE
Magic Placeholder Names1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHdocs/C4/C4.md56# llm = ChatOpenAI(temperature=0, openai_api_key="YOUR_API_KEY")COMMENT
Excessive Try-Catch Wrapping6 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMdocs/C6/案例1:个人知识库助手.md392 print(f"Error generating summary for {repo_name}: {e}")CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py40 except Exception as e:CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py68 except Exception as e:CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py88 except Exception as e:CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py103 except Exception as retry_e:CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py129 except Exception as e:CODE
Hyper-Verbose Identifiers5 hits · 5 pts
SeverityFileLineSnippetContext
LOWdocs/C6/案例2:人情世故大模型系统-天机.md347def get_system_prompt_by_name(name):CODE
LOWdocs/C6/案例2:人情世故大模型系统-天机.md363def combine_message_and_history(message, chat_history):CODE
LOW…se/knowledge_db/prompt_engineering/8. 聊天机器人 Chatbot.md31def get_completion_from_messages(messages, model="gpt-3.5-turbo", temperature=0):CODE
LOWnotebook/C7 高级 RAG 技巧/2. 数据处理/generate_qa_pairs.py107def docs_generate_pdf_qa_pairs(CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py58 def _make_embedding_request_with_retry(self, text_data):CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWnotebook/C4 构建 RAG 应用/zhipuai_llm.py142CODE
LOWnotebook/C3 搭建知识库/sparkai_embedding.py78CODE