Sample
Dorn/cuda/76
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0 | 0–1; higher is more readable | 25.1Δ 19.8 |
| Scalabrino | 0.756 | 0–1; higher is more readable | 83.7Δ 38.9 |
| Dorn | 0.429 | 0–1; higher is more readable | 35.7Δ 9.2 |
| Mi | 0.179 | 0–1; higher is more readable | 18.0Δ 26.9 |
| LLOC | 29 | Logical lines; fewer is more readable | 13.5Δ 31.3 |
| DeepSeek V4 Pro | 8.67 | 0–20; mean of three runs | 32.7Δ 12.1 |
| GPT-6.1 Sol | 13.67 | 0–20; mean of three runs | 37.7Δ 7.1 |
| BTTF | 0.444 | 0–1; higher is more readable | 32.0Δ 12.8 |
| Human | 3.27 | 1–5; original rating | 44.8 |
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) |
|---|---|---|
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 1413.399 | −46.642 |
| Source linesThe number of non-empty source lines. | 50 | +20 |
| Byte entropyHow varied the bytes in the source text are. Repeated bytes give a lower value; a more even mixture gives a higher value. | 5.175 | −7.763 |
Intercept 8.87 + feature contributions = -25.535 (log-odds).
Score = sigmoid(-25.535) = 0.
| Score | 0.756 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 100 | +0.809 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 51 | −0.769 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 43 | +0.75 |
| 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. | 99.961 | −0.569 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 43 | −0.566 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.128 | −0.298 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 49.891 | +0.288 |
Intercept 0.07 + feature contributions = -0.285 (log-odds).
Score = sigmoid(-0.285) = 0.429.
| Score | 0.179 |
|---|
| Score | 29 |
|---|
Run 1
The code shows basic structure with comments separating sections, but has notable readability issues. Indentation is inconsistent - mixing tabs and spaces throughout, with some blocks misaligned. Variable naming is clear in most cases (query, db, gapOpen) but abbreviations like 'mat' and 'dbSeqs' are slightly ambiguous without context. The cleanup loop is straightforward with one action per line, but the overall flow jumps between cleanup, initialization, and sorting functions without clear separation. Magic numbers and hardcoded printf strings reduce maintainability. The nested if statements are shallow and manageable, but the code lacks consistent formatting which makes scanning difficult. Some sections flow naturally while others feel disorganized due to the formatting inconsistencies.
Run 2
The code exhibits poor readability due to inconsistent indentation, mixing tabs and spaces, and unclear separation between functions. The first block appears to be cleanup code but lacks a clear function header, making its purpose ambiguous. Nesting is shallow but the flow is disorganized—there are abrupt transitions between memory management, function definitions, and comments. Action granularity is inconsistent: some lines bundle multiple operations while others are sparse. Reading flow is disrupted by misplaced comments and unclear function boundaries. The use of raw pointers and lack of context for variables like sortedSeqs, dbSeqs, and numSeqs further obscures intent. While individual lines are often simple, the overall structure feels tangled and fails to guide the reader through the logic naturally.
Run 3
The code shows mixed readability. Some parts follow good practices like clear comments ('free database', 'load database') and logical grouping of related operations. However, there are significant issues: inconsistent indentation (tabs vs spaces), fragmented structure showing code before function declarations, and missing context around the first block (appears to be part of a destructor without showing function signature). The main function has good sequential flow but mixes multiple printf statements with logic. Variable naming is acceptable but could be more descriptive. The quick sort comparison function is clean but lacks null-checking context. Overall, while the intent is generally clear due to comments and straightforward operations, the formatting inconsistencies and fragmented presentation reduce readability. The code achieves basic readability through simple operations and comments, but would benefit from consistent formatting, better structure, and clearer function boundaries.
Run 1
Code Structure: Cleanup and search execution are logically grouped, but the excerpt starts and ends mid-function, obscuring context. Nesting: Mostly shallow, with only a loop inside a conditional in cleanup. Clarity of intent: Function calls and comments communicate the main workflow, although names such as mat, db, and compar_ascent are abbreviated, and the comment 'generate the object' poorly describes dbsearch. Code length: Generally concise, though repeated printf calls add visual bulk. Action granularity: Statements largely perform one action per line, making operations easy to distinguish. Reading flow: The run method follows a natural sequence from configuration to loading and searching, but inconsistent indentation, spacing, and brace style interrupt readability.
Run 2
Code Structure: Cleanup, search execution, and comparison logic are separated, but the snippet starts and ends mid-function, limiting structural clarity. Nesting: Shallow conditionals and a single loop are easy to follow. Clarity of intent: Function calls and comments generally explain the workflow, though abbreviated names such as mat, db, and va, plus vague comments like 'generate the object,' reduce precision. Code length: Mostly concise, with some repetitive output statements and a redundant comparison to true. Action granularity: Each statement performs one action, making operations easy to distinguish. Reading flow: The run method follows a natural configuration, reporting, loading, and searching sequence; inconsistent indentation, spacing, and abrupt snippet boundaries interrupt that flow.
Run 3
Code Structure: Cleanup, search execution, and comparison logic are separated into recognizable sections, but the excerpt begins and ends mid-function. Nesting: Shallow conditionals and one loop keep complexity low. Clarity of intent: Function names, variable names, and comments generally convey purpose, though abbreviations such as mat and db and the comment 'generate the object' are vague. Code length: Mostly concise, with modest repetition in cleanup and status printing. Action granularity: Each statement performs a single action, making operations easy to follow. Reading flow: The run method proceeds naturally from retrieving settings to loading data and searching, but inconsistent indentation, spacing, and incomplete function boundaries interrupt readability.