Sample
int-eac468de711c-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.58 | 0–1; higher is more readable |
| Dorn | 0.272 | 0–1; higher is more readable |
| Mi | 0.025 | 0–1; higher is more readable |
| LLOC | 65 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 7.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12.33 | 0–20; mean of three runs |
| BTTF | 0.471 | 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. | 4496.558 | −148.386 |
| Source linesThe number of non-empty source lines. | 112 | +44.8 |
| 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.801 | −7.202 |
Intercept 8.87 + feature contributions = -101.918 (log-odds).
Score = sigmoid(-101.918) = 0.
| Score | 0.58 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 110 | +3.068 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 112 | −2.929 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 110 | −2.103 |
| 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. | 115.973 | −1.247 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 111.88 | +1.154 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 116 | +1.067 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.103 | −0.064 |
Intercept 0.07 + feature contributions = -0.984 (log-odds).
Score = sigmoid(-0.984) = 0.272.
| Score | 0.025 |
|---|
| Score | 65 |
|---|
Run 1
The code has clear logical organization as a Netty Socks5 message implementation and mostly follows good practices like validation, final fields, and a clear toString method. However, readability is significantly harmed by the numerous dead-code 'if (((0x... ^ 0x...) != 0)) { throw new AssertionError(); }' lines that are inserted throughout. These lines add clutter and break the natural reading flow but are not part of the actual logic. The constructor is concise in its validation steps but the address validation logic is nested with multiple if-else branches. Action granularity is fine in the toString method, but the dead-code checks appear on separate lines without improving clarity. Overall, the code would be quite readable if those weird assertions were removed, as they are the main source of noise.
Run 2
The code's logical structure is discernible but severely compromised by injected dead code (assertions that always evaluate false) scattered throughout, breaking reading flow and clarity. Nesting is moderate with nested address validation checks, but the dead code adds noise. Intent is clear for domain logic: validate SOCKS5 response fields and implement accessors. Code length is inflated by redundant assertion statements before every method. Action granularity is mixed: validations are compact, but the injected lines violate one-action-per-line principles. Reading flow is unnatural because the dead code interrupts every method body, forcing readers to mentally filter noise. While the class structure follows a standard immutable message pattern and field names are concise, the injected artifacts make the code appear obfuscated and unreadable for actual maintenance.
Run 3
The code is severely compromised by hundreds of obfuscated 'if (((0x.... ^ 0x....) != 0)) { throw new AssertionError(); }' lines inserted randomly throughout, disrupting every method. This destroys reading flow, violates one-action-per-line by adding meaningless noise, and obscures the original code's intent. Aside from this injection, the underlying structure and validation logic for the Netty SOCKS5 response are reasonable: fields are final, validation is grouped in the constructor, and methods are short. However, the injected dead-code checks create massive clutter, deeply break natural reading, and push the code to an extremely low readability level in its presented form.
Run 1
1. Code Structure: Fields, constructors, accessors, and string formatting are logically organized, but repeated dead assertion checks add clutter. 2. Nesting: Address validation reaches three conditional levels; otherwise methods remain flat. 3. Clarity of intent: Types, validation messages, and accessor names communicate purpose, while hexadecimal XOR conditions obscure intent despite always being false. 4. Code length: The core implementation is reasonably concise, but redundant assertions and extra blank lines unnecessarily extend it. 5. Action granularity: Most statements occupy separate lines, though assertion checks compress conditions and throws onto one line. 6. Reading flow: Conventional method ordering supports natural reading, but unindented assertion blocks repeatedly interrupt it and undermine consistent formatting.
Run 2
Code Structure: Fields, constructors, accessors, and string formatting are logically organized, but repeated dead assertion checks add clutter. Nesting: Address validation reaches three conditional levels, which is manageable but less direct than flatter validation. Clarity of intent: Names, validation messages, and conventional methods clearly describe a SOCKS5 response; constant XOR conditions obscure intent without contributing behavior. Code length: The core implementation is reasonably concise, but redundant checks and verbose string-building inflate it. Action granularity: Most lines perform one action, although the injected checks combine condition and throw on a single line. Reading flow: The normal class layout is easy to follow, but unindented assertion lines and inconsistent blank spacing repeatedly interrupt scanning.
Run 3
Code Structure: Fields, constructors, accessors, and string formatting are logically organized, but repeated dead assertions add clutter. Nesting: Address validation reaches three conditional levels, while most other methods remain flat. Clarity of intent: Descriptive types, validation messages, and straightforward accessors communicate purpose; hexadecimal XOR checks that are always false introduce distracting, unexplained logic. Code length: The core implementation is reasonably concise, but redundant assertions and extra blank lines unnecessarily expand it. Action granularity: Most statements perform one action per line; inline assertion blocks compress condition checking and throwing onto a single line. Reading flow: Conventional method ordering supports natural reading, but unindented assertions repeatedly interrupt it and undermine otherwise consistent formatting.