AI Slop Code Risk Monitor

xinntao/Real-ESRGAN

SlopCodeMonitor badge for xinntao/Real-ESRGAN Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.

6.5 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for xinntao/Real-ESRGAN, a Python project with 37,708 GitHub stars. SynthScan examined 5,989 lines of code across 63 source files, recording 33 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 6.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.

6.5
Adjusted Signal
6.5
Raw Pattern Score
100%
Time Factor
2024-08-06
Last Push
37.7K
Stars
Python
Language
6.0K
Lines of Code
63
Files
33
Pattern Hits
2026-11-27
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-11-27.

Cognitive Ownership Risk 20.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 6.5/100 · LOW

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

Agent Over-Engineering Ratio 5.7/100 · LOW

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

PR Review Velocity Impact 26.6/100 · MEDIUM

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

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 33 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 Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWrealesrgan/__init__.py2CODE
LOWrealesrgan/__init__.py3CODE
LOWrealesrgan/__init__.py4CODE
LOWrealesrgan/__init__.py5CODE
LOWrealesrgan/__init__.py6CODE
LOWrealesrgan/train.py5CODE
LOWrealesrgan/train.py6CODE
LOWrealesrgan/train.py7CODE
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWinference_realesrgan.py12CODE
LOWinference_realesrgan_video.py173CODE
LOWcog_predict.py139CODE
LOWcog_predict.py51CODE
LOWscripts/generate_meta_info.py7CODE
LOWrealesrgan/utils.py117CODE
LOWrealesrgan/archs/srvgg_arch.py22CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMcog_predict.py2# This file is used for deploying replicate modelsCOMMENT
MEDIUMcog.yaml1# This file is used for constructing replicate envCOMMENT
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs/Training.md55#### Step 3: Prepare a txt for meta informationCOMMENT
LOWdocs/anime_video_model.md57#### Step 1: Use ffmpeg to extract frames from videoCOMMENT
LOWdocs/anime_video_model.md65#### Step 2: Inference with Real-ESRGAN executable fileCOMMENT
LOWdocs/anime_video_model.md77#### Step 3: Merge the enhanced frames back into a videoCOMMENT
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWoptions/train_realesrgan_x4plus.yml161# Uncomment these for validationCOMMENT
LOWoptions/train_realesrnet_x2plus.yml121# Uncomment these for validationCOMMENT
LOWoptions/finetune_realesrgan_x4plus.yml161 net_d_iters: 1COMMENT
LOWoptions/train_realesrgan_x2plus.yml161COMMENT
LOWoptions/finetune_realesrgan_x4plus_pairdata.yml121 loss_weight: !!float 1e-1COMMENT
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcog_predict.py23except Exception:CODE
LOWcog_predict.py132 except Exception as error:CODE
LOWcog_predict.py147 except Exception as e:CODE
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsetup.py32CODE
LOWrealesrgan/utils.py29CODE
LOWrealesrgan/archs/discriminator_arch.py67CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_dataset.py82def test_realesrgan_paired_dataset():CODE