Sample

Scalabrio142

Human rating uses the original dataset scale.

DatasetScalabrino
Human3.11
Lines23

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
23.1Δ 1.8
Scalabrino0.0760–1; higher is more readable
4.5Δ 16.8
Dorn0.0620–1; higher is more readable
11.6Δ 9.8
Mi0.0950–1; higher is more readable
34.2Δ 12.8
LLOC15Logical lines; fewer is more readable
44.5Δ 23.1
DeepSeek V4 Pro14.330–20; mean of three runs
54.3Δ 32.9
GPT-6.1 Sol170–20; mean of three runs
58.5Δ 37.2
BTTF0.3460–1; higher is more readable
5.0Δ 16.3
Human3.111–5; original rating
21.4

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.1160.745−38.305
Source linesThe number of non-empty source lines.23+9.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.924−7.385

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

Score0.076

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.133−1.968
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.0−0.804
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.23+0.222
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.23−0.107
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.21.843−0.105
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.106−0.084
Indentation frequencyHow rapidly indentation changes from line to line.23+0.058

Intercept 0.07 + feature contributions = -2.717 (log-odds).
Score = sigmoid(-2.717) = 0.062.

Score0.095
Score15
Run 1

The code is well-structured and readable due to its clear sequence of actions, each performing a focused assertion or setup step. Variable names like 'ep', 'strategy', 'plan', 'rtn', 'entityReturn', 'fetch', and 'entityFetch' are descriptive enough within the test context. The nesting is minimal (mostly flat with a few method calls), and the intent is apparent: verifying the cascade-based load plan building for an entity. However, line wrapping in the strategy initialization makes the middle section slightly dense. The test ends with a logging action that is not an assertion, which could be confusing. Overall, the code adheres to the one-action-per-line principle and reads naturally from setup to verification, though it could benefit from blank lines between logical blocks (e.g., building plan vs. asserting returns) to improve readability further.

Run 2

The test method is logically structured and follows a clear sequence of setup, execution, and assertions. However, it suffers from excessive line breaks that fragment the reading flow, particularly in the strategy instantiation where each argument is on a separate line unnecessarily. This makes the code feel disjointed and harder to scan. The method is relatively flat with minimal nesting, which is good, but the granularity is inconsistent—some lines contain one action while others pack multiple operations. Variable naming is generally clear, though abbreviations like 'ep' and 'rtn' slightly reduce clarity. The final logging call adds length without clear test value. Overall, the code is functional but could benefit from more compact argument formatting and slightly more descriptive variable names to improve readability.

Run 3

The code has a clear linear flow and maintains flat nesting, which supports readability. Each assertion is on its own line, and method names clearly convey intent. However, the code is somewhat verbose due to repetitive type casting and assertions. Variable names like 'ep', 'rtn', and abbreviations reduce clarity slightly. The strategy object construction spans multiple lines but remains understandable. Overall, the structure is logical, but clarity could improve with more descriptive variable names and reduced repetition.

Run 1

Code Structure: Logically organized into setup, load-plan construction, assertions, and diagnostic logging, though blank lines could better separate these phases. Nesting: Flat execution with no nested control flow makes the test easy to follow. Clarity of intent: The test name, descriptive type names, and assertions communicate the purpose, but abbreviated variables such as ep and rtn and framework-specific terminology reduce immediate clarity. Code length: Concise for the behavior tested, with little unnecessary code. Action granularity: Each statement performs one main action; multiline constructor arguments improve readability. Reading flow: Naturally progresses from creating the plan to validating its return and nested fetch structure, then logging it. Minor formatting inconsistencies and repeated getFetches() calls slightly interrupt the flow.

Run 2

Code Structure: The test logically progresses from setup to plan construction, assertions, and diagnostic logging, though blank lines could better separate phases. Nesting: The method is flat, with no nested control flow. Clarity of intent: The test name and assertions communicate cascade-based load-plan validation, but abbreviated names such as ep and rtn and verbose framework types slightly hinder comprehension. Code length: The code is concise for its purpose, with little unnecessary content. Action granularity: Each statement performs one primary action, and the multiline constructor makes its arguments easy to scan. Reading flow: Assertions naturally follow the hierarchy from plan returns to entity fetches, although consistent spacing and clearer variable names would improve readability.

Run 3

Code Structure: Logically organized into setup, load-plan construction, assertions, and diagnostic logging, though spacing could better separate these phases. Nesting: Flat execution with no nested control flow makes it easy to follow. Clarity of intent: The test name and assertions convey verification of a cascade-based load plan, but abbreviations such as ep and rtn and lengthy framework type names slightly obscure meaning. Code length: Concise for the checks performed; intermediate variables make type assertions easier to understand. Action granularity: Each statement performs one primary action, with constructor arguments clearly split across lines. Reading flow: Progresses naturally from creating the plan to inspecting its root return and fetches, then logging the result. Minor formatting inconsistencies and limited explanation of the expected cascade behavior prevent a higher score.