Sample

Buse/60

Human rating uses the original dataset scale.

DatasetBuse
Human3.88
Lines4

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.9270–1; higher is more readable
88.9Δ 10.1
Scalabrino0.8350–1; higher is more readable
69.7Δ 9.1
Dorn0.6530–1; higher is more readable
58.6Δ 20.2
Mi0.7150–1; higher is more readable
83.8Δ 5.1
LLOC3Logical lines; fewer is more readable
88.9Δ 10.1
DeepSeek V4 Pro17.670–20; mean of three runs
96.0Δ 17.2
GPT-6.1 Sol200–20; mean of three runs
100.0Δ 21.2
BTTF0.6590–1; higher is more readable
85.9Δ 7.1
Human3.881–5; original rating
78.8

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.3.993−5.99
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.58.81−1.941
Source linesThe number of non-empty source lines.4+1.6

Intercept 8.87 + feature contributions = 2.54 (log-odds).
Score = sigmoid(2.54) = 0.927.

Score0.835

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 frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.5+0.859
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.0−0.804
Indentation frequencyHow rapidly indentation changes from line to line.1−0.703
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.1+0.398
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.3.815−0.357
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.075+0.213

Intercept 0.07 + feature contributions = 0.631 (log-odds).
Score = sigmoid(0.631) = 0.653.

Score0.715
Score3
Run 1

The code is highly readable due to its clean, flat structure and clear logical organization. It performs three distinct actions in sequence: retrieving a boolean response, removing a dialog, and returning the response. Each line represents a single action, contributing to excellent action granularity. The intent is unambiguous—obtain a response, clean up the dialog, and pass the result back. The code is concise with no unnecessary complexity or deep nesting, and the reading flow follows a natural top-to-bottom progression. The only minor improvement could be adding a blank line before the return statement to visually separate the cleanup action from the final return, but overall this is nearly ideal in terms of readability.

Run 2

The code is clear and concise. It performs two distinct actions—retrieving a boolean and removing the dialog—then returns the result. The single return statement keeps flow natural. Minor concerns: the variable name 'response' is slightly generic, and there is no error handling, but the structure is flat, with one action per line and clear intent. The leading indentation in the original is slightly off, but that is likely a formatting artifact from the snippet. Overall, the code is highly readable with no unnecessary complexity.

Run 3

The code is highly readable: it has a clear linear structure, no nesting, and each line performs a distinct action. The variable names are descriptive (response, warehouseDialog), and the sequence reads naturally: get response, remove dialog, return response. It is concise and avoids unnecessary complexity. Minor deduct: left blank line and indentation suggest part of a larger method, but as shown it is clean.

Run 1

Code Structure: A logically organized sequence retrieves the response, removes the dialog, and returns the result. Nesting: Flat, with no nested blocks. Clarity of intent: Descriptive method and variable names make the purpose clear. Code length: Three concise statements with no unnecessary code. Action granularity: Each line performs one distinct action. Reading flow: The straightforward progression from retrieval through cleanup to return is easy to follow.

Run 2

Code Structure: logically ordered steps retrieve the response, remove the dialog, and return the saved value. Nesting: entirely flat, with no nested control flow. Clarity of intent: descriptive names make the purpose clear, though the exact effect of remove depends on surrounding context. Code length: concise, with no unnecessary statements. Action granularity: each line performs one distinct action. Reading flow: natural and easy to follow, preserving the response before removing the dialog.

Run 3

Code Structure: A logically organized sequence retrieves the response, removes the dialog, and returns the result. Nesting: Flat, with no nested control flow. Clarity of intent: Descriptive names make the purpose clear. Code length: Three concise statements with no unnecessary code. Action granularity: Each line performs one action. Reading flow: The operations follow a natural order, preserving the response before removing the dialog.