Sample

Dorn/java/213

Human rating uses the original dataset scale.

DatasetDorn
Human3.97
Lines10

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.9430–1; higher is more readable
90.5Δ 0.6
Scalabrino0.8480–1; higher is more readable
91.1Δ 0.0
Dorn0.7290–1; higher is more readable
68.2Δ 22.8
Mi0.7350–1; higher is more readable
90.3Δ 0.8
LLOC3Logical lines; fewer is more readable
88.6Δ 2.5
DeepSeek V4 Pro10.330–20; mean of three runs
42.9Δ 48.2
GPT-6.1 Sol17.330–20; mean of three runs
86.5Δ 4.6
BTTF0.7530–1; higher is more readable
95.3Δ 4.2
Human3.971–5; original rating
91.1

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)
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.566−6.849
Source linesThe number of non-empty source lines.10+4
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.97.672−3.223

Intercept 8.87 + feature contributions = 2.798 (log-odds).
Score = sigmoid(2.798) = 0.943.

Score0.848

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.48+1.632
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.0−0.804
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.10+0.682
Indentation frequencyHow rapidly indentation changes from line to line.9−0.426
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.9.837−0.272
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.9+0.214
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.108−0.105

Intercept 0.07 + feature contributions = 0.992 (log-odds).
Score = sigmoid(0.992) = 0.729.

Score0.735
Score3
Run 1

The code is a short, focused Java snippet with clear purpose. It includes a copy constructor delegating to a superclass and a method returning a constant. Structure is logical and methods are separated by blank lines, improving readability. Nesting is absent. Intent is clear: construct an ICMP echo packet and expose its header length. Code length is concise. Each action is on its own line, including the delegation call and return statement. Reading flow is natural, top-to-bottom. Minor deductions: the dangling Javadoc closing comment suggests context is missing, and no explanatory comments exist for the constant '8', which could benefit from a named constant or documentation.

Run 2

The code is simple but lacks context. It shows a copy constructor, a method returning a magic number, and a closing brace for an unknown outer block. The structure is fragmented, making it hard to evaluate intent. The nesting is flat, but the magic number '8' and the missing class context reduce clarity. The reading flow is broken by the orphaned comment opener and closing brace. The copy constructor is concise, but the method `getICMPHeaderByteLength` could be clearer with a named constant instead of a literal. Overall, the fragment is readable in isolation but not as a cohesive unit.

Run 3

The code is nearly unreadable due to almost complete lack of context. It contains a stray comment terminator `*/` at the top, a copy constructor calling a superclass constructor, a method returning a magic number 8, and multiple blank lines. While nesting is flat and lines are short, the intent is unclear: there is no class declaration, field definitions, or surrounding logic to explain the purpose. Action granularity is acceptable, but the reading flow is broken by the orphaned comment and unexplained constant. The method name `getICMPHeaderByteLength` hints at network packet structure, but without documentation or a named constant for 8, the code’s purpose remains ambiguous. Overall, it lacks the structural and contextual elements needed for readability.

Run 1

Code Structure: Two clearly separated methods provide straightforward organization, though the leading orphaned comment terminator makes the snippet appear incomplete. Nesting: No nested control flow; both methods are flat. Clarity of intent: The copy constructor and header-length accessor have descriptive names, but the literal 8 lacks a named constant or explanation. Code length: Concise, with slightly excessive blank lines. Action granularity: Each statement performs one action on its own line. Reading flow: Natural and easy to follow, aside from the incomplete opening comment.

Run 2

Code Structure: Two small, logically separated methods are easy to scan. Nesting: No nested control flow. Clarity of intent: The copy constructor clearly delegates to the superclass, and the getter clearly returns the ICMP header length; a named constant could better explain the literal 8. Code length: Concise, with no unnecessary logic. Action granularity: Each statement performs one action on its own line. Reading flow: Natural and straightforward, though extra blank lines and the leading orphaned comment terminator slightly disrupt the snippet.

Run 3

Code Structure: Two small, logically separated methods are easy to follow, although the leading comment terminator suggests an incomplete excerpt. Nesting: No nested control flow. Clarity of intent: The copy constructor clearly delegates to the superclass, and the getter clearly returns the ICMP header length; a named constant or brief explanation would clarify the literal 8. Code length: Concise, with slightly excessive blank lines. Action granularity: Each statement performs one action on its own line. Reading flow: Straightforward and natural, with only the dangling comment terminator disrupting readability.