Sample

Buse/22

Human rating uses the original dataset scale.

DatasetBuse
Human2.74
Lines8

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.0860–1; higher is more readable
37.4Δ 14.1
Scalabrino0.6070–1; higher is more readable
30.3Δ 7.1
Dorn0.6390–1; higher is more readable
57.6Δ 34.3
Mi0.1260–1; higher is more readable
7.1Δ 16.2
LLOC4Logical lines; fewer is more readable
59.6Δ 36.4
DeepSeek V4 Pro9.330–20; mean of three runs
11.6Δ 11.6
GPT-6.1 Sol15.670–20; mean of three runs
44.4Δ 21.2
BTTF0.5130–1; higher is more readable
49.5Δ 26.3
Human2.741–5; original rating
23.2

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.221.655−7.315
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.748−7.122
Source linesThe number of non-empty source lines.8+3.2

Intercept 8.87 + feature contributions = -2.366 (log-odds).
Score = sigmoid(-2.366) = 0.086.

Score0.607

Feature contributions

FeatureValueContribution
(log-odds)
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.99+0.793
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.9+0.718
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.99−0.528
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.7.88−0.3
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.084+0.122

Intercept 0.07 + feature contributions = 0.57 (log-odds).
Score = sigmoid(0.57) = 0.639.

Score0.126
Score4
Run 1

The code is a short method but lacks clear readability. It has minimal nesting and a flat structure, which is positive. However, it uses cryptic naming (mPanel, mOwner, mCloneData, mCurrentPanel) that obscures intent, and the argument list for setBorder is compressed with no spacing, reducing clarity. Action granularity is acceptable — one action per line — but the boolean condition for setSelectedTab is not shown, making the logic unclear. The method name suggests creation of a settings panel, but the code also mutates existing state (mPanel) rather than simply returning a new instance, which creates ambiguity about side effects. The Javadoc is redundant and adds little value. Overall, the snippet is functional but would benefit from better naming, formatting, and separation of concerns to improve readability.

Run 2

The code snippet is extremely short but lacks sufficient context for a robust evaluation. It demonstrates a single method with a clear purpose: creating and configuring a settings panel. The structure is flat with no nesting, and each line performs a distinct action, contributing positively to granularity and flow. However, the clarity of intent is undermined by the reliance on member variables (mPanel, mOwner, mCloneData, mCurrentPanel) whose definitions and state are not shown, making it ambiguous whether the method has side effects or is part of a larger unshown sequence. The method length is concise, but the abrupt truncation of the code block at the end (missing a closing brace and return statement) further obscures the complete logic. The code is readable at a surface level but impossible to fully assess without surrounding class context, dependencies, and the remainder of the method. These issues lower the score significantly from an otherwise straightforward snippet.

Run 3

The code is mostly clear and readable. It has a single public method with a straightforward purpose, and the steps within are simple and logically ordered. The use of named constants (e.g., Sizes.DLUY5, Sizes.DLUX5) improves clarity. However, the method name 'createSettingsPanel' suggests it should return a newly created panel, but the body assigns 'mPanel' as a side effect, which slightly reduces clarity of intent. Additionally, there is a missing closing brace in the provided snippet, which may indicate incomplete code rather than a readability flaw. Overall, the code is concise, with minimal nesting and good action granularity.

Run 1

Code Structure: The visible statements are logically organized, but the snippet lacks a return statement and closing brace. Nesting: Flat, with no nested control flow. Clarity of intent: The method name and panel setup clearly indicate creation of a settings panel, although the generic documentation adds little. Code length: Concise, with no unnecessary statements. Action granularity: Each statement performs one main action. Reading flow: Construction, border configuration, and tab selection follow a natural sequence. Missing spaces between border arguments slightly reduce readability, and the incomplete method prevents assessment of its full flow.

Run 2

Code Structure: The visible statements are logically organized, but the method is incomplete, lacking a return statement and closing brace. Nesting: Flat, with no nested control flow. Clarity of intent: The method name and panel initialization clearly indicate settings-panel creation, though the comment is vague and the declared return is not shown. Code length: Concise, with no unnecessary logic. Action granularity: Each statement performs one main action. Reading flow: Creation, border configuration, and tab selection follow a natural sequence; the long border expression and missing spaces after commas slightly reduce readability.

Run 3

Code Structure: The visible statements are logically organized: create the panel, set its border, then select a tab. However, the snippet omits the return statement and closing brace. Nesting: Flat and easy to follow, with no nested control flow. Clarity of intent: The method name and API calls clearly indicate settings-panel initialization, though the comment is generic and member names provide limited context. Code length: Concise, with no unnecessary logic. Action granularity: Each statement performs one clear action. Reading flow: Natural initialization order, but the long border-setting line and missing spaces after commas reduce scanability, while the incomplete ending interrupts the flow.