AI Slop Code Risk Monitor

leejet/stable-diffusion.cpp

SlopCodeMonitor badge for leejet/stable-diffusion.cpp Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
1.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for leejet/stable-diffusion.cpp. SynthScan examined 271,781 lines of code across 515 source files, recording 493 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.5 (Low 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.

1.5
Adjusted Signal
1.5
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
271.8K
Lines of Code
515
Files
493
Pattern Hits
2026-10-31
Scan Date
0.00
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-10-31.

Cognitive Ownership Risk 7.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.2/100 · LOW

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

PR Review Velocity Impact 9.0/100 · LOW

Which changes need focused human review? 493 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 1MEDIUM 7LOW 485

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

Over-Commented Block471 hits · 378 pts
SeverityFileLineSnippetContext
LOWinclude/stable-diffusion.h1#ifndef __STABLE_DIFFUSION_H__COMMENT
LOWdocs/docker.md81# -v ./models:/models -v ./build:/output \COMMENT
LOWexamples/server/async_jobs.h1#pragma onceCOMMENT
LOWexamples/server/model_catalog.cpp1#include "model_catalog.h"COMMENT
LOWexamples/server/runtime.h1#pragma onceCOMMENT
LOWexamples/server/routes_sdapi.cpp1#include "routes.h"COMMENT
LOWexamples/server/runtime.cpp1#include "runtime.h"COMMENT
LOWexamples/server/main.cpp1#include <cstdlib>COMMENT
LOWexamples/cli/image_metadata.cpp1#include "image_metadata.h"COMMENT
LOWexamples/cli/main.cpp1#include <stdio.h>COMMENT
LOWexamples/common/common.cpp1#include "common.h"COMMENT
LOWexamples/common/media_io.cpp1#include "media_io.h"COMMENT
LOWexamples/common/media_io.cpp21#include "stb_image.h"COMMENT
LOWexamples/common/common.h1#ifndef __EXAMPLES_COMMON_COMMON_H__COMMENT
LOWexamples/common/log.h1#ifndef __EXAMPLE_LOG_H__COMMENT
LOWthirdparty/httplib.h1//COMMENT
LOWthirdparty/httplib.h21 "cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler.")COMMENT
LOWthirdparty/httplib.h41/*COMMENT
LOWthirdparty/httplib.h61#ifndef CPPHTTPLIB_CONNECTION_TIMEOUT_USECONDCOMMENT
LOWthirdparty/httplib.h81#ifndef CPPHTTPLIB_CLIENT_READ_TIMEOUT_SECONDCOMMENT
LOWthirdparty/httplib.h101#ifndef CPPHTTPLIB_IDLE_INTERVAL_SECONDCOMMENT
LOWthirdparty/httplib.h121#ifndef CPPHTTPLIB_HEADER_MAX_COUNTCOMMENT
LOWthirdparty/httplib.h141#ifndef CPPHTTPLIB_RANGE_MAX_COUNTCOMMENT
LOWthirdparty/httplib.h161#ifndef CPPHTTPLIB_COMPRESSION_BUFSIZCOMMENT
LOWthirdparty/httplib.h181#define CPPHTTPLIB_LISTEN_BACKLOG 5COMMENT
LOWthirdparty/httplib.h201#if defined(_MSC_VER)COMMENT
LOWthirdparty/httplib.h221#endif // NOMINMAXCOMMENT
LOWthirdparty/httplib.h241using socklen_t = int;COMMENT
LOWthirdparty/httplib.h261#endifCOMMENT
LOWthirdparty/httplib.h281#include <algorithm>COMMENT
LOWthirdparty/httplib.h301#include <set>COMMENT
LOWthirdparty/httplib.h321#include <wincrypt.h>COMMENT
LOWthirdparty/httplib.h341#include <openssl/err.h>COMMENT
LOWthirdparty/httplib.h361COMMENT
LOWthirdparty/darts.h1#ifndef DARTS_H_COMMENT
LOWthirdparty/darts.h101COMMENT
LOWthirdparty/darts.h141 // member variables with 0 and NULLs.COMMENT
LOWthirdparty/darts.h201 return size_;COMMENT
LOWthirdparty/darts.h221 // `progress_func' is a pointer to a callback function. If it is not NULL,COMMENT
LOWthirdparty/darts.h241 // non-zero value or throws a <Darts::Exception>. The exception is thrownCOMMENT
LOWthirdparty/darts.h261 // Note that the length of `result' indicates the length from the `node_pos'.COMMENT
LOWthirdparty/darts.h281 // `node_pos' works as well as in exactMatchSearch().COMMENT
LOWthirdparty/json.hpp21#include <algorithm> // all_of, find, for_eachCOMMENT
LOWthirdparty/json.hpp41// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>COMMENT
LOWthirdparty/json.hpp61#ifndef JSON_SKIP_LIBRARY_VERSION_CHECKCOMMENT
LOWthirdparty/json.hpp81#if JSON_DIAGNOSTICSCOMMENT
LOWthirdparty/json.hpp141 {COMMENT
LOWthirdparty/json.hpp161#include <algorithm> // transformCOMMENT
LOWthirdparty/json.hpp181COMMENT
LOWthirdparty/json.hpp201#include <array> // arrayCOMMENT
LOWthirdparty/json.hpp221// | | |__ | | | | | | version 3.11.2COMMENT
LOWthirdparty/json.hpp321// | | |__ | | | | | | version 3.11.2COMMENT
LOWthirdparty/json.hpp341#define JSON_HEDLEY_STRINGIFY_EX(x) #xCOMMENT
LOWthirdparty/json.hpp361#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##cCOMMENT
LOWthirdparty/json.hpp381#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000)COMMENT
LOWthirdparty/json.hpp401 #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(maCOMMENT
LOWthirdparty/json.hpp421 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWthirdparty/json.hpp441#endifCOMMENT
LOWthirdparty/json.hpp461 #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWthirdparty/json.hpp481 #undef JSON_HEDLEY_SUNPRO_VERSIONCOMMENT
411 more matches not shown…
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMthirdparty/httplib.h9715 // Cross-host/scheme redirect - create new client with robust setupCOMMENT
MEDIUMthirdparty/httplib.h9720// New method for robust redirect client creationCOMMENT
MEDIUMthirdparty/httplib.h9788 // Setup client with robust configurationCOMMENT
MEDIUMthirdparty/httplib.h9796// New method for robust client setup (based on basic_manual_redirect.cppCOMMENT
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWscripts/convert_qwen3_vl.py62CODE
LOWscripts/remove_utf8_bom.py64CODE
LOWscripts/remove_utf8_bom.py176CODE
LOWscripts/convert_sefi.py129CODE
LOWscripts/convert_sefi.py204CODE
LOWscripts/merge_safetensors.py264CODE
LOWscripts/convert_fp8_scale_to_bf16.py201CODE
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/convert_qwen3_vl.py19CODE
LOWscripts/pulid_extract_id.py25CODE
LOWscripts/convert_sefi.py16CODE
LOWscripts/face_detect.py9CODE
LOWscripts/face_detect.py10CODE
LOWscripts/convert_fp8_scale_to_bf16.py5CODE
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/merge_safetensors.py22# -----------------------------------------------------------------------------COMMENT
MEDIUMscripts/merge_safetensors.py24# -----------------------------------------------------------------------------COMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/remove_utf8_bom.py125except FileNotFoundError:CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/build.yml513 # Create the venv directly at the cache location to avoid relocation issuesCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/convert_sefi.py129def stage_tensors_for_section(section_dir: str, rewrite_fn):CODE