Sample
int-1b14add440e0-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.602 | 0–1; higher is more readable |
| Dorn | 0.214 | 0–1; higher is more readable |
| Mi | 0.371 | 0–1; higher is more readable |
| LLOC | 27 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 7.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13 | 0–20; mean of three runs |
| BTTF | 0.456 | 0–1; higher is more readable |
Views
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. | 2244.658 | −74.074 |
| Source linesThe number of non-empty source lines. | 58 | +23.2 |
| 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.966 | −7.45 |
Intercept 8.87 + feature contributions = -49.453 (log-odds).
Score = sigmoid(-49.453) = 0.
| Score | 0.602 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 58 | +1.269 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 58 | −0.91 |
| 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. | 47 | −0.628 |
| 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. | 97 | −0.443 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 57.735 | +0.397 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.123 | −0.25 |
Intercept 0.07 + feature contributions = -1.3 (log-odds).
Score = sigmoid(-1.3) = 0.214.
| Score | 0.371 |
|---|
| Score | 27 |
|---|
Run 1
The code has clear method names and a simple structure, but readability is severely damaged by the injected `if (((0x... ^ 0x...) != 0)) { throw new AssertionError(); }` lines. These meaningless, repetitive checks break the reading flow, add noise, and obscure actual intent. Indentation is inconsistent, especially in the `setup()` method, where the assertion is flush against the left margin. Action granularity is mostly one action per line except for the inline exception throws. Nesting is shallow, and code length is acceptable, but the artificial assertion blocks make the code feel longer and confusing. While the benchmark logic itself is clear, the odd inserted statements make it hard to read without filtering them mentally.
Run 2
The code has a clear class structure with logical separation of setup, teardown, and benchmark methods, and the benchmark methods are concise with good action granularity. However, readability is severely impacted by the repetitive and meaningless assertions inserted at the beginning of every method (e.g., 'if (((0x1EC ^ 0x1EC) != 0)) { throw new AssertionError(); }'). These lines add noise, disrupt reading flow, and obscure the actual purpose of each method. The overall intent is still understandable as a microbenchmark comparing unsafe and standard direct byte buffers, but the clutter makes the code harder to scan and maintain. Nesting levels are low, which is positive, but the unnecessary assertions dominate the visual layout and reduce the clarity of otherwise straightforward code.
Run 3
The code has a clear overall structure with separate setup, teardown, and benchmark methods, but readability is severely damaged by injected nonsense lines like 'if (((0x1EC ^ 0x1EC) != 0)) { throw new AssertionError(); }' which add noise and confuse intent. These lines break the natural reading flow and inflate code length unnecessarily. Nesting is shallow, and the benchmark methods are concise and action-per-line is mostly fine, but the repeated redundant assertions violate clarity and granularity principles. Without the injected lines, the code would be quite readable (15+), but as written, the clutter dominates the reader’s experience.
Run 1
Code Structure: Setup, teardown, and benchmark methods are logically separated, with clear annotations. Nesting: The code is mostly flat, with only shallow conditional blocks. Clarity of intent: Descriptive method names clearly identify benchmark operations, but repeated hexadecimal XOR checks are always false and obscure intent. Code length: The class is compact, though these redundant checks add unnecessary lines and visual noise. Action granularity: Most statements perform one action; set/get chains intentionally combine related operations, while inline conditional-and-throw statements reduce readability. Reading flow: Method ordering is natural and consistent, but unindented checks interrupt the flow and clash with otherwise conventional formatting.
Run 2
Code Structure: Setup, teardown, and benchmark methods are logically separated, with clear annotations. Nesting: Methods remain shallow; the single-level conditionals add little nesting complexity. Clarity of intent: Descriptive method names make the buffer comparison clear, but repeated hexadecimal XOR checks that are always false introduce confusing, purposeless noise. Code length: The class is compact, though the redundant checks unnecessarily lengthen every method. Action granularity: Most statements perform one action; chained write/read operations combine two related actions, while inline conditionals and throws reduce visual separation. Reading flow: The lifecycle-to-benchmarks ordering is natural, but unindented checks interrupt otherwise consistent formatting and force readers to repeatedly dismiss irrelevant logic.
Run 3
Code Structure: Setup, teardown, and benchmark methods are logically separated, with clear annotations. Nesting: The code is shallow, containing only simple conditional blocks. Clarity of intent: Descriptive method names make the benchmark comparisons clear, but hexadecimal XOR checks that always evaluate to false introduce misleading, purposeless logic. Code length: Methods are short, although repeated dead checks add unnecessary bulk. Action granularity: Most statements perform one action; chained write/read calls are understandable, while inline condition-and-throw statements compress multiple elements onto one line. Reading flow: The lifecycle-to-benchmark progression is natural, but unindented checks interrupt visual consistency and distract from the actual operations.