Sample

Scalabrio112

Human rating uses the original dataset scale.

DatasetScalabrino
Human3.89
Lines22

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
46.7Δ 19.3
Scalabrino0.7350–1; higher is more readable
76.9Δ 10.8
Dorn0.4490–1; higher is more readable
50.3Δ 15.8
Mi0.5580–1; higher is more readable
79.4Δ 13.3
LLOC8Logical lines; fewer is more readable
76.9Δ 10.8
DeepSeek V4 Pro170–20; mean of three runs
90.2Δ 24.1
GPT-6.1 Sol170–20; mean of three runs
58.5Δ 7.5
BTTF0.530–1; higher is more readable
48.7Δ 17.3
Human3.891–5; original rating
66.1

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.781.886−25.802
Source linesThe number of non-empty source lines.22+8.8
Byte entropyHow varied the bytes in the source text are. Repeated bytes give a lower value; a more even mixture gives a higher value.5.166−7.75

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

Score0.735

Feature contributions

FeatureValueContribution
(log-odds)
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.95+0.728
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.94.909−0.355
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.22+0.257
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.20.844−0.118
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.102−0.048
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.20−0.038

Intercept 0.07 + feature contributions = -0.206 (log-odds).
Score = sigmoid(-0.206) = 0.449.

Score0.558
Score8
Run 1

The code is generally readable with clear logical structure and a straightforward if-else flow. Nesting is shallow, with clear intent—handling batch ID placeholders for single vs composite keys, with a dialect-specific branch. Action granularity is reasonable: each branch performs concise operations, mostly one per line. However, readability is slightly reduced by a few non-obvious method calls (e.g., `repeat`, `joinWithQualifier`) whose behavior must be inferred, and the inline comment 'non-composite' / 'composite' provides minimal context. String concatenation of `tuple` is compact but somewhat dense. Overall, structure and flow are good, but minor ambiguity in helper methods prevents a higher score.

Run 2

The code is well-structured and readable. The if-else logic clearly distinguishes between composite and non-composite key cases, and comments explain each branch. Nesting is shallow (max 2 levels), keeping the flow natural. Most lines perform a single logical action, and method names like `repeat`, `joinWithQualifier`, and `supportsRowValueConstructorSyntaxInInList` convey intent clearly. The code is concise without sacrificing clarity. Minor points: the composite branch could extract the tuple construction or repeated key check into helper methods for slightly better granularity, but the current level is acceptable. Overall, it is a clean, maintainable implementation.

Run 3

The code is highly readable with clear structure and purpose. It uses a single-level conditional to distinguish between composite and non-composite keys, then a second-level conditional for dialect support—flat nesting that is easy to follow. Each branch performs one logical action (string replacement) with concise, well-named helper methods (repeat, joinWithQualifier). Comments clarify intent without being verbose. Variable names are intuitive (keyColumnNames, alias, tuple, keyCheck). The method is compact but not dense, with no redundant code. Only minor nitpicks: the lack of a closing parenthesis is a formatting artifact, and the second comment block could benefit from a blank line for visual separation. Overall, the code demonstrates strong readability across all six criteria.

Run 1

Code Structure: Logically separates single-column and composite-key handling, with dialect-specific behavior grouped appropriately. Nesting: Moderate nesting is easy to follow, but early returns could eliminate the else blocks and flatten the method. Clarity of intent: The descriptive method name, parameter names, and brief comments clearly communicate SQL placeholder expansion; tuple construction requires slightly closer inspection. Code length: Concise, with no substantial redundancy beyond avoidable branching scaffolding. Action granularity: Each statement performs one primary action, although return statements combine replacement and repetition operations. Reading flow: The progression from simple keys to supported tuple syntax to the fallback is natural. Inconsistent qualification of helper methods slightly reduces stylistic consistency.

Run 2

Code Structure: Logically separates single-column keys from composite keys, then handles dialect support. Nesting: Limited to two conditional levels, though removing else blocks after returns would flatten the flow. Clarity of intent: Descriptive method and parameter names, plus brief comments, make placeholder expansion understandable. However, tuple construction appears to omit a closing parenthesis, creating uncertainty about the intended SQL. Code length: Concise, with little unnecessary code. Action granularity: Each statement performs one main action, although nested helper calls require some mental unpacking. Reading flow: Natural progression from the simplest case to alternatives; inconsistent qualification of repeat and replace slightly disrupts consistency.

Run 3

Code Structure: Logically separates single-column keys from composite keys, then branches on dialect support. Nesting: Moderate and manageable, though removing else blocks after returns would flatten the method. Clarity of intent: Descriptive method and variable names, plus brief comments, explain the placeholder-expansion purpose; the tuple construction lacks an obvious closing parenthesis, making its intent less certain. Code length: Short and focused, with little unnecessary code. Action granularity: Each statement performs one main action, although nested helper calls require some mental unpacking. Reading flow: Natural progression from the simplest case to dialect-specific alternatives; inconsistent qualification of repeat and replace slightly disrupts readability.