Sample

Buse/27

Human rating uses the original dataset scale.

DatasetBuse
Human3.75
Lines7

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.0720–1; higher is more readable
35.4Δ 35.4
Scalabrino0.7990–1; higher is more readable
60.6Δ 10.1
Dorn0.7650–1; higher is more readable
74.7Δ 4.0
Mi0.3320–1; higher is more readable
19.2Δ 51.5
LLOC4Logical lines; fewer is more readable
59.6Δ 11.1
DeepSeek V4 Pro170–20; mean of three runs
87.4Δ 16.7
GPT-6.1 Sol16.670–20; mean of three runs
53.5Δ 17.2
BTTF0.6010–1; higher is more readable
72.7Δ 2.0
Human3.751–5; original rating
70.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)
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.230.702−7.613
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.41−6.615
Source linesThe number of non-empty source lines.7+2.8

Intercept 8.87 + feature contributions = -2.558 (log-odds).
Score = sigmoid(-2.558) = 0.072.

Score0.799

Feature contributions

FeatureValueContribution
(log-odds)
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.8+0.753
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.70.875+0.663
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.71+0.341
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.6.806−0.315
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.5+0.306
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.091+0.062

Intercept 0.07 + feature contributions = 1.178 (log-odds).
Score = sigmoid(1.178) = 0.765.

Score0.332
Score4
Run 1

The code is well-structured with a clear, single purpose: computing the centered position of a window. It is flat with no nesting, concise, and each meaningful action is on its own line, aiding readability. The reading flow is natural, starting with retrieving the screen size, then calculating x and y. Minor issue: the method name has a typo ('comute' instead of 'compute'), but intent remains clear. Missing closing braces in the snippet are not counted as the provided code is incomplete. Overall, it is highly readable with a small flaw.

Run 2

The code is highly readable. It has a clear logical structure: a single method that computes a screen-centered point. Nesting is flat—no conditional or loop blocks. The intent is obvious from the method name, parameters, and the concise comment. Code length is minimal and appropriate for the task. Action granularity is one action per line, with each line performing a distinct calculation. Reading flow is natural, progressing from obtaining screen dimensions to calculating x and y coordinates. Minor deductions include a typo in the method name ('comuteDisplayPointCentre' instead of 'computeDisplayPointCentre') and 'Centre' uses British spelling, which may cause inconsistency. Also, the comment is slightly redundant given the self-documenting name.

Run 3

The code is well-structured with a clear purpose: centering a window on the screen. It uses flat nesting, concise calculations, and one action per line. The method name is mostly clear, though it contains a typo ('comute' instead of 'compute') and awkward phrasing ('DisplayPointCentre'). The reading flow is natural, progressing from fetching screen dimensions to calculating x and y coordinates. Missing closing braces and no return statement appear to be a truncation issue rather than the actual code's fault. Overall, it is highly readable and focused.

Run 1

Code Structure: The visible statements are logically organized, but the snippet lacks a return statement and closing brace. Nesting: Flat and easy to follow. Clarity of intent: The comment and coordinate calculations clearly convey window centering, though the method name contains a typo and 'dim' is somewhat vague. Code length: Concise, with no unnecessary statements. Action granularity: Each line performs one clear operation. Reading flow: Natural progression from obtaining screen dimensions to calculating horizontal and vertical offsets, but the incomplete ending interrupts the flow.

Run 2

Code Structure: logically organized into obtaining screen dimensions and calculating centered coordinates, but the snippet lacks a return statement and closing brace. Nesting: flat, with no unnecessary nesting. Clarity of intent: the comment and arithmetic clearly indicate window centering; however, the method name contains a typo ('comute'), and 'dim' is less descriptive than 'windowSize'. Code length: concise, with no redundant logic. Action granularity: each statement performs one distinct operation. Reading flow: natural progression from screen size to horizontal and vertical coordinates, though the incomplete ending interrupts the flow.

Run 3

Code Structure: The statements are logically organized, obtaining screen dimensions before calculating centered coordinates. Nesting: The method is flat, with no nested control flow. Clarity of intent: The comment and coordinate formulas clearly express the purpose, though the method name contains a typo ('comute') and 'dim' is less descriptive than 'windowSize'. Code length: The snippet is concise without unnecessary statements. Action granularity: Each line performs one clear action. Reading flow: The top-to-bottom sequence is natural and easy to follow. However, the provided snippet is incomplete: it lacks the Point return statement and closing brace, leaving the method's result and completion unstated.