Sample
int-fc4c97013606-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.627 | 0–1; higher is more readable |
| Dorn | 0.472 | 0–1; higher is more readable |
| Mi | 0.399 | 0–1; higher is more readable |
| LLOC | 12 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 12.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.33 | 0–20; mean of three runs |
| BTTF | 0.181 | 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. | 1011.815 | −33.39 |
| Source linesThe number of non-empty source lines. | 34 | +13.6 |
| 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.97 | −7.455 |
Intercept 8.87 + feature contributions = -18.375 (log-odds).
Score = sigmoid(-18.375) = 0.
| Score | 0.627 |
|---|
Feature contributions
| Feature | Value | Contribution (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. | 119.971 | −1.416 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 119.943 | +1.131 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 29 | +0.266 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 29 | −0.245 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.078 | +0.189 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 34 | −0.167 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 33.826 | +0.063 |
Intercept 0.07 + feature contributions = -0.11 (log-odds).
Score = sigmoid(-0.11) = 0.472.
| Score | 0.399 |
|---|
| Score | 12 |
|---|
Run 1
The code is generally clear in intent, with proper package/import structure and Javadoc comments. However, the presence of obfuscated dead-code assertions (e.g., `if (((0xCD11 ^ 0xCD11) != 0)) { throw new AssertionError(); }`) severely harms readability. These lines are meaningless to a human reader, add unnecessary noise, and disrupt flow. Nesting is minimal, and action granularity is mostly one action per line, but the artificial assertions break both structure and flow. Code length is reasonable, and the class design (stackless exception) is concise. Removing the injected dummy conditions would raise the score significantly.
Run 2
The code has a clear purpose and good Javadoc documentation, but readability is severely harmed by the presence of dead code blocks like `if (((0x494A ^ 0x494A) != 0)) { throw new AssertionError(); }` inserted after method openings. These add confusing noise, inflate line count, and break the natural reading flow. Structure is logical with a private constructor and static factory method, and nesting is minimal, but the fake conditionals introduce unnecessary complexity. Action granularity is mostly one per line, yet the assertions obscure intent. Overall, the core logic is understandable, but the artificial guards make the code appear obfuscated and unprofessional, reducing clarity and maintainability.
Run 3
The code is generally readable with clear structure and intent. The class has a single responsibility, methods are short, and action granularity is appropriate. However, readability is negatively impacted by the presence of dead code—three `if (((0x... ^ 0x...) != 0)) { throw new AssertionError(); }` blocks—which add noise and obscure intent without serving a functional purpose. Nesting is minimal, and the overall flow is logical. Javadoc is helpful. Score reduced mainly due to confusing redundant assertions.
Run 1
Code Structure: The class is logically organized into a constructor, override, and factory method, but poorly indented assertions disrupt consistency. Nesting: Minimal nesting makes the code easy to scan. Clarity of intent: The class name, documentation, and method names clearly describe a stackless exception; however, hexadecimal XOR conditions that are always false add confusing, purposeless noise. Code length: The implementation is compact, though the repeated dead assertions are unnecessary. Action granularity: Most statements occupy separate lines, but each assertion compresses a condition, block, and throw onto one line. Reading flow: The overall progression is natural, but inconsistent indentation and repeated opaque checks interrupt otherwise straightforward reading.
Run 2
Code Structure: The class is logically organized into a constructor, override, and factory method, but poorly indented injected guards disrupt consistency. Nesting: Mostly flat, with only shallow conditional blocks. Clarity of intent: Naming and documentation clearly explain the stackless exception, but hexadecimal XOR conditions that are always false introduce confusing, purposeless code. Code length: The implementation is concise overall, though three redundant guards add unnecessary length. Action granularity: Main operations occupy separate lines, while each guard compresses a condition and throw into one line. Reading flow: The method order is natural, but inconsistent formatting and repeated dead-code checks interrupt an otherwise straightforward implementation.
Run 3
Code Structure: The class is logically organized into a constant, constructor, override, and factory method, but redundant assertion guards introduce noise. Nesting: Mostly flat, with only shallow conditional blocks. Clarity of intent: Naming and documentation clearly explain the stackless exception, while hexadecimal XOR conditions obscure intent despite always evaluating to false. Code length: Short overall, but the three unreachable assertion statements are unnecessary. Action granularity: Most statements occupy separate lines, though each guard compresses a condition and throw into one line. Reading flow: The member order is natural, but inconsistent indentation and tightly packed guard formatting interrupt otherwise straightforward reading.