Sample

Dorn/java/174

Human rating uses the original dataset scale.

DatasetDorn
Human3.51
Lines10

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.7560–1; higher is more readable
85.0Δ 20.3
Dorn0.5470–1; higher is more readable
47.1Δ 17.5
Mi0.6890–1; higher is more readable
80.5Δ 15.9
LLOC2Logical lines; fewer is more readable
93.7Δ 29.1
DeepSeek V4 Pro20–20; mean of three runs
0.6Δ 64.1
GPT-6.1 Sol7.330–20; mean of three runs
1.9Δ 62.7
BTTF0.5870–1; higher is more readable
70.5Δ 5.8
Human3.511–5; original rating
64.6

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

Intercept 8.87 + feature contributions = 1.132 (log-odds).
Score = sigmoid(1.132) = 0.756.

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.64+0.954
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.9+0.718
Indentation frequencyHow rapidly indentation changes from line to line.7−0.495
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.9.892−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.117−0.198

Intercept 0.07 + feature contributions = 0.188 (log-odds).
Score = sigmoid(0.188) = 0.547.

Score0.689
Score2
Run 1

The code is largely unreadable due to its lack of context and structure. It begins with stray closing braces and a catch block that silently swallows exceptions, which is a major clarity and logic flaw. The nesting appears deep but is impossible to evaluate properly because the surrounding methods and loops are missing. The Thread.sleep(1000) introduces an unexplained delay, adding to the ambiguity. The final selenium.clickAt call is the only functional line, but its purpose is unclear without surrounding code or variable definitions. Overall, the snippet fails on all criteria: structure is tangled, nesting is unclear, intent is ambiguous, and reading flow is disorganized.

Run 2

The snippet lacks a coherent structure, opening with stray closing braces and an empty catch block that obscures intent. The catch swallows exceptions without handling, making the code purpose ambiguous. Deep nesting is implied by multiple closing braces. The sleep call is inexplicable magic number usage. Only the final selenium action is somewhat clear, but overall the code is fragmented, poorly structured, and nearly unreadable.

Run 3

The code snippet is almost entirely unreadable due to a lack of context and poor structure. It begins with orphaned closing braces and an empty catch block, which suggests tangled logic and poor error handling. The Thread.sleep call is a single clear action, but its role in the broader loop is unclear. The clickAt call attempts a readable action, but the XPath selector and dynamic replacement string reduce clarity. Overall, the fragment fails criteria 1, 2, 3, 5, and 6. It is short (criteria 4), but brevity does not compensate for ambiguity and missing surrounding structure.

Run 1

Code Structure: The fragment starts with unmatched closing braces, obscuring its organization, and the empty catch block conceals error handling. Nesting: Indentation suggests several nesting levels, but the missing context makes their complexity difficult to assess. Clarity of intent: The Selenium click target is reasonably descriptive, but the purpose of the sleep and silent exception handling is unclear. Code length: The visible fragment is concise, although brevity does not compensate for missing context. Action granularity: Each statement performs a single action, and the wrapped click arguments remain readable. Reading flow: Leading closing braces and an empty catch interrupt the flow; the final click is straightforward.

Run 2

Code Structure: The fragment starts with unmatched closing braces and lacks surrounding context, making its organization difficult to assess. Nesting: Indentation suggests several enclosing blocks, but their depth and purpose are unclear. Clarity of intent: The Selenium click is understandable, but the empty exception handler silently discards failures, and the fixed sleep has no explanation. Code length: The fragment is short, though brevity does not compensate for missing context. Action granularity: Each visible statement performs one action; the wrapped click arguments remain readable. Reading flow: Closing braces followed by an empty catch interrupt the flow, while the sleep and click provide a straightforward ending.

Run 3

Code Structure: The fragment begins with unmatched closing braces, obscuring the surrounding organization, and silently catches all exceptions. Nesting: Indentation suggests several nested blocks, but their structure is not visible. Clarity of intent: The Selenium click target is fairly descriptive, but the empty catch and unexplained one-second sleep hide purpose and error-handling intent. Code length: The fragment is short, with little verbosity, though brevity does not compensate for missing context. Action granularity: Each statement performs one main action; the wrapped click call is easy to distinguish. Reading flow: Abrupt block closures and an empty exception handler interrupt the flow before the sleep and click.