AI Slop Code Risk Monitor

iluwatar/java-design-patterns

SlopCodeMonitor badge for iluwatar/java-design-patterns Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Design patterns implemented in Java

0.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for iluwatar/java-design-patterns, a Java project with 94,831 GitHub stars. SynthScan examined 245,888 lines of code across 2840 source files, recording 59 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.7 (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.

0.7
Adjusted Signal
0.7
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
94.8K
Stars
Java
Language
245.9K
Lines of Code
2.8K
Files
59
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 0.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.3/100 · LOW

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

Agent Over-Engineering Ratio 0.4/100 · LOW

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

PR Review Velocity Impact 3.0/100 · LOW

Which changes need focused human review? 59 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 8HIGH 3MEDIUM 1LOW 47

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

Hallucination Indicators8 hits · 95 pts
SeverityFileLineSnippetContext
CRITICAL…main/java/com/iluwatar/servicetoworker/GiantModel.java48 this.model = new com.iluwatar.model.view.controller.GiantModel(health, fatigue, nourishment);CODE
CRITICAL⚡…va/com/iluwatar/messaging/NotificationServiceTest.java124 org.junit.jupiter.api.Assertions.assertTrue(Thread.interrupted());CODE
CRITICAL⚡…va/com/iluwatar/messaging/NotificationServiceTest.java128 org.junit.jupiter.api.Assertions.assertTrue(Thread.interrupted());CODE
CRITICAL⚡…va/com/iluwatar/messaging/NotificationServiceTest.java132 org.junit.jupiter.api.Assertions.assertTrue(Thread.interrupted());CODE
CRITICAL…/java/com/iluwatar/messaging/InventoryServiceTest.java112 org.junit.jupiter.api.Assertions.assertTrue(Thread.interrupted());CODE
CRITICAL…/java/com/iluwatar/messaging/InventoryServiceTest.java116 org.junit.jupiter.api.Assertions.assertTrue(Thread.interrupted());CODE
CRITICAL…st/java/com/iluwatar/messaging/PaymentServiceTest.java110 org.junit.jupiter.api.Assertions.assertTrue(Thread.interrupted());CODE
CRITICAL…st/java/com/iluwatar/messaging/PaymentServiceTest.java114 org.junit.jupiter.api.Assertions.assertTrue(Thread.interrupted());CODE
Fake / Example Data21 hits · 21 pts
SeverityFileLineSnippetContext
LOW…com/iluwatar/transactionaloutbox/OrderServiceTest.java54 Order order = orderService.createOrder("John Doe", "Smartphone", 799.99);CODE
LOW…com/iluwatar/transactionaloutbox/OrderServiceTest.java57 assertEquals("John Doe", order.getCustomerName());CODE
LOWnotification/README.md81 var form = new RegisterWorkerForm("John Doe", "Engineer", LocalDate.of(1990, 1, 1));CODE
LOW…src/test/java/com/iluwatar/RegisterWorkerFormTest.java41 registerWorkerForm = new RegisterWorkerForm("John Doe", "Engineer", LocalDate.of(1990, 1, 1));CODE
LOW…src/test/java/com/iluwatar/RegisterWorkerFormTest.java52 assertEquals("John Doe", registerWorkerForm.worker.getName());CODE
LOW…atar/hexagonal/database/MongoTicketRepositoryTest.java78 var details = new PlayerDetails("foo@bar.com", "123-123", "07001234");CODE
LOW…atar/hexagonal/database/MongoTicketRepositoryTest.java88 assertEquals("foo@bar.com", ticket.playerDetails().email());CODE
LOW…java/com/iluwatar/hexagonal/test/LotteryTestUtils.java40 return createLotteryTicket("foo@bar.com", "12231-213132", "+99324554", Set.of(1, 2, 3, 4));CODE
LOWonion-architecture/README.md212 "phoneNumber": "555-1234",CODE
LOWonion-architecture/README.md214 "address": "123 Main St",CODE
LOW…r/onion/application/usecase/SavePersonUseCaseTest.java77 "123 Main St",CODE
LOW…r/onion/application/usecase/SavePersonUseCaseTest.java165 "123 Main St",CODE
LOW…r/onion/application/usecase/SavePersonUseCaseTest.java188 "123 Main St",CODE
LOW…r/onion/application/usecase/SavePersonUseCaseTest.java210 "123 Main St",CODE
LOW…r/onion/application/usecase/SavePersonUseCaseTest.java238 "123 Main St",CODE
LOW…tar/onion/infrastructure/web/PersonControllerTest.java199 "123 Main St",CODE
LOW…tar/onion/infrastructure/web/PersonControllerTest.java240 "123 Main St",CODE
LOW…st/java/com/iluwatar/monolithic/MonolithicAppTest.java109 User mockUser = new User(1L, "John Doe", "john@example.com", "password123");CODE
LOW…st/java/com/iluwatar/monolithic/MonolithicAppTest.java181 User mockUser = new User(1L, "John Doe", "john@example.com", "password123");CODE
LOW…st/java/com/iluwatar/monolithic/MonolithicAppTest.java241 .thenReturn(new User(1L, "John Doe", "john@example.com", "password123"));CODE
LOW…st/java/com/iluwatar/monolithic/MonolithicAppTest.java248 new User(1L, "John Doe", "john@example.com", "password123"),CODE
Structural Annotation Overuse8 hits · 18 pts
SeverityFileLineSnippetContext
LOW⚡thread-specific-storage/README.md103 // Step 1: Parse token to get userIdCOMMENT
LOW⚡thread-specific-storage/README.md106 // Step 2: Save userId in ThreadLocal storageCOMMENT
LOW⚡thread-specific-storage/README.md112 // Step 3: Retrieve userId later in the request flowCOMMENT
LOW⚡thread-specific-storage/README.md121 // Step 4: Clear ThreadLocal to avoid potential memory leaksCOMMENT
LOW⚡…com/iluwatar/threadspecificstorage/RequestHandler.java29 // Step 1: Parse token to get userIdCOMMENT
LOW⚡…com/iluwatar/threadspecificstorage/RequestHandler.java32 // Step 2: Save userId in ThreadLocal storageCOMMENT
LOW⚡…com/iluwatar/threadspecificstorage/RequestHandler.java38 // Step 3: Retrieve userId later in the request flowCOMMENT
LOW⚡…com/iluwatar/threadspecificstorage/RequestHandler.java47 // Step 4: Clear ThreadLocal to avoid potential memory leaksCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcombinator/README.md0it was many and many a year ago, in a kingdom by the sea, that a maiden there lived whom you may know by the name of annSTRING
HIGH…src/test/java/com/iluwatar/combinator/FindersTest.java0it was many and many a year ago, in a kingdom by the sea, that a maiden there lived whom you may know by the name of annSTRING
HIGH…c/main/java/com/iluwatar/combinator/CombinatorApp.java0it was many and many a year ago, in a kingdom by the sea, that a maiden there lived whom you may know by the name of annSTRING
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippetContext
LOWmicroservices-messaging/run-app.sh1#!/usr/bin/env bashCOMMENT
LOWmicroservices-messaging/docker-compose.yml1#COMMENT
LOWcaching/docker-compose.yml1#COMMENT
LOW…/subscriber-service/src/main/resources/application.yml1#COMMENT
LOW…her/polling-service/src/main/resources/application.yml1#COMMENT
LOWlocalization/pt/facade/README.md181// Dwarf cart operator goes to the mine.COMMENT
LOWlocalization/zh/bridge/README.md161enchantedSword.unwield();COMMENT
LOWlocalization/zh/facade/README.md161// Dwarf cart operator wakes up.COMMENT
LOWlocalization/ar/facade/README.md181// Dwarven tunnel digger goes to the mine.COMMENT
LOWlocalization/ko/facade/README.md181// Dwarven tunnel digger wakes up.COMMENT
LOWlocalization/es/facade/README.md181// Dwarven tunnel digger goes to the mine.COMMENT
Verbosity Indicators4 hits · 9 pts
SeverityFileLineSnippetContext
LOW⚡…com/iluwatar/threadspecificstorage/RequestHandler.java29 // Step 1: Parse token to get userIdCOMMENT
LOW⚡…com/iluwatar/threadspecificstorage/RequestHandler.java32 // Step 2: Save userId in ThreadLocal storageCOMMENT
LOW⚡…com/iluwatar/threadspecificstorage/RequestHandler.java38 // Step 3: Retrieve userId later in the request flowCOMMENT
LOW⚡…com/iluwatar/threadspecificstorage/RequestHandler.java47 // Step 4: Clear ThreadLocal to avoid potential memory leaksCOMMENT
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWthread-specific-storage/README.md92public class RequestHandler {CODE
LOW…com/iluwatar/threadspecificstorage/RequestHandler.java13public class RequestHandler {CODE
LOWlocalization/zh/chain/README.md64public abstract class RequestHandler {CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…t/src/main/java/com/iluwatar/component/GameObject.java77 * simply a duplicate of update() without the key event for demonstration purposes.COMMENT