Sample
int-3cb1aa1f7535-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.48 | 0–1; higher is more readable |
| Dorn | 0.268 | 0–1; higher is more readable |
| Mi | 0.418 | 0–1; higher is more readable |
| LLOC | 58 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 9 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12.67 | 0–20; mean of three runs |
| BTTF | 0.348 | 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. | 5403.91 | −178.329 |
| Source linesThe number of non-empty source lines. | 130 | +52 |
| 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.071 | −7.607 |
Intercept 8.87 + feature contributions = -125.066 (log-odds).
Score = sigmoid(-125.066) = 0.
| Score | 0.48 |
|---|
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. | 131 | −3.602 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 120 | +3.414 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 116 | −2.241 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 129.67 | +1.403 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 86.351 | +0.589 |
| 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. | 98.939 | −0.525 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.108 | −0.111 |
Intercept 0.07 + feature contributions = -1.004 (log-odds).
Score = sigmoid(-1.004) = 0.268.
| Score | 0.418 |
|---|
| Score | 58 |
|---|
Run 1
The code has a clear purpose and follows standard Java class structure, but readability is severely compromised by several factors. Every method begins with an identical, meaningless assertion check (`if (((0x... ^ 0x...) != 0)) { throw new AssertionError(); }`) that adds no value and disrupts the reading flow. This appears to be obfuscation or artifact code, making the actual logic harder to follow. The layout is inconsistent: some lines have excessive indentation, and the class-level Javadoc is helpful, but method-level comments are sparse. While delegation methods are concise and actions are generally one per line, the repeated boilerplate destroys clarity of intent. The code could be much more readable if these assertions were removed, the formatting cleaned up, and the logic allowed to stand on its own. It scores low not because the underlying structure is tangled, but because artificial noise and formatting issues obscure otherwise straightforward delegation code.
Run 2
The code is well-structured with clear class hierarchy and method purposes. However, readability is severely impacted by obfuscated unreachable assertions like `if (((0x494A ^ 0x494A) != 0)) { throw new AssertionError(); }` scattered throughout, which add noise and confusion. Nesting is shallow, which is good, and each method performs a single logical action, but these redundant checks make the code unnecessarily long and break the natural reading flow. The intent of the methods is clear, but the artificial clutter undermines clarity. Overall, the underlying code is readable, but the injected artifacts degrade it significantly.
Run 3
The code has a clear class structure and follows standard Java conventions for delegation patterns. However, readability is significantly reduced by the presence of meaningless obfuscated assertions like 'if (((0x494A ^ 0x494A) != 0)) { throw new AssertionError(); }' scattered throughout every method. These add noise and break the reading flow, making the code appear intentionally obscured. The nesting is shallow and method granularity is generally good, with one action per line. Intent is mostly clear from method names, but the injected junk lines obscure this. The code is not excessively long, but the repetitive assertion lines create unnecessary clutter. While the overall design is logical, the unexplained conditional checks hurt clarity and make the code harder to scan. Removing those would result in much more readable code.
Run 1
Code Structure: Logically organized as a wrapper with small, focused overrides, but repeated dead-code guards clutter every method. Nesting: Shallow throughout, with only a simple conditional for lazy initialization. Clarity of intent: Names, documentation, delegation, and explicit unsupported operations clearly communicate an unmodifiable sorted multiset; opaque hexadecimal XOR checks distract from that purpose. Code length: Core implementation is concise, but always-false assertion guards add unnecessary length. Action granularity: Most statements perform one action, though inline conditional-and-throw blocks and the combined assignment-and-return reduce readability. Reading flow: Method ordering and consistent delegation are natural, but unindented guards, extra blank lines, and repetitive noise repeatedly interrupt scanning.
Run 2
1. Code Structure: A logically organized wrapper class with focused methods, standard overrides, and clear delegation. 2. Nesting: Mostly flat; the lazy initialization branch is shallow and easy to follow. 3. Clarity of intent: Names and documentation clearly convey an unmodifiable sorted multiset, but repeated hexadecimal XOR checks obscure that purpose despite always evaluating to false. 4. Code length: Core methods are concise, but redundant assertion guards unnecessarily inflate nearly every method. 5. Action granularity: Most statements perform one action per line; inline conditional throws and the combined assignment-and-return reduce consistency. 6. Reading flow: Method ordering and delegation are natural, but unindented guards, repetitive dead code, and inconsistent spacing repeatedly interrupt reading.
Run 3
Code Structure: The class is logically organized into small overrides implementing an unmodifiable wrapper, although repeated dead-code checks clutter every method. Nesting: Shallow overall, with only a simple conditional for lazy initialization. Clarity of intent: Descriptive names, delegation, and documentation make the wrapper's purpose clear, but unexplained hexadecimal XOR checks introduce ambiguity despite always evaluating to false. Code length: Functional methods are concise; redundant assertions and extra blank lines unnecessarily expand the code. Action granularity: Most useful operations occupy separate lines, but inline conditional-and-throw statements and the combined assignment/return reduce separation. Reading flow: Method ordering is coherent, but unindented assertions repeatedly interrupt otherwise natural flow. The lazy-cache field's placement between methods also slightly disrupts organization.