Sample
int-7608f4db2988-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.867 | 0–1; higher is more readable |
| Dorn | 0.596 | 0–1; higher is more readable |
| Mi | 0.332 | 0–1; higher is more readable |
| LLOC | 22 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 10.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14.33 | 0–20; mean of three runs |
| BTTF | 0.522 | 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. | 1518.071 | −50.096 |
| Source linesThe number of non-empty source lines. | 58 | +23.2 |
| 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.445 | −6.667 |
Intercept 8.87 + feature contributions = -24.693 (log-odds).
Score = sigmoid(-24.693) = 0.
| Score | 0.867 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 57 | −0.982 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 96 | +0.744 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 42 | +0.716 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 41 | −0.52 |
| 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. | 95.966 | −0.4 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 57.773 | +0.398 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.06 | +0.363 |
Intercept 0.07 + feature contributions = 0.389 (log-odds).
Score = sigmoid(0.389) = 0.596.
| Score | 0.332 |
|---|
| Score | 22 |
|---|
Run 1
The code has a clear class structure with documented methods, which aids understanding. However, readability is significantly harmed by the presence of dead-code assertions like `if (((0x3D34 ^ 0x3D34) != 0))` at the start of every method. This obfuscated, no-op line creates unnecessary noise, breaks the reading flow, and violates the 'concise' and 'clarity of intent' criteria. Ignoring this line, the logic is straightforward with a shallow nesting depth. Methods are short, but the `isTimeoutException` method performs multiple actions (null checks, type casting) on single lines, which slightly reduces action granularity. While the code is logically organized, the unnatural assertion line disrupts the overall readability, preventing a higher score.
Run 2
The code has clear intent and simple purpose with three static factory/utility methods. However, readability is severely impacted by obvious dead code (e.g., 'if (((0x3D34 ^ 0x3D34) != 0)) throw new AssertionError();') inserted in three places. These nonsensical conditions break reading flow and add noise. Line 16 demonstrates poor indentation, disrupting visual structure. The first method has moderate nesting (if inside if), though still manageable. Concise overall length is good. Method names are fairly clear, but the OptionalInt parameter in newPreMigrationException is unused, creating ambiguity. Action granularity is generally one action per line, except the odd assertion lines. While the core logic is simple, the obfuscated assertions and formatting issues considerably reduce readability.
Run 3
The code has good documentation (Javadoc), clear method names, and relatively flat structure. However, it is severely degraded by bizarre no-op 'if (((0x3D34 ^ 0x3D34) != 0)) { throw new AssertionError(); }' lines inserted before each method body. These are dead code, misleading, and break natural reading flow. They likely exist as an anti-tampering or code-obfuscation artifact, but they severely harm readability. Nesting is mostly flat and intent is clear, but action granularity is inconsistent — multiple early returns on the same line in isTimeoutException reduce clarity. Overall the code seems intentionally cluttered, making it hard to trust or maintain. Removing those odd assertions and formatting the early returns would improve readability substantially.
Run 1
Code Structure: Three focused methods are logically organized, though repeated dead-code assertions add clutter. Nesting: Shallow conditionals and early returns keep complexity low. Clarity of intent: Descriptive method names, Javadoc, and explicit exception messages communicate purpose well; hexadecimal XOR checks obscure intent despite always being false. Code length: Mostly concise, but redundant assertions and unnecessary else branches increase length. Action granularity: Most statements occupy separate lines, while inline conditionals and assertions compress control flow onto single lines. Reading flow: Method order and straightforward branching are natural, but unindented assertions interrupt the flow and inconsistent formatting reduces readability.
Run 2
Code Structure: Three focused, documented utility methods provide logical organization, but unindented assertion checks disrupt consistency. Nesting: Mostly shallow conditionals, with only modest nesting when unwrapping ExecutionException. Clarity of intent: Descriptive method names, Javadocs, and exception messages explain the intended behavior; hexadecimal XOR expressions obscure intent despite always being false. Code length: Methods are short, but repeated dead assertion checks and unnecessary else blocks add clutter. Action granularity: Most statements occupy separate lines, while inline guards and assertion blocks compress control flow and actions onto single lines. Reading flow: The methods follow natural check-and-return sequences, but inconsistent indentation and unexplained dead code interrupt scanning.
Run 3
Code Structure: Three focused methods provide logical organization, but repeated dead assertion checks add noise. Nesting: Shallow conditionals and early returns keep complexity low. Clarity of intent: Descriptive method names, documentation, and exception messages explain the intended behavior; hexadecimal XOR expressions obscure it unnecessarily. Code length: Methods are short, though redundant assertions and some verbose documentation add avoidable length. Action granularity: Most lines contain one action, but inline conditional returns and assertion blocks compress multiple elements onto single lines. Reading flow: Method order and straightforward branching are natural, but unindented assertion checks interrupt the flow and undermine formatting consistency.