Sample

Scalabrio59

Human rating uses the original dataset scale.

DatasetScalabrino
Human3.78
Lines13

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
10.1Δ 49.0
Scalabrino0.0770–1; higher is more readable
5.0Δ 54.0
Dorn0.1120–1; higher is more readable
17.6Δ 41.5
Mi0.0360–1; higher is more readable
16.6Δ 42.5
LLOC12Logical lines; fewer is more readable
57.3Δ 1.8
DeepSeek V4 Pro11.330–20; mean of three runs
27.6Δ 31.4
GPT-6.1 Sol14.330–20; mean of three runs
11.6Δ 47.5
BTTF0.3720–1; higher is more readable
10.1Δ 49.0
Human3.781–5; original rating
59.0

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.1383.869−45.668
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.655−6.982
Source linesThe number of non-empty source lines.13+5.2

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

Score0.077

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.121.923−1.499
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
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.9.244−0.281
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.123−0.256

Intercept 0.07 + feature contributions = -2.073 (log-odds).
Score = sigmoid(-2.073) = 0.112.

Score0.036
Score12
Run 1

The code is straightforward but repetitive and verbose. Each line performs a single action, which is good for granularity, but the repeated structure makes it unnecessarily long. The method name and parameters are clear, and the intent is understandable: testing different boolean array configurations with a transformer. However, the lack of abstraction (e.g., a helper method or loop) reduces readability. Nesting is minimal and structure is logical, but the duplicate boolean arrays (e.g., the last two are identical) indicate potential copy-paste errors. Formatting is mostly consistent, though spacing inconsistencies in some arrays slightly disrupt the reading flow. Overall, it's functional but not elegant.

Run 2

The code structure is straightforward: a single test helper method invoking tests with various boolean arrays. However, readability suffers from extreme repetition—eleven nearly identical calls differ only in array contents. This creates visual noise and obscures intent. Nesting is flat, which is positive, and each call is on one line, aiding action granularity. But the intent is ambiguous: why these specific boolean combinations? There are also apparent duplicates (e.g., {false, false, true} appears twice) and inconsistent spacing in array literals. The method name is descriptive, but the body could be vastly shortened with a loop or table of cases. Overall, the code is functional but not highly readable due to redundancy and unclear significance of test permutations.

Run 3

The code is structurally simple but suffers from repetitive, low-level action granularity. Each line performs a test with a slightly different boolean array, but the pattern is duplicated many times with subtle differences, making it hard to verify completeness at a glance. Nesting is flat and reading flow is straightforward, but clarity of intent suffers because the purpose of each boolean combination is not self-explanatory. A loop or helper method with named boolean arrays would significantly improve readability and maintainability. The method name is descriptive, but the body hides the test logic behind dense, repeated long lines.

Run 1

Code Structure: The method logically groups related test cases, but repeated call chains obscure the varying inputs. Nesting: Control flow is flat, although three nested method calls per statement add visual complexity. Clarity of intent: The descriptive method name identifies null-alias subset testing, but unnamed boolean positions make individual cases harder to interpret. Code length: Eleven nearly identical statements are unnecessarily repetitive; a table of cases and a loop would be more concise. The {false, false, true} case is duplicated. Action granularity: Each line represents one test case, but combines transformer creation, key construction, and test execution. Reading flow: The consistent pattern is easy to scan, though long lines, inconsistent spacing, and the lack of an obvious case ordering reduce readability.

Run 2

Code Structure: The method groups related test cases logically, but repeats the same call pattern and includes a duplicate boolean configuration. Nesting: Control flow is flat, although three nested method calls make each statement harder to scan. Clarity of intent: The descriptive method name conveys the null-alias testing purpose, but the boolean flags' meanings are not explained. Code length: Short overall, yet repetitive; a collection of configurations and a loop could reduce duplication. Action granularity: Each line represents one test case, but combines transformer creation, key construction, and test execution. Reading flow: The consistent pattern supports scanning, while long lines, inconsistent spacing, and the lack of labels make distinguishing configurations more difficult.

Run 3

Code Structure: A single method logically groups related test cases, but one boolean configuration is duplicated. Nesting: Control flow is flat, though three nested method calls make each statement harder to scan. Clarity of intent: The descriptive method name communicates the test purpose, but unlabeled boolean arrays obscure individual scenarios. Code length: Short overall, yet repetitive setup could be simplified with a configuration list and loop. Action granularity: Each line executes one test, although transformation creation and key construction are embedded in that statement. Reading flow: The consistent statement pattern supports scanning, but long lines, inconsistent spacing, and the duplicate case reduce readability.