Sample

Dorn/java/149

Human rating uses the original dataset scale.

DatasetDorn
Human3.1
Lines10

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.2210–1; higher is more readable
76.3Δ 40.7
Scalabrino0.5760–1; higher is more readable
55.0Δ 19.4
Dorn0.6970–1; higher is more readable
65.5Δ 29.8
Mi0.6190–1; higher is more readable
66.6Δ 30.9
LLOC6Logical lines; fewer is more readable
72.8Δ 37.2
DeepSeek V4 Pro120–20; mean of three runs
53.6Δ 18.0
GPT-6.1 Sol13.330–20; mean of three runs
34.7Δ 1.0
BTTF0.4970–1; higher is more readable
44.6Δ 8.9
Human3.11–5; original rating
35.7

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

Intercept 8.87 + feature contributions = -1.257 (log-odds).
Score = sigmoid(-1.257) = 0.221.

Score0.576

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.50.909+1.509
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.1−0.703
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.9.865−0.272
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.8+0.237
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.089+0.08

Intercept 0.07 + feature contributions = 0.835 (log-odds).
Score = sigmoid(0.835) = 0.697.

Score0.619
Score6
Run 1

The code is fairly readable but has notable issues. Structure is logical, showing a clear workflow: click, wait, load modules, check visibility, conditionally assign. Nesting is minimal (one if-statement), which is good. Intent is mostly clear but ambiguous elements like the hardcoded string 'Search All Users' and the unicode escape sequence reduce clarity. Code length is concise, but there is unnecessary repetition in the clickAt call. Action granularity is mostly one action per line, though the clickAt call combines too many arguments. Reading flow is natural but disrupted by non-descriptive variable names like 'label=3' and inconsistent indentation. Overall, it is understandable but could be improved with clearer variable names, fewer magic values, and more descriptive comments.

Run 2

The code snippet demonstrates moderate readability with some clear intent but suffers from inconsistencies. Structure is logical: a click action, page wait, module load, visibility check, and conditional assignment flow in a sensible sequence. However, nesting is minimal and acceptable. Clarity of intent is partially clear—actions like clicking a link and checking visibility are evident—but the use of magic strings, Unicode characters, and unexplained variables like `label = 3` introduces ambiguity. Code length is concise, but unnecessary line breaks and indentation inconsistencies (e.g., the first line starts with excessive tabs) disrupt the natural reading flow. Action granularity is mostly one action per line, which is good, but the `RuntimeVariables.replace` call adds complexity without context. Overall, the code is functional but could be improved with better formatting, named constants, and comments explaining non-obvious logic.

Run 3

The code is moderately readable but has several issues. The structure is linear and logical, with clear method calls and a simple conditional, but it begins mid-action with no context. Nesting is low, which is good, but the indentation is inconsistent and overly deep. The intent is partially clear—clicking a link, waiting, loading modules, checking visibility—but the purpose of variables like 'label = 3' is ambiguous without surrounding code. Code length is reasonable, though the string escaping ('Advanced \u00bb') reduces clarity. Action granularity is mostly one action per line, but the 'if' block and assignment are terse. Reading flow is natural but fragmented, as it starts mid-sequence and leaves the conditional incomplete in the snippet. Overall, it is understandable but would benefit from better formatting, contextual clarity, and complete logic.

Run 1

Code Structure: The sequence logically groups navigation, page loading, module initialization, and a visibility check, but the unfinished conditional limits structural clarity. Nesting: Only one conditional level is shown, although excessive leading indentation makes the fragment harder to scan. Clarity of intent: Selenium calls and advancedVisible communicate purpose clearly; label = 3 is unexplained, and the numeric value obscures its meaning. Code length: The fragment is concise, with no obvious unnecessary statements. Action granularity: Each statement performs one primary action, and wrapped arguments remain readable. Reading flow: The operations follow a natural setup-then-check order, with blank lines separating stages, but the abrupt ending and missing closing brace interrupt the flow.

Run 2

Code Structure: The visible sequence is logically organized, but the unfinished conditional limits assessment. Nesting: Only one conditional level is shown, although excessive leading indentation adds visual clutter. Clarity of intent: Clicking a user-search link, waiting, loading modules, and checking visibility are clear; the meaning of label = 3 is unexplained. Code length: The snippet is concise, with reasonable line wrapping. Action granularity: Each statement performs one distinct action. Reading flow: Execution follows a natural progression, and blank lines separate stages, but the abrupt ending and magic number interrupt comprehension.

Run 3

Code Structure: The sequence logically clicks a link, waits for loading, initializes JavaScript modules, and checks visibility, but the fragment ends inside an unfinished conditional. Nesting: Shallow nesting is easy to follow, though excessive leading indentation adds visual noise. Clarity of intent: Selenium calls and advancedVisible communicate their purpose, but label = 3 is unexplained, and the escaped character slightly obscures the locator. Code length: Concise, with no obvious redundant steps. Action granularity: Each statement performs one main action; wrapped arguments remain readable. Reading flow: The execution order is natural and blank lines separate phases, but inconsistent indentation and the incomplete ending interrupt comprehension.