Sample
Buse/21
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0.819 | 0–1; higher is more readable | 82.8Δ 15.2 |
| Scalabrino | 0.753 | 0–1; higher is more readable | 45.5Δ 22.2 |
| Dorn | 0.809 | 0–1; higher is more readable | 85.9Δ 18.2 |
| Mi | 0.651 | 0–1; higher is more readable | 65.7Δ 2.0 |
| LLOC | 4 | Logical lines; fewer is more readable | 59.6Δ 8.1 |
| DeepSeek V4 Pro | 2.67 | 0–20; mean of three runs | 0.0Δ 67.7 |
| GPT-6.1 Sol | 10.67 | 0–20; mean of three runs | 5.6Δ 62.1 |
| BTTF | 0.587 | 0–1; higher is more readable | 67.7Δ 0.0 |
| Human | 3.73 | 1–5; original rating | 67.7 |
Views
Select the downloaded ZIP or its extracted folder. Files stay in your browser.
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (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.52 | −6.781 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 78.138 | −2.579 |
| Source linesThe number of non-empty source lines. | 5 | +2 |
Intercept 8.87 + feature contributions = 1.511 (log-odds).
Score = sigmoid(1.511) = 0.819.
| Score | 0.753 |
|---|
Feature contributions
| Feature | Value | Contribution (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. | 40 | +1.971 |
| 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. | 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. | 4.732 | −0.344 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.094 | +0.031 |
Intercept 0.07 + feature contributions = 1.443 (log-odds).
Score = sigmoid(1.443) = 0.809.
| Score | 0.651 |
|---|
| Score | 4 |
|---|
Run 1
The code snippet is difficult to evaluate fully due to its brevity and apparent incompleteness, but the visible portion raises several readability concerns. The structure is fragmented, starting with an 'else if' that lacks surrounding context, making the logical organization unclear. Nesting is moderate but the intent of the block is ambiguous without seeing the full conditional chain. Variable names like 'opcode', 'type', and 'meth' are terse, and 'type' and 'meth' are declared but never assigned, which suggests the code is incomplete and disrupts clarity. The action granularity is poor because multiple declarations are crammed together, and the reading flow is unnatural, as the code seems isolated from a larger method. The snippet fails to communicate a clear purpose on its own, and the lack of context makes it nearly unreadable.
Run 2
This code fragment is nearly unreadable due to its lack of context and incomplete structure. It begins mid-statement with an 'else if', making it impossible to follow the logical flow. The nesting is unclear, and the action granularity is poor—the branches don't clearly show what happens for each condition. The variables 'opcode', 'type', and 'meth' are declared but unused, creating ambiguity. The string literals 'IRETURN' and surrounding logic suggest intent, but without surrounding code, the purpose is obscured. The reading flow is disrupted by the dangling block and missing closure. Overall, the code fails to provide a self-contained, logical structure, making it hard to evaluate readability beyond these obvious issues.
Run 3
This snippet is too incomplete to evaluate properly. It starts with an 'else if' condition, suggesting we are missing the preceding conditional context. The variables 'opcode', 'type', and 'meth' are declared but unused in the visible lines, creating ambiguity. The nesting appears shallow here, but without the surrounding structure, the overall readability cannot be fairly assessed. The intent is unclear because the logical purpose of checking 'isPrimitive(returnType)' and the role of the IRETURN opcode remain unexplained. There is a hard-coded value and a string type indicating domain logic, but they are not connected in a way that reveals meaning. The code is concise but incomplete, making the reading flow abrupt and disorganized. Overall, the fragment lacks sufficient context, structure, and complete logic to be considered readable.
Run 1
Code Structure: The else-if branch is logically organized, but the fragment is incomplete and lacks surrounding context. Nesting: Only one nesting level is visible, keeping complexity low. Clarity of intent: The primitive-return check and IRETURN initialization suggest return handling, but type and meth are vague and their intended use is not shown. Code length: The snippet is concise with no obvious redundancy. Action granularity: Each declaration or initialization occupies its own line. Reading flow: Consistent indentation and brace placement make the visible code easy to scan, though the missing branch body and closing brace prevent a complete understanding.
Run 2
Code Structure: The conditional branch groups primitive-return handling logically, but the fragment is incomplete and lacks surrounding context. Nesting: Only one block is visible, so nesting is shallow. Clarity of intent: isPrimitive(returnType) and IRETURN suggest return-instruction selection, but type and especially meth are vague, and their purpose is not shown. Code length: The visible code is concise, though insufficient to understand the full operation. Action granularity: Each declaration occupies its own line, making individual actions easy to distinguish. Reading flow: The condition, opening brace, and declarations follow a natural sequence, but the leading else if and missing continuation interrupt standalone comprehension.
Run 3
Code Structure: The conditional branch and variable declarations are locally organized, but the fragment omits surrounding logic and its completion. Nesting: Only one visible block keeps nesting shallow. Clarity of intent: Checking a primitive return type and initializing a return opcode suggests bytecode handling, but generic names such as type and meth leave their roles unclear. Code length: The fragment is concise, though incomplete. Action granularity: Each declaration or initialization occupies its own line. Reading flow: Consistent indentation and brace placement help scanning, but the opening else if and unfinished block prevent understanding the full flow.