Sample

Scalabrio158

Human rating uses the original dataset scale.

DatasetScalabrino
Human2.67
Lines38

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
40.2Δ 34.9
Scalabrino0.7870–1; higher is more readable
82.9Δ 77.6
Dorn0.7980–1; higher is more readable
91.0Δ 85.7
Mi0.3050–1; higher is more readable
58.8Δ 53.5
LLOC16Logical lines; fewer is more readable
40.2Δ 34.9
DeepSeek V4 Pro15.670–20; mean of three runs
72.9Δ 67.6
GPT-6.1 Sol16.330–20; mean of three runs
42.5Δ 37.2
BTTF0.490–1; higher is more readable
36.2Δ 30.9
Human2.671–5; original rating
5.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.1077.761−35.566
Source linesThe number of non-empty source lines.38+15.2
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.51−6.765

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

Score0.787

Feature contributions

FeatureValueContribution
(log-odds)
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.79+0.47
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.1+0.398
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.78.895+0.324
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.38−0.309
Indentation frequencyHow rapidly indentation changes from line to line.27+0.197
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.085+0.117
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.36.837+0.105

Intercept 0.07 + feature contributions = 1.371 (log-odds).
Score = sigmoid(1.371) = 0.798.

Score0.305
Score16
Run 1

The code is generally readable with clear structure, but has minor issues. The constructor is logically organized into sections (name, stimuli, residents, classifiers) separated by addSeparator calls. Nesting is flat. Intent is clear - constructing a property panel. Code length is moderate and appropriate. However, the last section has awkward indentation and alignment inconsistencies, and the long addField call for classifiers spans multiple lines with inconsistent formatting. Reading flow is natural except for the final block where indentation breaks. Overall, the code is understandable but formatting polish would improve readability.

Run 2

The code is generally well-structured and readable. It follows a logical order: fields, separators, actions. Nesting is minimal, limited to one scroll pane creation inside an addField call. Intent is clear — building a property panel with labeled sections. Action granularity is mostly one action per line, though a few lines combine object creation and method arguments. Reading flow is natural due to consistent addField/addAction patterns. Minor deductions: inconsistent indentation (e.g., 'a' variable, UMLMutableLinkedList continuation lines, addField call with different spacing), and some long lines that could be broken up. The local variable 'a' could be more descriptively named. Overall, the code is maintainable and understandable, but formatting inconsistencies slightly reduce readability.

Run 3

The code is generally well-structured, with a clear constructor that follows a logical sequence: it initializes the panel, adds fields in a consistent order, and includes separators to visually group related properties. Nesting is minimal and the indentation is mostly consistent, though there is a slight misalignment in the 'addField' and 'new UMLMutableLinkedList' blocks. Intent is clear—each method call describes its purpose, and localized labels improve clarity. Code length is appropriate, and action granularity is mostly one action per line, enhancing readability. The reading flow is natural: names, namespace, stimuli, residents, classifiers, and actions. Minor issues include inconsistent indentation and the use of inline object creation for 'JList' and 'JScrollPane', which slightly reduces readability. Overall, the code is readable and maintainable, with only minor formatting inconsistencies preventing a higher score.

Run 1

Code Structure: The constructor logically groups panel fields, separators, and actions, though classifier setup is visually less consistent. Nesting: Control-flow nesting is absent; nested constructor calls introduce only modest complexity. Clarity of intent: The documentation and descriptive method names clearly communicate panel construction, but variable 'a', abbreviated 'resList', and the apparent 'stimili' spelling reduce clarity. Code length: The implementation is concise for the UI configuration performed, with little unnecessary code. Action granularity: Statements generally perform one operation each; the classifier scroll-pane initialization combines several constructions but remains manageable. Reading flow: The top-to-bottom sequence naturally follows panel assembly, although inconsistent indentation, line wrapping, and extra blank lines interrupt readability.

Run 2

Code Structure: Logically organized constructor, with separators grouping related fields and actions collected at the end. Nesting: Flat control flow; nested object construction adds only modest visual complexity. Clarity of intent: Method calls and class names clearly convey property-panel setup, though variables such as 'a' and 'resList' are less descriptive, and 'stimili' label keys appear misspelled. Code length: Concise and appropriate for the task, with minor excess blank lines. Action granularity: Each statement performs one main setup action, although classifier-scroll construction combines several object creations. Reading flow: Generally natural, progressing from initialization through fields to actions, but inconsistent indentation and line wrapping interrupt scanning.

Run 3

Code Structure: The constructor logically groups panel fields, separators, and actions, though inconsistent indentation weakens visual organization. Nesting: Control flow is flat; only a few nested constructor calls add complexity. Clarity of intent: The documentation, method names, and labels clearly communicate panel construction, but variable names such as 'a' and 'resList' are less descriptive. Code length: The implementation is reasonably concise, with minor excess whitespace. Action granularity: Most statements perform one clear operation; the classifier-scroll construction combines several object creations but remains understandable. Reading flow: The sequence naturally progresses from basic properties to related elements and available actions, although uneven wrapping and indentation interrupt scanning.