Sample
int-fa45e100e271-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.641 | 0–1; higher is more readable |
| Dorn | 0.694 | 0–1; higher is more readable |
| Mi | 0.705 | 0–1; higher is more readable |
| LLOC | 13 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 9.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14 | 0–20; mean of three runs |
| BTTF | 0.464 | 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. | 1004.019 | −33.133 |
| 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.88 | −7.32 |
Intercept 8.87 + feature contributions = -17.982 (log-odds).
Score = sigmoid(-17.982) = 0.
| Score | 0.641 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 76.829 | +0.435 |
| 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. | 77 | +0.404 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 31 | +0.335 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 31 | −0.291 |
| 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.718 | +0.061 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.1 | −0.029 |
Intercept 0.07 + feature contributions = 0.819 (log-odds).
Score = sigmoid(0.819) = 0.694.
| Score | 0.705 |
|---|
| Score | 13 |
|---|
Run 1
The code has a clear class name and uses standard patterns for a Netty handler, which helps with intent. However, readability is severely impacted by three identical, nonsensical assertions inserted before every action. These lines (`if (((0xB07A ^ 0xB07A) != 0)) { throw new AssertionError(); }`) are dead code, visually noisy, and break the natural reading flow by adding irrelevant, confusing logic. The nesting level is low and each meaningful action is on its own line, but the insertion of the assertions makes the code unnecessarily long and cluttered. Without the assertions, the code would be concise and readable.
Run 2
The code is generally clear in intent and well-structured for a simple Netty handler. However, readability is significantly affected by the inclusion of meaningless 'if (((0xB07A ^ 0xB07A) != 0)) { throw new AssertionError(); }' lines in every method. These are redundant, confusing, and add unnecessary noise. The methods themselves are concise and follow a flat structure with minimal nesting, but the obfuscated assertions break the reading flow and make the code seem disorganized. Without these extra lines, the code would score much higher.
Run 3
The code has a clear overall structure, with a well-named class and method names that convey intent, and the code is relatively flat with little nesting. However, readability is severely undermined by the presence of nonsensical lines like `if (((0xB07A ^ 0xB07A) != 0)) { throw new AssertionError(); }` in every method. These lines appear to be autogenerated obfuscation or error, and they confuse the reader, breaking the natural flow and making the actual logic harder to follow. The `channelRead` method is concise, but the unnecessary overhead in each method adds clutter. The exception handling is straightforward, but the overall effect is that the code’s clarity is significantly reduced by the bogus assertions. Without those, it would be a clean, simple handler.
Run 1
Code Structure: Clearly organized into three standard event-handler methods, but poorly indented assertion checks disrupt consistency. Nesting: Shallow, with only one conditional level per method. Clarity of intent: The echo-server purpose and write, flush, and error-handling actions are clear; hexadecimal XOR conditions obscure intent and always evaluate to false. Code length: Short overall, but the three redundant checks add unnecessary noise. Action granularity: Main operations occupy separate lines, while each conditional and throw statement is compressed onto one line. Reading flow: Familiar method ordering and a helpful exception-handling comment support natural reading, but repeated, unindented dead code interrupts the flow.
Run 2
Code Structure: The class is logically organized into three standard event-handler methods. Nesting: Mostly flat, with only shallow conditional blocks. Clarity of intent: The echo-server purpose and write, flush, and exception-handling actions are clear, but hexadecimal XOR conditions that are always false introduce distracting, meaningless checks. Code length: Otherwise concise, though the redundant assertion statements unnecessarily lengthen each method. Action granularity: Main operations occupy separate lines, but each conditional and throw is compressed onto one line. Reading flow: Familiar method ordering and descriptive names support natural reading, while unindented assertion lines disrupt formatting and interrupt the straightforward handler logic.
Run 3
Code Structure: The class is logically organized into three standard event-handler methods. Nesting: Methods are shallow, with only single-level conditionals. Clarity of intent: The class name, documentation, and write/flush/close operations clearly describe an echo handler, but hexadecimal XOR checks obscure intent despite always being false. Code length: The implementation is short, yet the three redundant assertion guards add unnecessary code. Action granularity: Main operations occupy separate lines, but each guard compresses a condition and throw statement onto one line. Reading flow: Method order is natural, but unindented guards interrupt the otherwise consistent formatting and distract from the useful operations.