Sample
Scalabrio143
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0.544 | 0–1; higher is more readable | 92.5Δ 57.5 |
| Scalabrino | 0.377 | 0–1; higher is more readable | 33.2Δ 1.8 |
| Dorn | 0.171 | 0–1; higher is more readable | 22.1Δ 12.8 |
| Mi | 0.453 | 0–1; higher is more readable | 73.9Δ 38.9 |
| LLOC | 3 | Logical lines; fewer is more readable | 96.5Δ 61.6 |
| DeepSeek V4 Pro | 17.67 | 0–20; mean of three runs | 96.0Δ 61.1 |
| GPT-6.1 Sol | 18 | 0–20; mean of three runs | 83.7Δ 48.7 |
| BTTF | 0.583 | 0–1; higher is more readable | 66.3Δ 31.4 |
| Human | 3.33 | 1–5; original rating | 34.9 |
Views
Select the downloaded ZIP or its extracted folder. Files stay in your browser.
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (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. | 4.808 | −7.212 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 190.398 | −6.283 |
| Source linesThe number of non-empty source lines. | 12 | +4.8 |
Intercept 8.87 + feature contributions = 0.175 (log-odds).
Score = sigmoid(0.175) = 0.544.
| Score | 0.377 |
|---|
Feature contributions
| Feature | Value | Contribution (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. | 129 | −1.799 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 1 | +1.001 |
| 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 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.044 | +0.516 |
| 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. | 10.785 | −0.259 |
Intercept 0.07 + feature contributions = -1.58 (log-odds).
Score = sigmoid(-1.58) = 0.171.
| Score | 0.453 |
|---|
| Score | 3 |
|---|
Run 1
The code is highly readable. It has a flat structure with a single-level logical organization: one method that constructs a strategy and delegates to a builder. Nesting is minimal—only a single method call with one wrapper indentation. The intent is clear from descriptive names like FetchStyleLoadPlanBuildingAssociationVisitationStrategy and MetamodelDrivenLoadPlanBuilder.buildRootEntityLoadPlan. Code length is concise with no unnecessary lines. Action granularity is one action per line: the strategy instantiation is separated from the return statement. Reading flow is natural—input delegation flows logically from creation to use. Minor deductions: the method signature is long, and the strategy constructor is split across lines in a slightly awkward way, which could slightly reduce scanning speed. Overall, the code is clean, well-named, and purpose-driven.
Run 2
The code is highly readable. It has a clear purpose: constructing and delegating to build a load plan. The structure is logical, with a single strategy object created and then used in a separate statement. Nesting is minimal, with only one level of parameter indentation. The method name and parameter types enable understanding without ambiguity. Code length is concise and appropriate for the task. Each line performs a distinct action—instantiation followed by delegation—which aids readability. The reading flow is natural, moving from setup to execution. Minor deduction due to slightly verbose parameter list and formatting, but overall clarity is excellent.
Run 3
The code is well-structured with a clear, single-purpose method that delegates to a strategy pattern. It has minimal nesting, good naming conventions, and each line performs a distinct action. The method signature is clear about inputs and outputs, and the two-line body keeps it concise. The slight readability penalty comes from the lengthy class name for the strategy object and the parameter list spanning multiple lines, which adds visual clutter. Overall, the code is clean, idiomatic Java, and easy to follow.
Run 1
Code Structure: Logically organized into strategy creation followed by load-plan construction. Nesting: Flat, with no branches or nested blocks. Clarity of intent: Descriptive method and class names clearly communicate the purpose, though the abbreviation 'sf' is less explicit. Code length: Concise, with no unnecessary logic; long type names add visual weight. Action granularity: Each statement performs one clear action, and constructor arguments are separated for readability. Reading flow: Natural top-to-bottom progression, slightly disrupted by uneven indentation and the standalone closing parenthesis.
Run 2
Code Structure: Logically organized into strategy creation followed by load-plan construction. Nesting: Flat, with no branches or loops. Clarity of intent: The method and builder names clearly convey its purpose, though 'sf' is abbreviated and the strategy class name is cumbersome. Code length: Concise, with no unnecessary logic; the multiline constructor call adds modest visual overhead. Action granularity: Each statement performs one clear action, with arguments separated for readability. Reading flow: Natural top-to-bottom progression from configuration to result, slightly weakened by inconsistent spacing and the separately placed closing parenthesis.
Run 3
Code Structure: Logically organized into strategy creation followed by load-plan construction. Nesting: Flat, with no conditionals or loops. Clarity of intent: The method and builder names clearly describe the purpose, though 'sf' is an abbreviated parameter name and the strategy type is verbose. Code length: Concise, containing only the necessary setup and return. Action granularity: Each statement performs one clear action; constructor arguments are separated for readability. Reading flow: Natural top-to-bottom progression, slightly disrupted by inconsistent indentation and the separately placed closing parenthesis.