Sample

Dorn/java/115

Human rating uses the original dataset scale.

DatasetDorn
Human3.41
Lines30

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.1220–1; higher is more readable
74.4Δ 17.8
Dorn0.4730–1; higher is more readable
40.1Δ 16.4
Mi0.8550–1; higher is more readable
99.7Δ 43.2
LLOC12Logical lines; fewer is more readable
53.6Δ 2.9
DeepSeek V4 Pro5.330–20; mean of three runs
12.8Δ 43.7
GPT-6.1 Sol12.330–20; mean of three runs
24.4Δ 32.2
BTTF0.5270–1; higher is more readable
52.1Δ 4.5
Human3.411–5; original rating
56.5

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)
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.501.483−16.549
Source linesThe number of non-empty source lines.30+12
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.199−6.299

Intercept 8.87 + feature contributions = -1.978 (log-odds).
Score = sigmoid(-1.978) = 0.122.

Feature contributions

FeatureValueContribution
(log-odds)
Indentation frequencyHow rapidly indentation changes from line to line.1−0.703
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.75.903+0.45
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.75.839+0.419
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.28−0.222
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.111−0.14
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.29+0.01
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.29.818+0.007

Intercept 0.07 + feature contributions = -0.108 (log-odds).
Score = sigmoid(-0.108) = 0.473.

Score0.855
Score12
Run 1

The code suffers from poor structure, excessive vertical whitespace, and inconsistent formatting, making it difficult to follow. The logic is scattered: a loop removes quotes one character at a time, then a separate loop trims trailing separators, with a `changed` flag set in multiple places. Intent is unclear from the snippet—there is no surrounding method or comments explaining why quotes are stripped. Nesting is shallow, but the bloated blank lines and indentation reduce readability. Action granularity is low, with simple operations stretched over many lines. Variable names like `temp` and `c` are generic, and `library_path` is reassigned mid-process. The reading flow is disjointed, with comments breaking the flow rather than clarifying. Overall, the code works but is overly verbose and poorly organized, earning a very low readability score.

Run 2

The code removes quote characters and trailing file separators from a path string. While the intent is partially documented, readability suffers from excessive vertical spacing, inconsistent indentation, and inefficient string concatenation in a loop. The logic is simple but spread across many unnecessary blank lines. Clarity could be improved with better variable names and a single-pass approach using StringBuilder or replaceAll. The stray brace and inconsistent formatting reduce structural coherence.

Run 3

The code has severe readability issues. It uses excessive blank lines and inconsistent indentation, disrupting the reading flow. Variable naming like 'c' and 'temp' is not descriptive. The logic is split into two separate loops where a single pass could suffice, making the intent harder to follow. The multiple statements per iteration in the loop (char extraction, condition, concatenation) reduce clarity. The comment is informative but surrounded by poor formatting. The trailing while loop is flat but the overall structure feels disorganized. Action granularity is mixed, with some lines doing multiple things. The code length is not excessive, but the layout and naming choices significantly hurt readability.

Run 1

Code Structure: Two logically ordered cleanup steps remove quotes and trailing separators, but the unfinished final conditional makes the snippet incomplete. Nesting: The loop contains a simple if/else, and the separator-removal loop is shallow. Clarity of intent: Operations are understandable, though the generic name temp, unexplained changed flag, and truncated comment weaken clarity. Code length: The logic is reasonably short, but excessive blank lines and whitespace make it unnecessarily spread out. Action granularity: Each statement performs a single action, making individual operations easy to follow. Reading flow: Processing proceeds naturally from character filtering to separator trimming, but inconsistent indentation, spacing, and the abrupt ending disrupt readability.

Run 2

Code Structure: Two sequential stages logically remove quotes and trailing separators, but the unfinished final conditional leaves the snippet incomplete. Nesting: The loop contains a simple if/else, keeping nesting manageable. Clarity of intent: The operations are understandable, but the generic variable name 'temp' and an awkward, incomplete comment reduce clarity. Code length: The snippet is relatively short, though excessive blank lines and a manual character-copying loop make it more verbose than necessary. Action granularity: Each statement performs one action, making individual steps easy to follow. Reading flow: Processing proceeds naturally from quote removal to separator trimming, but inconsistent indentation, tabs, and spacing interrupt the flow.

Run 3

Code Structure: Two logical stages remove quotation marks and trailing separators, but the unfinished final conditional makes the snippet incomplete. Nesting: Shallow loop-and-conditional nesting is easy to follow. Clarity of intent: The operations are understandable, though 'temp' is vague and the trailing-separator comment is awkward and incomplete. Code length: The logic is short, but excessive blank lines and verbose character filtering make it appear longer than necessary. Action granularity: Each statement performs one main action, supporting readability. Reading flow: Processing proceeds naturally from filtering to trimming, but inconsistent indentation, tabs, and spacing disrupt scanning.