Sample
int-a557f641ff26-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.648 | 0–1; higher is more readable |
| Dorn | 0.581 | 0–1; higher is more readable |
| Mi | 0.425 | 0–1; higher is more readable |
| LLOC | 19 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 11.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.33 | 0–20; mean of three runs |
| BTTF | 0.427 | 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. | 2262.88 | −74.675 |
| Source linesThe number of non-empty source lines. | 55 | +22 |
| 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.676 | −7.014 |
Intercept 8.87 + feature contributions = -50.819 (log-odds).
Score = sigmoid(-50.819) = 0.
| Score | 0.648 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 48 | +0.923 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 55 | −0.911 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 48 | −0.681 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 89.982 | +0.647 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 54.945 | +0.358 |
| 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. | 89.946 | −0.145 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.09 | +0.065 |
Intercept 0.07 + feature contributions = 0.327 (log-odds).
Score = sigmoid(0.327) = 0.581.
| Score | 0.425 |
|---|
| Score | 19 |
|---|
Run 1
The code is generally readable with clear structure and purpose. It uses standard Netty patterns with logical organization in the main method, showing resource management through try-finally. The intent is clear from comments and class documentation. However, there are several issues that reduce readability: obfuscated dead code (the AssertionError checks make no logical sense and add confusion), inconsistent indentation for those blocks, and a port constant initialized via System.getProperty on a static field which could surprise readers. The anonymous inner class for ChannelInitializer adds some nesting, though it's idiomatic Netty usage. The code length is appropriate and actions are reasonably granular. Reading flow is mostly natural except where the dead code interrupts it. Removing the dead code and maintaining consistent indentation would significantly improve readability.
Run 2
The code has a clear overall structure with a standard Netty server setup and good use of comments, but readability is significantly harmed by the presence of meaningless assertion lines (`if (((0xA04E ^ 0xA04E) != 0)) { throw new AssertionError(); }`) inserted randomly throughout. These lines disrupt the reading flow, add unnecessary nesting, and obscure the intent. While the core logic is concise and follows typical patterns, those odd lines and slight formatting inconsistencies (e.g., missing blank lines, indentation) reduce clarity. Without them, the code would score higher. The use of descriptive variable names and logical grouping of setup, binding, and shutdown steps is positive, but the inserted noise prevents a higher readability score.
Run 3
The code has some good structure: clear package/import organization, a simple class with a single static handler, and a try/finally block that makes resource cleanup obvious. However, several factors reduce readability. The `if (((0x... ^ 0x...) != 0)) { throw new AssertionError(); }` lines are inserted randomly throughout the code, breaking reading flow and obscuring intent. These are not meaningful domain logic and add clutter. Action granularity is mostly fine in the main method, but the unnecessary assertion lines violate the 'one action per line' principle by adding noise. Nesting is acceptable, though the anonymous `ChannelInitializer` adds minor depth. Code length is reasonable but not concise because of the repetitive assertion guards. Overall clarity is significantly lowered by these odd injected lines, making the code feel disorganized and ambiguous despite the standard Netty bootstrap pattern.
Run 1
Code Structure: Server configuration, binding, waiting, and cleanup are logically organized, but unrelated assertion checks disrupt the structure. Nesting: Mostly shallow; the anonymous channel initializer adds moderate nesting. Clarity of intent: Netty APIs and lifecycle comments make the server's purpose clear, while always-false hexadecimal XOR checks are unexplained distractions and names like b and f are vague. Code length: Generally concise, but three redundant checks and some verbose comments add unnecessary length. Action granularity: Most statements perform one action per line, and chained configuration is neatly split; assertion checks compress condition and throw onto one line. Reading flow: The lifecycle proceeds naturally and cleanup is explicit, but unindented checks interrupt otherwise consistent formatting.
Run 2
Code Structure: Server configuration, binding, waiting, and cleanup are logically organized, but unrelated assertion checks clutter the constructor and methods. Nesting: Mostly moderate, with a try/finally and an anonymous initializer adding manageable depth. Clarity of intent: Netty setup and comments explain the server lifecycle, but cryptic hexadecimal XOR conditions obscure intent; short names b and f are less descriptive. Code length: Generally concise, although always-false checks and excessive parentheses add unnecessary code. Action granularity: Most operations occupy separate lines, and the fluent configuration is well split; assertion statements compress conditions and throws onto single lines. Reading flow: The lifecycle reads naturally, but unindented assertion checks and inconsistent spacing interrupt the otherwise clear formatting.
Run 3
Code Structure: The server setup, binding, waiting, and cleanup are logically organized, but irrelevant assertion guards clutter the constructor and methods. Nesting: Mostly moderate; the anonymous initializer adds nesting without becoming difficult to follow. Clarity of intent: Netty API calls and lifecycle comments explain the server's purpose, while cryptic hexadecimal XOR conditions and abbreviated names b and f reduce clarity. Code length: Generally concise, but the always-false guards and extra blank lines are unnecessary. Action granularity: Most operations occupy separate lines, and the fluent configuration chain is well formatted; inline conditional-and-throw statements are less readable. Reading flow: The lifecycle progresses naturally and cleanup is clearly placed in finally, but unindented guards interrupt the otherwise consistent layout.