Sample

Dorn/java/218

Human rating uses the original dataset scale.

DatasetDorn
Human3.35
Lines10

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.8570–1; higher is more readable
87.5Δ 35.4
Dorn0.4880–1; higher is more readable
41.8Δ 10.3
Mi0.6540–1; higher is more readable
73.5Δ 21.4
LLOC4Logical lines; fewer is more readable
82.7Δ 30.6
DeepSeek V4 Pro50–20; mean of three runs
10.9Δ 41.2
GPT-6.1 Sol9.330–20; mean of three runs
7.8Δ 44.3
BTTF0.6860–1; higher is more readable
90.0Δ 37.9
Human3.351–5; original rating
52.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.541−6.811
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.129.268−4.266
Source linesThe number of non-empty source lines.10+4

Intercept 8.87 + feature contributions = 1.793 (log-odds).
Score = sigmoid(1.793) = 0.857.

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.58+1.209
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.0−0.804
Indentation frequencyHow rapidly indentation changes from line to line.1−0.703
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.11+0.647
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.137−0.386
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.9.847−0.272
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.10+0.191

Intercept 0.07 + feature contributions = -0.049 (log-odds).
Score = sigmoid(-0.049) = 0.488.

Score0.654
Score4
Run 1

The code is minimally readable but has several issues. It contains a try-catch block where the exception is silently swallowed, which obscures intent and hides potential problems. The structure is very short but lacks context; the controlling loop is not shown, making the purpose unclear. Nesting is shallow, which is positive, but the empty catch block indicates poor error handling and makes debugging difficult. The code length is concise but at the cost of clarity — there is no logging or explanation. Action granularity is acceptable: each statement is on its own line. Reading flow is disrupted by the empty catch and missing loop context. Overall, the code lacks robustness and clarity, earning a low score.

Run 2

The code is extremely short and mostly clear at a line level, but it has several major readability issues. The structure is tangled: an empty catch block hides exceptions, and the if statement is a break condition inside a loop with no visible context, which obscures intent. The code is deeply nested within an outer loop not shown, and the lack of comments or error handling makes the purpose ambiguous. Action granularity is fine—only one operation per line—but the reading flow is broken because the try/catch and break logic is disjointed. The magic string 'link=Control Panel' and absence of context further reduce clarity. Overall, the snippet is nearly unreadable in isolation due to missing loop context, silent exception swallowing, and unclear control flow.

Run 3

The code snippet is difficult to evaluate in isolation and lacks surrounding context, which significantly hampers clarity of intent and overall reading flow. The structure is terse: an empty catch block silently swallows exceptions, and the logic relies on a break statement that depends on an enclosing loop not shown. Nesting is shallow but the use of a try-catch solely for control flow is questionable. Action granularity is acceptable—each statement is on its own line. However, the code length, while concise, is not necessarily clear; the purpose of checking for 'Control Panel' and then sleeping is ambiguous without broader context. The empty exception handler is a major readability and maintainability concern. Overall, the snippet appears tangled and incomplete, scoring low on structure, clarity, and flow.

Run 1

Code Structure: The try/catch is recognizable, but the missing enclosing loop and unmatched closing brace make the snippet incomplete. Nesting: Shallow nesting is easy to follow. Clarity of intent: It appears to poll for a Control Panel link, but the empty catch silently suppresses errors and the loop limits are unknown. Code length: Concise, though brevity comes at the expense of context and error handling. Action granularity: Each statement performs one action. Reading flow: Checking, breaking, and sleeping form a logical polling sequence, but incomplete context and unexplained exception suppression interrupt understanding.

Run 2

Code Structure: The try/catch and conditional are recognizable, but an unmatched closing brace and missing enclosing loop make the snippet incomplete. Nesting: The conditional inside the try block is moderately nested but easy to follow locally. Clarity of intent: It appears to poll for a Control Panel link and exit a loop when found, but silently swallowing exceptions obscures failures and the retry behavior is unspecified. Code length: Short and reasonably concise, although the empty catch adds unexplained boilerplate. Action granularity: Each statement performs one action. Reading flow: The presence check followed by a one-second delay suggests a natural polling sequence, but excessive indentation and missing surrounding context disrupt readability.

Run 3

Code Structure: The visible control flow is simple, but the fragment lacks its enclosing loop and silently ignores exceptions. Nesting: A conditional inside a try block adds modest nesting. Clarity of intent: It appears to wait for a Control Panel link, but the missing context and empty catch obscure failure handling and termination behavior. Code length: Concise, with little unnecessary code. Action granularity: Each statement performs one action, making individual lines easy to follow. Reading flow: The check, break, and sleep form a natural polling sequence, but excessive indentation, a separated catch, and unmatched closing context interrupt readability.