AI Slop Code RIsk Monitor

huggingface/notebooks

Notebooks using the Hugging Face libraries 🤗

10.5 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for huggingface/notebooks, a Jupyter Notebook project with 4,640 GitHub stars. SynthScan examined 5,587 lines of code across 50 source files, recording 54 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 10.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.

10.5
Adjusted Signal
10.5
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
4.6K
Stars
Jupyter Notebook
Language
5.6K
Lines of Code
50
Files
54
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 23.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 20.8/100 · LOW

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

Agent Over-Engineering Ratio 9.8/100 · LOW

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

PR Review Velocity Impact 40.5/100 · MEDIUM

Which changes need focused human review? 54 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 0MEDIUM 2LOW 52

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 54 distinct pattern matches across 8 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.

Unused Imports26 hits · 26 pts
SeverityFileLineSnippetContext
LOWlongform-qa/lfqa_utils.py3CODE
LOWlongform-qa/lfqa_utils.py13CODE
LOWlongform-qa/lfqa_utils.py14CODE
LOWlongform-qa/lfqa_utils.py16CODE
LOWlongform-qa/lfqa_utils.py17CODE
LOW…age_classification_vision_transformer/scripts/train.py1CODE
LOW…age_classification_vision_transformer/scripts/train.py3CODE
LOWsagemaker/01_getting_started_pytorch/scripts/train.py4CODE
LOWsagemaker/01_getting_started_pytorch/scripts/train.py9CODE
LOWsagemaker/14_train_and_push_to_hub/scripts/train.py4CODE
LOWsagemaker/14_train_and_push_to_hub/scripts/train.py8CODE
LOWsagemaker/15_training_compiler/scripts/train.py4CODE
LOWsagemaker/15_training_compiler/scripts/train.py8CODE
LOWsagemaker/05_spot_instances/scripts/train.py4CODE
LOWsagemaker/05_spot_instances/scripts/train.py8CODE
LOWsagemaker/28_train_llms_with_qlora/scripts/run_clm.py1CODE
LOWsagemaker/28_train_llms_with_qlora/scripts/run_clm.py14CODE
LOWsagemaker/28_train_llms_with_qlora/scripts/run_clm.py14CODE
LOW…r/25_pytorch_fsdp_model_parallelism/scripts/run_clm.py1CODE
LOWsagemaker/24_train_bloom_peft_lora/scripts/inference.py2CODE
LOWsagemaker/06_sagemaker_metrics/scripts/train.py4CODE
LOWsagemaker/06_sagemaker_metrics/scripts/train.py9CODE
LOWsagemaker/26_document_ai_donut/scripts/train.py3CODE
LOWsagemaker/26_document_ai_donut/scripts/train.py3CODE
LOWsagemaker/26_document_ai_donut/scripts/train.py3CODE
LOWsagemaker/26_document_ai_donut/scripts/train.py15CODE
Hyper-Verbose Identifiers9 hits · 8 pts
SeverityFileLineSnippetContext
LOWutils/convert_doc_to_notebooks.py49 def _move_to_next_non_empty_line(i):CODE
LOWutils/convert_doc_to_notebooks.py379def convert_rst_file_to_notebook(STRING
LOWlongform-qa/lfqa_utils.py124 def embed_sentences_checkpointed(self, input_ids, attention_mask, checkpoint_batch_size=-1):CODE
LOWlongform-qa/lfqa_utils.py244def train_qa_retriever_joint_epoch(model, dataset_list, tokenizer, optimizer, scheduler, args, e=0):CODE
LOWlongform-qa/lfqa_utils.py533def embed_passages_for_retrieval(passages, tokenizer, qa_embedder, max_length=128, device="cuda:0"):CODE
LOWlongform-qa/lfqa_utils.py544def embed_questions_for_retrieval(q_ls, tokenizer, qa_embedder, device="cuda:0"):CODE
LOWlongform-qa/lfqa_utils.py609def batch_query_qa_dense_index(questions, qa_embedder, tokenizer, wiki_passages, wiki_index, n_results=10):CODE
LOWlongform-qa/lfqa_utils.py639def batch_query_qa_dense_index_nn(passages, qa_embedder, tokenizer, wiki_passages, wiki_index, n_results=10):CODE
LOW…r/25_pytorch_fsdp_model_parallelism/scripts/run_clm.py15def safe_save_model_for_hf_trainer(trainer: Trainer, tokenizer: AutoTokenizer, output_dir: str):CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWcourse/en/chapter13/grpo_format.py47CODE
LOWcourse/en/chapter13/grpo_format.py66CODE
LOWutils/convert_doc_to_notebooks.py42CODE
LOWutils/convert_doc_to_notebooks.py306CODE
LOWutils/convert_doc_to_notebooks.py379CODE
LOW…xamples/src/text-classification/train_using_s3_data.py51CODE
LOW…gemaker_examples/src/seq2seq/run_seq2seq_no_trainer.py383CODE
LOW…gemaker_examples/src/seq2seq/run_seq2seq_no_trainer.py474CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…er/32_train_deploy_embedding_models/scripts/run_mnr.py65 # Create a mapping of relevant document (1 in our case) for each queryCOMMENT
MEDIUM…er/32_train_deploy_embedding_models/scripts/run_mnr.py83 # Create a sequential evaluatorCOMMENT
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsagemaker/14_train_and_push_to_hub/README.md1# SageMaker push to hf.co/models exampleCOMMENT
LOW…xamples/src/text-classification/train_using_s3_data.py1# coding=utf-8COMMENT
LOW…xamples/src/text-classification/train_using_s3_data.py21COMMENT
LOW…gemaker_examples/src/seq2seq/run_seq2seq_no_trainer.py1#!/usr/bin/env pythonCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcourse/en/chapter13/grpo_format.py120 # Display the resultsCOMMENT
LOWcourse/en/chapter13/grpo_math.py120 # Display the resultsCOMMENT
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcourse/en/chapter13/grpo_math.py107 except Exception:CODE
LOW…s/idefics_zero3_finetuning/idefics_zero3_finetuning.py59 except Exception:CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlongform-qa/lfqa_utils.py494CODE