Sample

Dorn/java/117

Human rating uses the original dataset scale.

DatasetDorn
Human2.05
Lines10

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.9830–1; higher is more readable
94.4Δ 90.3
Scalabrino0.6890–1; higher is more readable
74.0Δ 69.9
Dorn0.8270–1; higher is more readable
81.6Δ 77.4
Mi0.6950–1; higher is more readable
82.5Δ 78.3
LLOC2Logical lines; fewer is more readable
93.7Δ 89.6
DeepSeek V4 Pro20–20; mean of three runs
0.6Δ 3.6
GPT-6.1 Sol70–20; mean of three runs
1.5Δ 2.6
BTTF0.7850–1; higher is more readable
96.7Δ 92.5
Human2.051–5; original rating
4.2

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.055−6.082
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.82.045−2.707

Intercept 8.87 + feature contributions = 4.08 (log-odds).
Score = sigmoid(4.08) = 0.983.

Score0.689

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.31.909+2.314
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
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.141−0.43
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.1+0.398
Indentation frequencyHow rapidly indentation changes from line to line.10−0.391
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.9.909−0.271

Intercept 0.07 + feature contributions = 1.567 (log-odds).
Score = sigmoid(1.567) = 0.827.

Score0.695
Score2
Run 1

The provided snippet is essentially unreadable. It consists almost entirely of orphaned closing braces with no visible context, making it impossible to determine the logical structure or nesting depth. The only substantive code is a method signature for 'isBuddy' with an unused parameter 'peer', but even this is formatted with excessive whitespace and misaligned elements. There is no meaningful action granularity, reading flow is completely disrupted by the brace fragments, and clarity of intent is absent. While the method name hints at checking peer relationships, the lack of surrounding logic prevents any useful assessment of length or action granularity. Overall, the code fails nearly every readability criterion due to missing context and disjointed structure.

Run 2

The code is a fragment with severe issues. Structure: it shows only closing braces with no logical organization. Nesting: multiple levels of closing braces suggest deep nesting, although the full code is absent. Clarity of intent: the method isBuddy is present but its purpose is unclear from the fragment. Code length: cannot be assessed because the code is incomplete, but the fragment is minimal. Action granularity: one action per line is mostly maintained (declaration and assignment), but brace-only lines add noise. Reading flow: starting mid-block is disorienting; the alignment style for parameters is unusual and harms readability. Overall it is unreadable as presented due to missing context and poor formatting.

Run 3

The code is severely incomplete and lacks context. It opens with multiple closing braces, indicating deep nesting and tangled structure from the preceding (unseen) block. The method signature is fragmented across lines with unusual whitespace and alignment, harming the natural reading flow. Only one line of actual logic is present (String peer_ip = peer.getIp();), making it impossible to evaluate action granularity or clarity of intent. The excessive indentation and orphaned braces suggest poor code structure and likely over-nesting. Without surrounding context or implementation, the snippet fails to convey purpose, is needlessly broken across lines, and reads disorganically. Overall, readability is very low.

Run 1

Code Structure: The fragment starts with four closing braces without their corresponding blocks, making its organization hard to assess. Nesting: The indentation suggests deep nesting in the preceding code, but the visible method body is flat. Clarity of intent: isBuddy and peer.getIp() suggest a peer-related check, but the integer return semantics and actual behavior are unclear because the method is incomplete. Code length: The fragment is short, though splitting the method signature across several lines adds visual overhead. Action granularity: The single visible statement performs one straightforward assignment. Reading flow: Unmatched closing braces, excessive alignment spacing, and an abruptly truncated method disrupt otherwise understandable syntax.

Run 2

Code Structure: Four leading closing braces and an incomplete method obscure the surrounding organization. Nesting: The closing braces suggest substantial preceding nesting, although its logic is not visible. Clarity of intent: isBuddy suggests checking a peer's buddy status, and peer.getIp() is understandable, but the int return type and missing implementation leave the result semantics unclear. Code length: The visible operation is concise, though splitting the method declaration across several lines adds visual overhead. Action granularity: The assignment performs one clear action on its own line. Reading flow: Uneven spacing, isolated braces, and the fragmented declaration interrupt an otherwise simple flow. The score reflects only this incomplete excerpt.

Run 3

Code Structure: The method declaration is recognizable, but the preceding unmatched closing braces and incomplete body obscure the surrounding organization. Nesting: The closing braces suggest several nesting levels, although their context is missing. Clarity of intent: isBuddy and peer.getIp() convey some purpose, but the relationship between retrieving an IP and determining buddy status is not shown. Code length: The visible statements are concise, though the fragment is too incomplete to judge overall length. Action granularity: The assignment performs one clear action on its own line. Reading flow: Excessive indentation, inconsistent spacing, and a split return type and method name interrupt otherwise straightforward reading.