Sample
int-3fa864eb91b0-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.334 | 0–1; higher is more readable |
| Dorn | 0.086 | 0–1; higher is more readable |
| Mi | 0.303 | 0–1; higher is more readable |
| LLOC | 34 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 3.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12.67 | 0–20; mean of three runs |
| BTTF | 0.284 | 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. | 4254.103 | −140.385 |
| Source linesThe number of non-empty source lines. | 77 | +30.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.787 | −7.18 |
Intercept 8.87 + feature contributions = -107.896 (log-odds).
Score = sigmoid(-107.896) = 0.
| Score | 0.334 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 77 | +1.926 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 78 | −1.725 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 77 | −1.346 |
| 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. | 110.974 | −1.035 |
| 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. | 76.875 | +0.665 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.109 | −0.114 |
Intercept 0.07 + feature contributions = -2.364 (log-odds).
Score = sigmoid(-2.364) = 0.086.
| Score | 0.303 |
|---|
| Score | 34 |
|---|
Run 1
The code suffers from severe readability issues. Obscure debug statements like 'if (((0x6410 ^ 0x6410) != 0)) { throw new AssertionError(); }' are scattered throughout, adding noise and confusion. While the main test logic is somewhat clear, the overall structure is disrupted by these artifacts. Action granularity and reading flow are compromised by the interleaved debug checks. Nesting is acceptable but the presence of redundant code makes the intent ambiguous. The code length is unnecessarily bloated due to these statements. Logical organization is hard to follow because the debug asserts break the flow, even though the core test steps are sequential. Overall, it is difficult to read and maintain.
Run 2
The code is very difficult to read due to injected dead code (`if (((0x6410 ^ 0x6410) != 0)) throw new AssertionError();`) at random places, which breaks flow and obscures intent. Method names are clear, but the overall structure is cluttered. Deep try-finally nesting and mixed levels of abstraction reduce clarity. The `newFactories` method has long generic types and loop conditions but remains somewhat flat. The `testMultipleConnect` method is relatively concise, yet the dead code injections force unnatural reading. Overall, the code is tangled and requires extra effort to understand despite having a straightforward test purpose.
Run 3
The code is severely compromised by scattered conditional checks like 'if (((0x6410 ^ 0x6410) != 0)) { throw new AssertionError(); }' that serve no functional purpose and massively hinder readability. These dead conditions appear randomly, destroying the natural reading flow and obscuring the actual logic. Additionally, the code has unnecessary verbosity (fully qualified generic types repeated instead of using diamond operator or imports), inconsistent indentation, and cryptic abbreviations (sc, cc, sb, cb). While the core test logic is somewhat understandable, the obfuscated checks and poor formatting make the code extremely difficult to follow. The overall structure is tangled, with unclear intent and poor action granularity. The code fails nearly all readability criteria due to what appears to be intentionally injected noise.
Run 1
Code Structure: Test execution, connection verification, cleanup, and factory filtering are logically separated, but repeated meaningless assertion guards add clutter. Nesting: Mostly moderate, with an anonymous runner, try/finally cleanup, and a loop containing a conditional. Clarity of intent: The test clearly checks that a second connection fails with AlreadyConnectedException; abbreviated variables and opaque hexadecimal guards reduce clarity. Code length: Reasonably short overall, but redundant guards and verbose generic declarations add unnecessary length. Action granularity: Most statements occupy separate lines, although the injected guards combine a condition and throw on one line; chained setup calls remain understandable. Reading flow: Setup, execution, assertion, and cleanup follow a natural sequence, but unindented guards interrupt that flow and inconsistent formatting makes scanning harder.
Run 2
Code Structure: Test execution, connection verification, and factory selection are logically separated, with cleanup in a finally block. Nesting: Mostly moderate, though the anonymous runner and loop containing a conditional add indentation. Clarity of intent: The test name and AlreadyConnectedException assertion communicate the purpose, but abbreviated variables and unexplained, always-false hexadecimal guards obscure it. Code length: Reasonably compact overall, but repeated dead guards and verbose generic declarations add unnecessary bulk. Action granularity: Most lines express one operation; inline guard-and-throw statements and chained calls combine several steps. Reading flow: The setup-connect-assert-cleanup sequence is natural, but unindented guards interrupt the flow, and densely grouped imports reduce visual organization.
Run 3
Code Structure: Test setup, execution, cleanup, and factory selection are logically separated, but repeated dead-code assertions disrupt organization. Nesting: Mostly moderate, with an anonymous runner, try/finally, and simple conditional blocks. Clarity of intent: The repeated-connect test and expected AlreadyConnectedException are clear; abbreviated names such as sb, cb, sc, and cc and meaningless hexadecimal expressions reduce clarity. Code length: Reasonably compact overall, though redundant assertions and verbose generic declarations add unnecessary length. Action granularity: Most statements occupy separate lines, but injected conditionals combine checks and throws on one line. Reading flow: The main test follows a natural setup-connect-assert-cleanup sequence, while inconsistent indentation and distracting assertions interrupt that flow.