AI Slop Code Risk Monitor

h2database/h2database

SlopCodeMonitor badge for h2database/h2database Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
0.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for h2database/h2database. SynthScan examined 404,247 lines of code across 1624 source files, recording 46 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.2 (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.2
Adjusted Signal
0.2
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
404.2K
Lines of Code
1.6K
Files
46
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.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 1.1/100 · LOW

Which changes need focused human review? 46 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 5HIGH 0MEDIUM 0LOW 41

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 46 distinct pattern matches across 5 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 Indicators5 hits · 50 pts
SeverityFileLineSnippetContext
CRITICALh2/src/test/org/h2/test/unit/TestAutoReconnect.java191 java.lang.reflect.Field serversField = org.h2.server.TcpServer.class.getDeclaredField("SERVERS");CODE
CRITICALh2/src/test/org/h2/test/db/TestTriggersConstraints.java529 Trigger t = new org.h2.test.db.TestTriggersConstraints.TestTriggerAlterTable();CODE
CRITICALh2/src/docsrc/html/tutorial.html447use <code>org.h2.server.web.WebServer.encodeAdminPassword(String)</code> to generate a hash for your password.CODE
CRITICALh2/src/docsrc/html/navigation.js52 if(top.main.document.location.href.indexOf(page) > 0 && top.main.document.body && top.main.document.body.innerHTCODE
CRITICALh2/src/main/org/h2/server/web/WebServer.java958 "Use result of org.h2.server.web.WebServer.encodeAdminPassword(String)");CODE
Over-Commented Block37 hits · 37 pts
SeverityFileLineSnippetContext
LOWh2/src/tools/org/h2/dev/net/PgTcpRedirect.java381 println("ErrorResponse");COMMENT
LOWh2/src/tools/org/h2/dev/net/PgTcpRedirect.java421 }COMMENT
LOW…c/tools/org/h2/dev/security/SecureKeyStoreBuilder.java81 // PublicKey pubKey = cert.getPublicKey();COMMENT
LOW…c/tools/org/h2/dev/security/SecureKeyStoreBuilder.java101// for (int i = 0; i < sup.length; i++) {COMMENT
LOWh2/src/test/org/h2/test/TestAll.java481// ",org.h2.fulltext.FullText$FullTextTrigger" +COMMENT
LOWh2/src/test/org/h2/test/TestAll.java501// ",org.h2.test.db.TestLob" +COMMENT
LOWh2/src/test/org/h2/test/TestAll.java521// ",org.h2.test.db.TestTriggersConstraints$TestViewGeneratedKeys" +COMMENT
LOWh2/src/test/org/h2/test/poweroff/TestRecover.java241 prepDelete = null;COMMENT
LOWh2/src/test/org/h2/test/synth/TestCrashAPI.java201COMMENT
LOWh2/src/test/org/h2/test/synth/TestHalt.java281 }COMMENT
LOWh2/src/test/org/h2/test/synth/TestHalt.java301// return DriverManager.getConnection(COMMENT
LOWh2/src/test/org/h2/test/synth/TestKillRestart.java181 stat.execute("CREATE TABLE TEST(ID IDENTITY, NAME VARCHAR)");COMMENT
LOWh2/src/test/org/h2/test/synth/sql/Command.java161 command.selectList = Expression.getRandomSelectList(config, command);COMMENT
LOWh2/src/test/org/h2/test/synth/sql/Command.java181// globalJoinCondition += " AND ";COMMENT
LOWh2/src/test/org/h2/test/synth/sql/Value.java281 }COMMENT
LOWh2/src/test/org/h2/test/synth/sql/Value.java301// case Types.DECIMAL:COMMENT
LOWh2/src/test/org/h2/test/synth/sql/Value.java321// int len = Math.min(al, bl);COMMENT
LOWh2/src/test/org/h2/test/synth/sql/Result.java141// System.out.println("> ok");COMMENT
LOWh2/src/test/org/h2/test/synth/sql/TestSynth.java161 // Table table = randomTable();COMMENT
LOWh2/src/test/org/h2/test/synth/sql/TestSynth.java301 // addDatabase("org.h2.Driver", "jdbc:h2:synth;mode=mysql", "sa", "");COMMENT
LOWh2/src/test/org/h2/test/db/TestLinkedTable.java161// Statement sa = ca.createStatement();COMMENT
LOWh2/src/test/org/h2/test/db/TestRights.java401 stat.execute("CREATE USER TEST PASSWORD 'TEST' ADMIN");COMMENT
LOWh2/src/test/org/h2/test/db/TestSpeed.java41 stat.execute("CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255))");COMMENT
LOWh2/src/test/org/h2/test/db/TestSpeed.java61 // for(int i=1; i<8000; i*=2) {COMMENT
LOWh2/src/test/org/h2/test/db/TestSpeed.java81 // conn.close();COMMENT
LOWh2/src/test/org/h2/test/db/TestSpeed.java141 // }COMMENT
LOWh2/src/test/org/h2/test/jdbcx/TestDataSource.java41 TestBase.createCaller().init().testFromMain();COMMENT
LOWh2/src/main/org/h2/result/UpdatableRow.java201 }COMMENT
LOWh2/src/main/org/h2/mode/ToDateTokenizer.java581 // MinCOMMENT
LOWh2/src/main/org/h2/util/CacheLRU.java321 // rec = rec.chained;COMMENT
LOWh2/src/main/org/h2/value/ValueStringBase.java61// public int hashCode() {COMMENT
LOWh2/src/main/org/h2/server/web/WebServer.java141// "src/main/org/h2/res/_messages_cs.prop"), -1);COMMENT
LOWh2/src/main/org/h2/mvstore/tx/TxDecisionMaker.java301 // current operation should fail within repeatable read transactionCOMMENT
LOWh2/src/main/org/h2/table/InformationSchemaTable.java1201 // DECLARED_NUMERIC_SCALECOMMENT
LOWh2/src/main/org/h2/table/InformationSchemaTable.java1981 // ROUTINE_BODYCOMMENT
LOWh2/src/main/org/h2/command/query/Optimizer.java21class Optimizer {COMMENT
LOWh2/src/installer/release.txt121 # http://central.sonatype.org/pages/manual-staging-bundle-creation-and-deployment.htmlCOMMENT
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOWh2/src/docsrc/html/tutorial.html540don't forget to uncomment and adjust security configuration for your needs.CODE
LOWh2/src/docsrc/html/features.html1459If you use some third-party script processing tool, use standard single quotes instead and don't forget to repeatCODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…/src/main/org/h2/expression/condition/CompareLike.java231 // we need to check if the value is setCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWh2/src/docsrc/html/fragments.html126function googleTranslateElementInit() {CODE