Sample
int-132eea2b01f2-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.476 | 0–1; higher is more readable |
| Dorn | 0.368 | 0–1; higher is more readable |
| Mi | 0.412 | 0–1; higher is more readable |
| LLOC | 31 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 11.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.67 | 0–20; mean of three runs |
| BTTF | 0.308 | 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. | 3336.564 | −110.107 |
| Source linesThe number of non-empty source lines. | 81 | +32.4 |
| 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.536 | −6.805 |
Intercept 8.87 + feature contributions = -75.641 (log-odds).
Score = sigmoid(-75.641) = 0.
| Score | 0.476 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 82 | −1.867 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 74 | +1.822 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 74 | −1.277 |
| 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. | 111.988 | −1.078 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 111.976 | +1.002 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 80.885 | +0.721 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.09 | +0.066 |
Intercept 0.07 + feature contributions = -0.541 (log-odds).
Score = sigmoid(-0.541) = 0.368.
| Score | 0.412 |
|---|
| Score | 31 |
|---|
Run 1
The code has a reasonable overall structure with clear class-level documentation, but several issues hurt readability. The most significant problem is the dead code — multiple lines like `if (((0xCA25 ^ 0xCA25) != 0)) { throw new AssertionError(); }` are confusing and serve no purpose. Nesting is moderate, with a callback inside `whenComplete` adding some depth. The `all()` method mixes streams with a regular for-loop for the same map, creating an unclear flow. Action granularity is inconsistent — some lines are concise while others are dense. Intent is partly unclear: the `all()` method has branching error message logic that could be simplified. Overall, the code works but lacks the simplicity and dead-code-free clarity needed for strong readability.
Run 2
The code has clear structure with logical method separation and documentation comments explaining intent. However, readability is significantly impacted by suspicious dead-code assertions like 'if (((0xCA25 ^ 0xCA25) != 0))' which add confusion. The 'all()' method mixes streaming and imperative loops, creating moderately tangled logic. Nesting in the lambda is reasonable but the error message concatenation inside 'all()' is awkward. Action granularity is mostly good, though some lines pack multiple operations. Overall the code is understandable but the dead assertions and slightly convoluted error handling prevent a higher score.
Run 3
The code has relatively clear intent with Javadoc and consistent naming, but several readability issues lower the score. The random `if (((0xCA25 ^ 0xCA25) != 0))` assertions are dead code and break the reading flow. The `partitionResult` method is moderately nested (lambda containing if/else chain) but remains understandable. The `all()` method could be cleaner: it streams to collect failed partitions, then separately loops to find the first error, which is slightly redundant and makes the logic harder to follow at a glance. Action granularity is mostly good—one meaningful operation per line—but the multi-line `throw` statements with string concatenation are somewhat cluttered. Overall, the code is structurally sound but could benefit from removing dead code and simplifying error-handling logic.
Run 1
Code Structure: The class is logically organized into a constructor and two focused result methods, but injected assertion checks add distracting clutter. Nesting: Callback conditionals and the loop in all() introduce moderate nesting, making error paths harder to scan. Clarity of intent: Descriptive names, types, and Javadocs clearly communicate asynchronous partition and aggregate results; the always-false hexadecimal checks obscure intent. Code length: Mostly compact, though redundant checks and repeated exception-message construction unnecessarily increase length. Action granularity: Most statements perform one action, and the stream pipeline is split clearly across lines; the single-line assertion blocks combine control flow and throwing. Reading flow: Methods follow a natural progression and maintain mostly consistent formatting, but unindented assertion blocks interrupt the flow, and nested error handling requires extra attention.
Run 2
Code Structure: The class is logically organized around a stored future and two result-access methods. Nesting: Callback logic and nested error-handling branches introduce moderate depth, especially in all(). Clarity of intent: Method names, types, and documentation explain the purpose, but repeated hexadecimal XOR checks are always false and add misleading noise. Code length: Mostly reasonable, though dead assertions and duplicated error-message construction unnecessarily expand it. Action granularity: Most statements perform one action per line; the unindented, single-line assertion blocks break this consistency. Reading flow: Constructor-to-method progression and stream formatting are natural, but abrupt indentation changes, redundant checks, and layered exception handling interrupt the flow.
Run 3
Code Structure: The class is logically organized around a stored future and two focused result methods. Nesting: Callback conditionals and the loop in all() introduce moderate nesting, but remain manageable. Clarity of intent: Descriptive names and Javadocs explain the asynchronous behavior; however, the hexadecimal XOR checks are always false and add misleading, unexplained noise. Code length: Mostly concise, though dead checks and repeated exception-message construction add unnecessary length. Action granularity: Most lines perform one clear action, while the single-line assertion blocks compress control flow and throwing together. Reading flow: Constructor-to-method organization and conventional future handling read naturally, but unindented assertion checks interrupt the flow, and inconsistent spacing reduces polish.