Sample

Dorn/cuda/92

Human rating uses the original dataset scale.

DatasetDorn
Human1.96
Lines10

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett00–1; higher is more readable
37.9Δ 35.1
Scalabrino0.050–1; higher is more readable
2.7Δ 0.1
Dorn0.1250–1; higher is more readable
9.2Δ 6.4
Mi0.3480–1; higher is more readable
34.0Δ 31.2
LLOC3Logical lines; fewer is more readable
88.6Δ 85.8
DeepSeek V4 Pro4.670–20; mean of three runs
9.2Δ 6.4
GPT-6.1 Sol80–20; mean of three runs
3.2Δ 0.4
BTTF0.2450–1; higher is more readable
8.6Δ 5.8
Human1.961–5; original rating
2.8

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.711.107−23.467
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.905−7.358
Source linesThe number of non-empty source lines.10+4

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

Score0.05

Feature contributions

FeatureValueContribution
(log-odds)
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.202−1.022
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.0−0.804
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.11+0.647
Indentation frequencyHow rapidly indentation changes from line to line.9−0.426
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.818−0.351
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.9.75−0.274
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.9+0.214

Intercept 0.07 + feature contributions = -1.945 (log-odds).
Score = sigmoid(-1.945) = 0.125.

Score0.348
Score3
Run 1

This code is a macro fragment with poor readability. The CUDA_MD4 invocation takes 20 positional arguments with nondescript names (b0-b15, a-d), making intent unclear. checkHashMulti takes over 30 arguments spanning multiple lines without alignment or grouping, obscuring input/output roles. The backslash continuations and closing braces indicate a macro expansion, which further hides control flow. Multiple actions (function calls, counter increment, counter function call, brace closure) are packed together with minimal separation. While the line length is long, the issue is not mere verbosity but dense argument lists and ambiguous identifiers. Nesting is not the primary problem; the flat macro structure still severely impedes understanding due to lack of context and naming conventions.

Run 2

This code is extremely difficult to read. It consists of macro invocations with long, bloated parameter lists that provide no context about their purpose. The use of generic variables (b0-b15, p0-p15, a-d) makes it impossible to discern intent without external documentation. Multiple actions are crammed into single macro calls, violating action granularity. The backslash continuations and nested macro structures obscure the logical flow. The checkHashMulti call spans many lines but still reads as an impenetrable wall of arguments. There is no meaningful structure, indentation, or naming to guide the reader. Even for CUDA/kernel code, this level of opacity makes maintenance and debugging hazardous.

Run 3

The code is a macro fragment that is difficult to read due to many parameters, unclear naming (b0-b15, p0-p15), multi-line backslash continuations, and multiple actions per line (CUDA_MD4 call, checkHashMulti call, counter increments). The structure is tangled with excessive parameters, and nesting is unclear because the snippet shows only the tail end of a macro. Intent is ambiguous without surrounding context. The length is long but not necessarily bloated; however, the parameter lists overwhelm readability. Action granularity is poor - multiple operations are packed into single macro lines. Reading flow is disrupted by backslashes, line breaks, and dense argument lists. Overall this appears to be low-level CUDA/kernel code where macros hide complexity, making it hard to follow.

Run 1

Code Structure: A logical hash, check, count, and increment sequence is visible, but trailing braces and macro continuations obscure the surrounding structure. Nesting: The visible operations are flat, though the closing braces indicate omitted nesting. Clarity of intent: Function names suggest password hashing and matching, but terse variables and token-pasted macro names require external context. Code length: The snippet is short, yet long positional argument lists make it cumbersome to read. Action granularity: Each statement performs one main action, and the multiline call is reasonably separated. Reading flow: Execution order is natural, but inconsistent indentation, continuation backslashes, and numerous similar arguments disrupt scanning.

Run 2

Code Structure: A recognizable hash-check-increment sequence exists, but macro continuation syntax and unmatched closing braces obscure the surrounding organization. Nesting: The visible operations are flat, though the enclosing nesting cannot be assessed from this fragment. Clarity of intent: Function names suggest hashing, checking results, and advancing counters, but terse variable names and long positional argument lists make details ambiguous. Code length: The fragment is short, yet repetitive arguments create visual bulk. Action granularity: Each statement performs one main action, with the hash-check call reasonably split across lines. Reading flow: Execution order is straightforward, but inconsistent indentation, trailing backslashes, token pasting, and missing context interrupt readability.

Run 3

Code Structure: A recognizable sequence hashes, checks results, counts attempts, and increments counters, but the incomplete macro fragment and unexplained closing braces obscure organization. Nesting: The visible operations are flat, although surrounding nesting cannot be assessed. Clarity of intent: Function names suggest the purpose, but cryptic variables, long positional argument lists, and token-pasted macro calls make details difficult to interpret. Code length: The fragment is short, yet verbose parameter lists reduce concision. Action granularity: Each statement performs one main action, with continuation lines appropriately separating arguments. Reading flow: The execution order is logical, but inconsistent indentation, macro continuation backslashes, and missing context interrupt smooth reading.