Sample

Buse/69

Human rating uses the original dataset scale.

DatasetBuse
Human2.93
Lines5

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.3050–1; higher is more readable
53.5Δ 19.2
Dorn0.5820–1; higher is more readable
48.5Δ 14.1
Mi0.5510–1; higher is more readable
45.5Δ 11.1
LLOC3Logical lines; fewer is more readable
88.9Δ 54.5
DeepSeek V4 Pro14.670–20; mean of three runs
55.1Δ 20.7
GPT-6.1 Sol180–20; mean of three runs
84.8Δ 50.5
BTTF0.4850–1; higher is more readable
44.4Δ 10.1
Human2.931–5; original rating
34.3

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)
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.126−6.189
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.166.797−5.504
Source linesThe number of non-empty source lines.5+2

Intercept 8.87 + feature contributions = -0.823 (log-odds).
Score = sigmoid(-0.823) = 0.305.

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.67+0.827
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.6+0.824
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.5−0.564
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.4.794−0.343
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.105−0.078

Intercept 0.07 + feature contributions = 0.329 (log-odds).
Score = sigmoid(0.329) = 0.582.

Score0.551
Score3
Run 1

The code is highly readable due to its clear structure and minimal nesting. It consists of two distinct actions: a validation check and a session commit, followed by object instantiation. Each line performs a single logical operation, maintaining good action granularity. The method and variable names are descriptive (checkColumnsMatch, commit, TableWorks), clearly conveying intent. Indentation is consistent with the surrounding context, and the continuation line aligns parameters neatly under the first argument, preserving reading flow. The code is concise without being cryptic, and there is no unnecessary complexity or tangled logic. The only minor deduction is that the checkColumnsMatch call spans multiple lines, which could slightly disrupt flow for some readers, but it's a standard and reasonable formatting choice for long method signatures.

Run 2

The code is short and has a clear purpose: it checks column matches, commits a session, and creates a TableWorks object. The reading flow is logical, moving from validation to commit to object creation. Nesting is nonexistent, and action granularity is acceptable. However, the variable names—t, tc, and session—are ambiguous without surrounding context, which obscures intent. The method checkColumnsMatch spans multiple lines, but this alignment is reasonable. Overall, readability is moderate: the structure is clean, but lack of descriptive naming keeps it from being highly readable.

Run 3

The code is relatively readable but lacks context. The method call `checkColumnsMatch` is clear, and actions are separated logically: checking columns, committing, and creating a new `TableWorks` object. Nesting is flat, and there is no ambiguity in the individual statements. However, variable names are heavily abbreviated (`t`, `tc`, `session`), which reduces clarity of intent without surrounding context. The structure is simple but relies on implicit knowledge of the classes and their relationships. Code length is concise, and reading flow is natural, moving from validation to commit to object creation. The score reflects that while the snippet is clean and simple, it is incomplete and depends on external definitions for full readability.

Run 1

Code Structure: A simple, logically ordered sequence of validation, commit, and object construction. Nesting: No nesting, making the snippet easy to scan. Clarity of intent: checkColumnsMatch and commit clearly express their actions, but abbreviated identifiers t and tc obscure context, and the reason for constructing TableWorks after committing is not evident. Code length: Concise, with no unnecessary statements. Action granularity: Each statement performs one primary action; the wrapped arguments remain readable. Reading flow: Natural top-to-bottom progression, with a blank line separating transaction completion from object construction.

Run 2

Code Structure: logically ordered validation, commit, and object creation, with whitespace separating steps. Nesting: flat, with no nested control flow. Clarity of intent: descriptive method and class names convey purpose, although abbreviations such as t and tc obscure context, and the reason for committing before creating TableWorks is not evident. Code length: concise, with no unnecessary statements. Action granularity: each statement performs one primary action; the wrapped argument list remains easy to follow. Reading flow: natural sequential execution and consistent formatting make the snippet readily readable.

Run 3

Code Structure: A simple, logically ordered sequence with whitespace separating initialization. Nesting: No nested control flow. Clarity of intent: The method and class names communicate column validation, transaction commit, and TableWorks initialization, though abbreviated variables such as t and tc and missing surrounding context obscure details. Code length: Concise, with no evident redundancy. Action granularity: Each statement performs one action; the wrapped method call remains easy to follow. Reading flow: Validation followed by commit and initialization reads naturally, although the reason for committing before constructing TableWorks is not explained.