Sample

Dorn/cuda/2

Human rating uses the original dataset scale.

DatasetDorn
Human2.94
Lines10

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.8090–1; higher is more readable
86.1Δ 59.3
Scalabrino0.7440–1; higher is more readable
81.8Δ 55.0
Dorn0.7780–1; higher is more readable
74.7Δ 47.9
Mi0.6870–1; higher is more readable
79.9Δ 53.2
LLOC4Logical lines; fewer is more readable
82.7Δ 56.0
DeepSeek V4 Pro3.670–20; mean of three runs
6.1Δ 20.6
GPT-6.1 Sol8.330–20; mean of three runs
4.2Δ 22.6
BTTF0.4730–1; higher is more readable
37.9Δ 11.1
Human2.941–5; original rating
26.7

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.906−7.359
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.123.19−4.065
Source linesThe number of non-empty source lines.10+4

Intercept 8.87 + feature contributions = 1.446 (log-odds).
Score = sigmoid(1.446) = 0.809.

Score0.744

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.61.636+1.055
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
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.889−0.272
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.62+0.196
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.111−0.138

Intercept 0.07 + feature contributions = 1.253 (log-odds).
Score = sigmoid(1.253) = 0.778.

Score0.687
Score4
Run 1

This code fragment is nearly unreadable. It appears to be an incomplete excerpt, missing its opening braces and function context, making logical organization impossible to assess fully. The nesting is shallow but confusing due to unmatched braces. Clarity of intent is severely compromised: the purpose of variables like 'sum_activity', 'g_activity', 'sum_attenuation', and 'pixelNumber' is unclear without surrounding context. There is commented-out code left in place, which adds noise and ambiguity. Action granularity is acceptable—one main operation per line—but the reading flow is disrupted by the missing context, stray closing brace, and unclear index arithmetic. The code length is concise, but this does not compensate for the lack of structure and context. Overall, this snippet reads like a fragment pulled from a larger loop, and without its surrounding function, it fails nearly all readability criteria.

Run 2

The code snippet is practically unreadable due to several critical issues. The structure is fragmented, showing only the end of a loop and a function, with no context about variables, types, or surrounding logic. The indentation is inconsistent and misaligned, making the nesting level unclear. The intent is ambiguous: the loop's purpose is only hinted at by the variable names, but the commented-out line and the premature `return;` create confusion. The code length appears short here, but only because it is an incomplete fragment. Action granularity is somewhat acceptable (one main operation per line), but the reading flow is broken by the abrupt start, stray closing brace, and dead code. Overall, this is an unusable excerpt lacking the necessary surrounding structure to be considered readable.

Run 3

The code snippet is a fragment of a kernel or threaded function, making it difficult to evaluate fully without context. It shows poor readability due to several factors: the initial line uses an unexplained attenuation summation variable, heavy reliance on global variables (_activity, g_sinogram), and inconsistent indentation. The closing braces suggest deep nesting from omitted surrounding control structures. The commented-out debug line indicates leftover experimentation. Action granularity is reasonable (one main operation per line), but the overall logic is ambiguous without comments explaining the physics meaning of the attenuation sum or pixel indexing. Variable names like 'g_activity', 'sum_attenuation', and 'pixelNumber' are slightly descriptive but still cryptic. The stray closing brace and final 'return;' suggest a broken or truncated context, further hurting clarity. Reading flow is unnatural because the snippet begins mid-loop and lacks structure.

Run 1

Code Structure: The fragment ends several unseen blocks, making its organization difficult to assess; inconsistent indentation obscures block boundaries. Nesting: Multiple closing braces suggest nested control flow, but missing opening statements prevent evaluating its depth. Clarity of intent: Variable names suggest accumulating attenuated activity and storing a sinogram value, although the surrounding algorithm and index progression are unexplained. Code length: The active code is concise, but the commented-out assignment adds clutter. Action granularity: Each statement performs one clear operation. Reading flow: The accumulation, index update, and output assignment form a plausible sequence, but abrupt block endings, uneven spacing, and absent context interrupt readability.

Run 2

Code Structure: The visible accumulation and output assignment are logically related, but unmatched closing braces and missing surrounding context obscure the structure. Nesting: Indentation suggests nested blocks, though their depth and purpose cannot be determined. Clarity of intent: Variable names suggest attenuated activity accumulation into a sinogram, but the index stride and enclosing control flow are unexplained. Code length: The fragment is concise, although the commented-out assignment adds clutter and the final return may be redundant. Action granularity: Each statement performs one action, making individual lines easy to follow. Reading flow: Inconsistent indentation and operator spacing, abrupt block endings, and obsolete-looking commented code interrupt the otherwise straightforward calculation-to-assignment flow.

Run 3

Code Structure: The fragment ends several unseen blocks, making its organization difficult to assess; inconsistent indentation obscures boundaries. Nesting: Multiple closing braces suggest nested control flow, but the depth and context are unclear. Clarity of intent: Variable names indicate attenuation-weighted activity accumulation and sinogram output, though index progression and surrounding logic are unexplained. Code length: The active code is concise, but a commented-out assignment adds clutter. Action granularity: Each statement performs one clear action. Reading flow: Missing opening context, uneven spacing, and the obsolete comment interrupt an otherwise straightforward accumulation-and-store sequence.