Sample

Scalabrio35

Human rating uses the original dataset scale.

DatasetScalabrino
Human4.22
Lines16

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
53.8Δ 29.1
Scalabrino0.8550–1; higher is more readable
89.4Δ 6.5
Dorn0.2370–1; higher is more readable
29.1Δ 53.8
Mi0.4260–1; higher is more readable
69.8Δ 13.1
LLOC12Logical lines; fewer is more readable
57.3Δ 25.6
DeepSeek V4 Pro14.670–20; mean of three runs
57.8Δ 25.1
GPT-6.1 Sol180–20; mean of three runs
83.7Δ 0.8
BTTF0.5590–1; higher is more readable
59.8Δ 23.1
Human4.221–5; original rating
82.9

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.642.906−21.216
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.989−7.484
Source linesThe number of non-empty source lines.16+6.4

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

Score0.855

Feature contributions

FeatureValueContribution
(log-odds)
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
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.15+0.505
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.93.938−0.314
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.14.895−0.202
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.076+0.201
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.15+0.077

Intercept 0.07 + feature contributions = -1.17 (log-odds).
Score = sigmoid(-1.17) = 0.237.

Score0.426
Score12
Run 1

The code is relatively straightforward and readable: it creates properties, sets values, calls a method, and asserts results. Each action is generally on its own line, and the flow is logical. However, several issues reduce clarity. The keys 'rpt.1' through 'rpt.6' are cryptic and imply an unexplained naming convention or ordering requirement. The duplicate password_enc key (rpt.5 and rpt.6) is likely a copy-paste error and creates ambiguity about intent. The final assertion checks for 'create' but the setup only sets 'hibernate.connection.create', making the transformation unclear. The lack of comments or explanation around the 'rpt' prefix and the odd key structure hurts clarity of intent. Nesting is flat, and the structure is simple, but the unclear data setup and duplicate line reduce overall readability.

Run 2

The code is relatively readable due to its flat structure, one action per line, and clear purpose of setting and testing properties. However, readability is reduced by the repetitive property keys that encode an index (e.g., 'rpt.1.', 'rpt.2.'), which obscures intent and makes the test harder to scan. The duplicate line for 'password_enc' is confusing and appears to be a copy-paste error. The test method name 'testProperties' is vague, and the final assertion context is unclear because 'outputProps' contains only one property, yet we see seven properties being set. This mismatch makes the test's expected behavior ambiguous. The code would benefit from clearer naming, removal of duplication, and perhaps a comment explaining the purpose of the indexed keys.

Run 3

The code is generally readable with a clear structure: setup, method invocation, and assertions. It maintains flat nesting with no conditional blocks. Each property assignment is on its own line, and the action granularity is appropriate. However, there are notable issues: a duplicated property key ('rpt.6...' repeats the value from 'rpt.5...'), unclear prefix numbering (rpt.1 through rpt.6) that suggests configuration but isn't explained, and a minor inconsistency in spacing before parentheses in method calls (some have spaces, some don't). The intent is mostly clear—testing connection property extraction—but the duplicate line and numbered keys create ambiguity. Overall, the code is simple and follows a logical flow, but could benefit from removing the duplicate and clarifying the property naming convention.

Run 1

Code Structure: Clearly organized into setup, execution, and assertions. Nesting: Flat method body with no nested control flow. Clarity of intent: The assertions indicate that only the unprefixed connection property should be extracted, but the generic test name and unexplained numbered prefixes make the scenario less explicit. Code length: Short and focused, although the repeated encrypted-password entries add unexplained setup. Action granularity: Each statement performs one action on its own line. Reading flow: Natural progression with blank lines separating logical phases; minor spacing inconsistencies do not significantly hinder readability.

Run 2

Code Structure: Clearly organized into setup, execution, and assertions. Nesting: Flat method body with no nested control flow. Clarity of intent: The assertions show that only the unprefixed connection property should be extracted, though the generic test name and unexplained numbered prefixes make that purpose less explicit. Code length: Short and focused; repeated property assignments add modest verbosity but provide useful test inputs. Action granularity: Each statement performs one action on its own line. Reading flow: Natural top-to-bottom progression, with blank lines separating phases. A more descriptive test name and a brief explanation of the prefixed properties would improve readability.

Run 3

Code Structure: Clearly separates setup, execution, and assertions. Nesting: Flat, with no nested control flow. Clarity of intent: The assertions show that only the unprefixed connection property should be extracted, but the generic test name and unexplained numbered prefixes make the scenario less explicit. Code length: Short and focused; the repetitive property setup is reasonable for a test fixture. Action granularity: Each statement performs one action on its own line. Reading flow: Natural progression from input properties to the method call and expected results, aided by blank lines. A more descriptive test name and a brief explanation of the prefixed properties would improve readability.