Sample

Scalabrio33

Human rating uses the original dataset scale.

DatasetScalabrino
Human4
Lines29

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
62.8Δ 10.6
Scalabrino0.7130–1; higher is more readable
73.9Δ 0.5
Dorn0.1480–1; higher is more readable
20.1Δ 53.3
Mi0.3940–1; higher is more readable
67.3Δ 6.0
LLOC11Logical lines; fewer is more readable
63.1Δ 10.3
DeepSeek V4 Pro160–20; mean of three runs
77.4Δ 4.0
GPT-6.1 Sol170–20; mean of three runs
58.5Δ 14.8
BTTF0.5040–1; higher is more readable
39.7Δ 33.7
Human41–5; original rating
73.4

Views

Download official ZIP ↗

Select the downloaded ZIP or its extracted folder. Files stay in your browser.

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(log-odds)
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.724.925−23.923
Source linesThe number of non-empty source lines.29+11.6
Byte entropyHow varied the bytes in the source text are. Repeated bytes give a lower value; a more even mixture gives a higher value.4.859−7.288

Intercept 8.87 + feature contributions = -10.741 (log-odds).
Score = sigmoid(-10.741) = 0.

Score0.713

Feature contributions

FeatureValueContribution
(log-odds)
Identifier layout (horizontal)How rapidly the visual pattern of identifier characters changes from left to right. It measures spatial frequency, not the meaning of the names.109.966−0.993
Indentation frequencyHow rapidly indentation changes from line to line.1−0.703
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.7.586−0.682
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.1+0.398
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.083+0.132
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.28+0.045
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.27.748−0.022

Intercept 0.07 + feature contributions = -1.754 (log-odds).
Score = sigmoid(-1.754) = 0.148.

Score0.394
Score11
Run 1

The code is well-structured and readable with clear intent. It has a logical flow: extract result set, apply limit handling, auto-discover types if needed, and return. Nesting is minimal — only a try-catch block with flat conditional statements. Each action is on its own line, improving readability. The method signature is long but necessary for its context. Variable names are descriptive. The catch block properly releases resources before rethrowing. Minor deductions: the first conditional is slightly complex with an OR operator, and Javadoc is sparse for such a method. Overall, defensive programming and separation of concerns are well-executed.

Run 2

The code is well-structured with a clear single-purpose method. It uses one level of nesting (try-catch) and mostly follows a flat structure. The intent is explicit: execute a statement, get a result set, wrap if needed, handle limits, optionally auto-discover types, and return. Length is concise. Most lines represent one action, though line 15 is somewhat long due to chained method calls. Reading flow is natural and logical. Minor readability improvements could include extracting the chained call into a local variable and simplifying the condition, but overall it is highly readable.

Run 3

The code is well-structured with a single try-catch block, flat nesting, and clear intent. It follows a logical sequence: extract result set, wrap if enabled, conditionally advance, optionally discover types, and return. Each action is on its own line, improving readability. However, variable names like 'st' and 'rs' are abbreviated, which slightly reduces clarity. The method signature is long but acceptable for configuration-heavy logic. The catch block properly releases resources before rethrowing. Overall, the code is readable but could benefit from more descriptive variable names.

Run 1

Code Structure: The method logically groups extraction, wrapping, optional advancement, type discovery, and exception cleanup. Nesting: A single try/catch with two simple conditionals keeps nesting shallow. Clarity of intent: The documentation, method names, and parameter types communicate purpose well, although abbreviations such as st and rs, the autodiscovertypes naming, and the compound limit condition require some interpretation. Code length: The method is concise, with no unnecessary logic, though repeated coordinator access adds visual noise. Action granularity: Each statement performs one primary action; the long extraction chain slightly reduces scanability. Reading flow: Execution follows a natural sequence and ends with clear cleanup and rethrow behavior. Inconsistent spacing and the awkwardly positioned throws clause modestly detract from readability.

Run 2

Code Structure: Logically organized into extraction, wrapping, optional advancement, type discovery, and return, with exception cleanup separated. Nesting: Shallow; conditionals sit within a single try block. Clarity of intent: The documentation and descriptive helper names explain the purpose, though 'st', 'rs', and 'autodiscovertypes' are less readable, and the compound limit condition requires interpretation. Code length: Concise and appropriate for the task, with some verbosity from repeated coordinator access. Action granularity: Each statement performs one primary action, although long chained calls compress several navigation steps. Reading flow: Execution follows a natural sequence; unusual spacing and signature formatting slightly interrupt scanning.

Run 3

Code Structure: Logically organized into extraction, wrapping, optional advancement, type discovery, and return, with exception cleanup separated. Nesting: Shallow; only two simple conditionals within a try block. Clarity of intent: The documentation and descriptive helper names explain the purpose, though abbreviations such as st and rs and the compound limit condition require interpretation. Code length: Concise and appropriate, with a lengthy coordinator access chain adding some visual complexity. Action granularity: Each statement performs one main action, making the sequence easy to follow. Reading flow: Natural execution order and clear exception handling support readability, although inconsistent spacing, the lowercase autodiscovertypes name, and awkward signature formatting slightly detract.