Sample
int-aa202c56c1ae-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.492 | 0–1; higher is more readable |
| Dorn | 0.251 | 0–1; higher is more readable |
| Mi | 0.491 | 0–1; higher is more readable |
| LLOC | 28 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 12 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14.33 | 0–20; mean of three runs |
| BTTF | 0.335 | 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. | 2725.365 | −89.937 |
| 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.575 | −6.862 |
Intercept 8.87 + feature contributions = -64.329 (log-odds).
Score = sigmoid(-64.329) = 0.
| Score | 0.492 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 59 | +1.304 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 59 | −1.053 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 59 | −0.933 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 58.942 | +0.414 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.113 | −0.156 |
| 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. | 84.983 | +0.066 |
Intercept 0.07 + feature contributions = -1.093 (log-odds).
Score = sigmoid(-1.093) = 0.251.
| Score | 0.491 |
|---|
| Score | 28 |
|---|
Run 1
The code has a reasonable overall structure, with clear method separation and logical handling of HTTP response and content. However, it contains some readability issues. The injected meaningless assertion lines ('if (((0xC09C ^ 0xC09C) != 0))...') are confusing and should be removed. Nesting is moderate—two nested loops for headers are acceptable but could be extracted for clarity. Intent is mostly clear: print response metadata, headers, and content, then close on completion. Code length is appropriate, though some formatting is inconsistent (indentation of the assertion lines, empty println calls). Action granularity is mostly one action per line, which is good. Reading flow is generally natural, but the odd assertions disrupt it. Overall, it's understandable but would benefit from removing noise and minor formatting cleanup.
Run 2
The code has reasonably clear structure with two logical blocks (HttpResponse and HttpContent handling) and acceptable nesting depth. Intent is understandable, but the presence of trivial assertion lines like `if (((0xC09C ^ 0xC09C) != 0)) { throw new AssertionError(); }` is confusing and adds noise. Variable names are clear, actions are mostly one per line, and reading flow is natural. However, the code is slightly verbose in debug output statements and would benefit from removing the nonsensical assertions. Error handling is straightforward. Overall readable but partially obscured by unnecessary and misleading lines.
Run 3
The code has a logical class structure and reasonably flat nesting (no deep if/else pyramids), but readability is severely hampered by several issues. The meaningless assertion lines (`if (((0xC09C ^ 0xC09C) != 0)) { throw new AssertionError(); }`) are confusing and have no apparent purpose. The action granularity is mostly one action per line, but the print statements are verbose and repeated, making the code longer than necessary. The reading flow is interrupted by these odd assertions and the excessive use of `System.err.println/print` calls without abstraction. Variable names are clear and the overall intent of handling HTTP responses and content is understandable, but the code could be improved by removing the spurious assertions, extracting print logic into helper methods, and using consistent formatting. Overall, it is understandable but unnecessarily cluttered.
Run 1
Code Structure: Response metadata, content handling, and exception handling are logically organized, but unrelated assertion guards disrupt the structure. Nesting: Header output reaches four control-flow levels, making it moderately nested; other paths are straightforward. Clarity of intent: Descriptive names and explicit output labels clearly convey HTTP logging, while hexadecimal XOR conditions obscure intent despite always being false. Code length: Mostly concise, with unnecessary guards adding noise. Action granularity: Most statements occupy separate lines, but the guards compress conditions and throws onto single lines. Reading flow: Processing naturally moves from response metadata to content and connection closure, but unindented guards and inconsistent spacing interrupt visual consistency.
Run 2
Code Structure: The handler is logically organized into response metadata, content processing, and exception handling. Nesting: Header printing reaches four control-flow levels, but the remaining logic is relatively flat. Clarity of intent: Descriptive names and output labels clearly communicate HTTP response logging; however, the always-false hexadecimal XOR checks are unexplained distractions. Code length: Mostly concise, with two unnecessary assertion checks and some repetitive printing. Action granularity: Most statements occupy separate lines, but the assertion checks compress conditions and throws onto single lines. Reading flow: Processing follows a natural metadata-to-content sequence, and exception handling is separate. Inconsistent indentation of the assertion checks and minor formatting inconsistencies interrupt an otherwise straightforward flow.
Run 3
Code Structure: Response handling, content handling, and exception handling are logically separated. Nesting: Header output reaches four control-flow levels, making that section somewhat harder to scan, while other paths remain shallow. Clarity of intent: Descriptive names and explicit output labels clearly convey HTTP response logging, but the always-false hexadecimal XOR assertions introduce confusing, purposeless noise. Code length: Mostly concise, with unnecessary assertions and some repetitive output statements. Action granularity: Most lines perform one action; the unindented assertion lines combine a condition and throw statement. Reading flow: Processing naturally progresses from status and headers to content and closure, but inconsistent indentation and distracting assertions interrupt readability.