Sample
Dorn/cuda/54
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0.987 | 0–1; higher is more readable | 95.3Δ 58.8 |
| Scalabrino | 0.79 | 0–1; higher is more readable | 85.7Δ 49.2 |
| Dorn | 0.868 | 0–1; higher is more readable | 90.8Δ 54.3 |
| Mi | 0.645 | 0–1; higher is more readable | 72.1Δ 35.7 |
| LLOC | 2 | Logical lines; fewer is more readable | 93.7Δ 57.2 |
| DeepSeek V4 Pro | 2.67 | 0–20; mean of three runs | 2.1Δ 34.4 |
| GPT-6.1 Sol | 8.67 | 0–20; mean of three runs | 5.0Δ 31.5 |
| BTTF | 0.6 | 0–1; higher is more readable | 73.0Δ 36.5 |
| Human | 3.11 | 1–5; original rating | 36.5 |
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.788 | −7.182 |
| Source linesThe number of non-empty source lines. | 10 | +4 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 41.209 | −1.36 |
Intercept 8.87 + feature contributions = 4.328 (log-odds).
Score = sigmoid(4.328) = 0.987.
| Score | 0.79 |
|---|
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. | 62 | +1.039 |
| 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. | 11 | +0.647 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.045 | +0.509 |
| 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.952 | −0.271 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 61.909 | +0.194 |
Intercept 0.07 + feature contributions = 1.884 (log-odds).
Score = sigmoid(1.884) = 0.868.
| Score | 0.645 |
|---|
| Score | 2 |
|---|
Run 1
This code snippet is extremely difficult to read. It lacks surrounding context, making it appear as a fragmented excerpt. The structure is tangled: a commented-out if statement precedes a fprintf call, followed by a closing brace and an unrelated function call (cpgebuf()), suggesting a poorly organized or broken block. There is a TODO comment explaining that file-closing code was removed to prevent segfaults, but this raises ambiguity about memory/resource management rather than clarifying intent. The code shows multiple actions per line in some cases, and the flow is completely disorganized without clear sequencing. Nesting is not deeply nested but the mix of commented code, stray braces, and unexplained function calls creates confusion. Clarity of intent is very low, and the excerpt appears to be a patch or leftover debugging artifact rather than clean, readable code.
Run 2
The code fragment is difficult to read due to missing context, commented-out code, and unclear intent. The structure appears tangled as it seems to be a snippet from a larger function. Nesting is not an issue, but clarity of intent is severely lacking: the purpose of the fprintf and cpgebuf() calls is ambiguous without surrounding logic. Code length is minimal, but this does not compensate for the lack of context. Action granularity is acceptable (one statement per line), but the reading flow is disrupted by TODOs, commented-out logic, and an incomplete brace. Overall, the fragment is nearly unreadable as standalone code.
Run 3
The code is a fragment lacking context, beginning with a commented-out conditional that hints at prior logic, immediately followed by a fprintf and a stray closing brace. It contains nested block closures with inconsistent indentation, making the structure ambiguous and tangled. The commented-out TODO explains a potential segfault but leaves the reader uncertain about resource management. Variable names like q, n_bins, channels, and cpgebuf are unexplained, obscuring intent. The fragment is short but disjointed, with multiple actions and closures crammed together. Reading flow is disrupted by mixed comment styles, dead code, and unclear boundaries, making it difficult to follow or verify correctness. Overall, the lack of context and consistent formatting renders this nearly unreadable.
Run 1
Code Structure: The fragment contains unmatched closing braces and lacks surrounding context, making its organization difficult to assess. Nesting: Indentation suggests multiple nesting levels, but their boundaries are unclear. Clarity of intent: Writing a newline is understandable, while cpgebuf() is opaque; the TODO explains why fclose() was disabled. Code length: The active code is concise, but commented-out logic adds clutter. Action granularity: Each active statement performs one action, which aids readability. Reading flow: Inconsistent indentation, dangling braces, and disabled code interrupt the flow and obscure the relationship between operations.
Run 2
Code Structure: Unmatched closing braces in this excerpt and inconsistent indentation obscure the surrounding organization. Nesting: Several scope endings suggest nesting, but missing context makes its depth difficult to follow. Clarity of intent: Writing a newline is clear, and the TODO explains why closing the file was disabled; however, cpgebuf() is unexplained and the commented condition creates ambiguity. Code length: The active code is concise, but obsolete commented-out code adds clutter. Action granularity: Each active statement performs one action, supporting readability. Reading flow: Mixed indentation, abrupt scope endings, and two disabled code blocks interrupt the flow.
Run 3
Code Structure: The fragment has inconsistent indentation and closing braces without visible opening context, obscuring its organization. Nesting: Visible nesting appears modest, but its boundaries are difficult to follow. Clarity of intent: fprintf clearly writes a newline, while cpgebuf() is opaque; the TODO explains why file closing was disabled, but commented-out logic creates ambiguity. Code length: The active code is concise, though obsolete comments add clutter. Action granularity: Each active statement performs one action per line. Reading flow: Mixed whitespace, unexplained block endings, and disabled code interrupt the flow.