Sample

Scalabrio72

Human rating uses the original dataset scale.

DatasetScalabrino
Human3.22
Lines38

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
20.1Δ 7.3
Scalabrino0.1930–1; higher is more readable
14.6Δ 12.8
Dorn0.0510–1; higher is more readable
9.0Δ 18.3
Mi0.0420–1; higher is more readable
21.1Δ 6.3
LLOC29Logical lines; fewer is more readable
5.5Δ 21.9
DeepSeek V4 Pro8.670–20; mean of three runs
12.8Δ 14.6
GPT-6.1 Sol14.670–20; mean of three runs
13.8Δ 13.6
BTTF0.4380–1; higher is more readable
19.6Δ 7.8
Human3.221–5; original rating
27.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.1409.068−46.499
Source linesThe number of non-empty source lines.38+15.2
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.732−7.098

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

Score0.193

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.172−3.62
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.172+1.971
Indentation frequencyHow rapidly indentation changes from line to line.1−0.703
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.36−0.405
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.38−0.309
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.36.514+0.101
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.101−0.037

Intercept 0.07 + feature contributions = -2.932 (log-odds).
Score = sigmoid(-2.932) = 0.051.

Score0.042
Score29
Run 1

The code's purpose is unclear as there is no context, and variable names like 'id', 'id2', and 'getted' reduce readability. Structure is fragmented with inconsistent indentation and excessive code repetition; each session block is nearly identical and could be refactored into a reusable method. The test includes ambiguous, hard-coded SQL with excessive line length, which hurts clarity. Nesting is relatively flat, which is positive, but the action grouping—multiple bind calls and transaction handling per line—lowers action granularity and interrupts the reading flow. Overall, organization and clarity are weak, though the step-by-step flow per session is partially comprehensible.

Run 2

The code has logical separation of operations but suffers from inconsistent indentation, mixing tabs and spaces, which disrupts readability. Nesting is minimal and acceptable. The intent of each block is clear, though the long SQL query and inline comments add some clutter. Action granularity is generally good with one operation per line, but multiple statements are occasionally combined (e.g., creating and configuring SQLQuery in one statement). Reading flow is moderate; the method does one primary thing but is lengthy for a test and could benefit from helper methods for session handling and entity setup. Overall, the code is understandable by an experienced developer but would be more readable with consistent formatting and smaller methods for repeated setup.

Run 3

The code suffers from poor structure and inconsistent formatting that significantly harms readability. The indentation is mixed between tabs and spaces, creating jagged alignment that disrupts the natural reading flow. Multiple SQL operations are packed into a single test method without clear sectioning, making the intent harder to follow. Several lines contain multiple operations (e.g., opening sessions, beginning transactions on the same line), though not consistently. The logic is repetitive - three nearly identical session-management blocks - indicating unnecessary length without abstraction or helper methods. While individual lines are mostly single-purpose and the SQL is clear, the overall organization feels tangled: comments are sparse and the method alternates repeatedly between session creation, transaction handling, and cleanup with no visual breaks. Nesting is acceptable (flat), but clarity suffers from the formatting inconsistencies and lack of test setup/teardown helpers. The code would benefit from extracted helpers, consistent indentation, and clearer test phases (arrange, act, assert).

Run 1

Code Structure: Three sequential database operations are logically organized, but repeated session and transaction setup obscures the test phases. Nesting: The method is flat and easy to follow. Clarity of intent: Annotations, entity initialization, and checks indicate a composite-ID regression test, though names such as s, id2, and getted are weak, and the failure comment conflicts with the apparent expectation. Code length: Reasonably short, but repeated lifecycle code and the long SQL string add visual bulk. Action granularity: Most statements perform one action per line; the chained query creation remains understandable. Reading flow: Execution proceeds naturally from saving to querying to fetching, but inconsistent indentation, spacing, and lengthy comments reduce readability.

Run 2

Code Structure: The test follows three logical phases—save, SQL retrieval, and identifier-based retrieval—but repeats session and transaction setup without clear phase labels. Nesting: The method is flat, making execution easy to follow. Clarity of intent: Annotations and comments explain the composite-ID regression, but names such as s, id2, getted, and testCompositeIdId are weak; the comment claiming retrieval does not work also creates uncertainty about the expected outcome. Code length: Reasonably short, though repeated lifecycle boilerplate adds bulk. Action granularity: Statements generally perform one action per line; the chained query construction remains understandable. Reading flow: Sequential operations support a natural flow, but inconsistent indentation, spacing, and the long SQL and comment lines disrupt scanning.

Run 3

Code Structure: Three distinct transaction blocks logically organize setup, SQL retrieval, and identifier-based retrieval, although repeated session management adds clutter. Nesting: The method is flat, with no nested control flow. Clarity of intent: Test annotations, entity setup, and checks communicate the general purpose, but names such as s, id2, and getted are weak, and the comments are awkward or potentially misleading. Code length: Reasonably short, though repeated transaction boilerplate and a very long SQL line reduce concision. Action granularity: Most lines perform one action; the chained query construction is still understandable. Reading flow: Execution proceeds naturally from saving to retrieving and checking, with blank lines separating phases. Inconsistent indentation and spacing, plus the dense SQL statement, interrupt otherwise straightforward reading.