Sample
int-f84d36b2bf24-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.529 | 0–1; higher is more readable |
| Dorn | 0.455 | 0–1; higher is more readable |
| Mi | 0.446 | 0–1; higher is more readable |
| LLOC | 24 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 3.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13 | 0–20; mean of three runs |
| BTTF | 0.409 | 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. | 2220.059 | −73.262 |
| Source linesThe number of non-empty source lines. | 59 | +23.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.947 | −7.42 |
Intercept 8.87 + feature contributions = -48.212 (log-odds).
Score = sigmoid(-48.212) = 0.
| Score | 0.529 |
|---|
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. | 60 | −1.088 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 49 | +0.958 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 99.867 | +0.807 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 49 | −0.704 |
| 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.933 | −0.568 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 58.871 | +0.413 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.104 | −0.068 |
Intercept 0.07 + feature contributions = -0.18 (log-odds).
Score = sigmoid(-0.18) = 0.455.
| Score | 0.446 |
|---|
| Score | 24 |
|---|
Run 1
The code is severely compromised by the injected dead-code assertions (e.g., `if (((0x8B16 ^ 0x8B16) != 0)) { throw new AssertionError(); }`) placed in every method and constructor. These lines are meaningless, add noise, and obscure the actual logic. Without them, the class would be fairly readable: it has a straightforward adapter pattern, flat structure, good method names, and one primary action per line. However, as written, the code violates core readability principles—clarity of intent is effectively destroyed, and reading flow is disrupted by repetitive, pointless checks. The underlying logic is simple and concise, but the added artifacts make it appear tangled and ambiguous. The Javadoc is helpful, but it cannot offset the distracting assertions. Overall, this code is difficult to read not because of complexity, but because of deliberate obfuscation.
Run 2
The code's core logic (SessionToHeadersIteratorAdapter) is simple and readable, with a clear intent documented in the Javadoc. However, the presence of dead-code assertions like 'if (((0x8B16 ^ 0x8B16) != 0)) { throw new AssertionError(); }' in every method severely degrades readability. These lines add noise, break the reading flow, and obscure the actual logic. While the structure is flat and the methods are concise, the extraneous assertions make the code unnecessarily cluttered and confusing. Formatting inconsistencies (e.g., indentation of the constructor body) further detract from clarity.
Run 3
The code is heavily obfuscated by the presence of nonsensical assertions like 'if (((0x8B16 ^ 0x8B16) != 0)) { throw new AssertionError(); }' inserted at the start of nearly every method and constructor. These statements serve no purpose, break the natural reading flow, and make the code appear machine-generated or corrupted. While the underlying logic (adapter wrapping an iterator and converting values to a header format) is simple and the class structure is logically sound, the obfuscation severely damages clarity of intent and readability. The code also violates the 'action granularity' and 'code length' criteria by adding multiple useless lines per method. Without the injected assertions, the code would be fairly readable; with them, it is practically unreadable and would fail any serious code review.
Run 1
Code Structure: The adapter is logically organized into a constructor and small iterator methods, but repeated dead assertion checks introduce distracting clutter. Nesting: Minimal nesting keeps the code easy to scan. Clarity of intent: Descriptive names and documentation clearly explain the header-conversion purpose; opaque hexadecimal expressions obscure otherwise straightforward methods. Code length: The implementation is compact, but five always-false checks add unnecessary length. Action granularity: Most statements perform one action per line, while the inline assertion blocks compress conditionals and throws onto single lines. Reading flow: Delegation followed by conversion is natural, but unindented checks repeatedly interrupt the flow and undermine consistent formatting.
Run 2
Code Structure: The adapter is logically organized into a constructor and small iterator methods, but repeated dead-code assertions clutter every method. Nesting: Mostly flat, with only simple conditionals. Clarity of intent: Descriptive names and documentation clearly explain delegation and header conversion; opaque hexadecimal XOR checks introduce pointless ambiguity. Code length: The functional implementation is concise, but redundant assertions unnecessarily expand it. Action granularity: Most meaningful operations occupy separate lines, whereas each assertion compresses a conditional and throw onto one line. Reading flow: Method order and straightforward delegation are easy to follow, but unindented assertions repeatedly interrupt the flow and undermine formatting consistency.
Run 3
Code Structure: The adapter is logically organized into small methods with a single iterator field. Nesting: Minimal nesting keeps the actual behavior easy to follow. Clarity of intent: Descriptive names and class documentation explain delegation and header conversion, but repeated hexadecimal XOR checks introduce meaningless distractions. Code length: The implementation is compact overall, although every method contains an unnecessary assertion guard. Action granularity: Most meaningful operations occupy separate lines, but the inline guards combine a condition, block, and throw statement on one line. Reading flow: Method ordering and straightforward delegation are natural; however, unindented guards interrupt visual consistency and force readers to verify that the checks are always false.