Sample

Dorn/java/193

Human rating uses the original dataset scale.

DatasetDorn
Human2.96
Lines30

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
52.6Δ 25.3
Scalabrino0.5820–1; higher is more readable
57.8Δ 30.5
Dorn0.2350–1; higher is more readable
18.9Δ 8.4
Mi0.1580–1; higher is more readable
16.2Δ 11.1
LLOC17Logical lines; fewer is more readable
41.2Δ 13.9
DeepSeek V4 Pro40–20; mean of three runs
7.4Δ 19.9
GPT-6.1 Sol8.670–20; mean of three runs
5.0Δ 22.3
BTTF0.5370–1; higher is more readable
55.7Δ 28.4
Human2.961–5; original rating
27.3

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.687.479−22.687
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.5.04−7.56

Intercept 8.87 + feature contributions = -9.377 (log-odds).
Score = sigmoid(-9.377) = 0.

Score0.582

Feature contributions

FeatureValueContribution
(log-odds)
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.0−0.804
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.28−0.222
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.91−0.189
Indentation frequencyHow rapidly indentation changes from line to line.18−0.115
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.086+0.105
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.30−0.026
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.29.435+0.002

Intercept 0.07 + feature contributions = -1.179 (log-odds).
Score = sigmoid(-1.179) = 0.235.

Score0.158
Score17
Run 1

The code is largely unreadable due to several factors. The structure is tangled: the snippet begins mid-block with an unclosed parenthesis and out-of-context indentation. It mixes UI actions, wait calls, and logic without clear separation. Nesting is moderate but the if/continue and switch-like case create a disorganized flow. Intent is ambiguous because variable names like 'label' and magic strings such as '_15_rowIds' lack explanation. Code length is acceptable, but action granularity is inconsistent: some lines contain multiple actions (e.g., clickAt with two arguments), while others are single steps. Reading flow is unnatural because of abrupt jumps (case 2, continue) and missing context. Overall, the code appears to be a fragment of a larger, poorly maintained test script with hard-coded selectors and repeated boilerplate, making it very difficult to understand or maintain without significant effort.

Run 2

The code exhibits several readability issues. It starts with an indentation problem, suggesting a fragment or misaligned block. There is an inconsistent mix of actions: navigation, variable assignment, conditional logic, and UI interactions are combined with unclear separation. The presence of a boolean variable and a loop with a 'continue' statement makes the control flow confusing, especially with a switch-case structure that seems incomplete or fragmented. Deeply embedded method calls with chained assertions reduce clarity. Multiple actions occur per line in some cases, while others are broken awkwardly. Magic strings and hardcoded values obscure intent. The reading flow jumps between UI automation steps and logic without clear organization, making the code hard to follow and maintain.

Run 3

The code is poorly structured and difficult to read. It begins mid-action with an indented closing parenthesis and an unbalanced call to RuntimeVariables.replace, suggesting a truncated or broken snippet. Nesting is deep and control flow is unclear, especially with a 'continue' inside an if block and a switch-like 'case 2:' appearing without an enclosing switch statement visible. Variable naming is inconsistent ('webContent1Present' vs 'webContent2Present'), and the intent is ambiguous. Several lines combine multiple actions or are overly long. The reading flow is disrupted by abrupt jumps, inconsistent indentation, and unclear boundaries between actions. While individual statements like 'selenium.waitForPageToLoad' are recognizable, the overall logic is tangled and hard to follow.

Run 1

Code Structure: The Selenium operations form a recognizable sequence, but the fragment starts mid-statement and ends inside a case, obscuring its organization. Nesting: Visible nesting is shallow, though surrounding control structures are missing. Clarity of intent: Checking for web content and deleting selected items is understandable, but numeric labels, case transitions, and opaque element IDs make control flow less clear. Code length: The snippet is fairly concise, although repeated page-load waits and JavaScript initialization add boilerplate. Action granularity: Most statements perform one action, with reasonable line wrapping. Reading flow: Sequential browser actions read naturally, but inconsistent indentation, the abrupt case boundary, and label assignment followed by continue interrupt the flow.

Run 2

Code Structure: The visible snippet starts mid-statement and ends within a switch case, making its organization difficult to assess; label reassignment and continue suggest indirect control flow. Nesting: The visible conditional is shallow, although heavy indentation implies missing outer nesting. Clarity of intent: Selenium calls clearly indicate navigation and deletion of web content, but numeric labels, similar variable names, and opaque selectors obscure details. Code length: Repeated page-load waits and JavaScript initialization add verbosity and could be encapsulated. Action granularity: Most statements perform one action, which supports readability. Reading flow: Sequential browser operations are understandable, but abrupt case transitions, incomplete context, and uneven line wrapping interrupt the flow.

Run 3

Code Structure: The fragment begins mid-statement and ends inside a case, obscuring its overall organization; label reassignment and continue suggest indirect control flow. Nesting: The visible conditional is shallow and straightforward, although surrounding nesting is unknown. Clarity of intent: Selenium operations clearly navigate to and delete web content, but numeric labels, opaque element IDs, and similarly named presence variables weaken clarity. Code length: The snippet is fairly short, but repeated page-load waits and JavaScript initialization add boilerplate. Action granularity: Most statements perform one action, making individual steps easy to identify. Reading flow: The main interaction sequence is understandable, but inconsistent indentation, awkward line wrapping, the abrupt case transition, and incomplete boundaries interrupt reading.