Sample
int-139fed2f6c4b-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.676 | 0–1; higher is more readable |
| Dorn | 0.633 | 0–1; higher is more readable |
| Mi | 0.638 | 0–1; higher is more readable |
| LLOC | 19 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 10.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.33 | 0–20; mean of three runs |
| BTTF | 0.463 | 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. | 1480.877 | −48.869 |
| Source linesThe number of non-empty source lines. | 48 | +19.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. | 5.152 | −7.729 |
Intercept 8.87 + feature contributions = -28.527 (log-odds).
Score = sigmoid(-28.527) = 0.
| Score | 0.676 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 43 | +0.75 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 49 | −0.699 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 43 | −0.566 |
| 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. | 74.939 | +0.491 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 74.898 | +0.404 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 47.684 | +0.257 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.114 | −0.164 |
Intercept 0.07 + feature contributions = 0.543 (log-odds).
Score = sigmoid(0.543) = 0.633.
| Score | 0.638 |
|---|
| Score | 19 |
|---|
Run 1
The code is generally readable: package/imports are standard, the class has a clear purpose with an appropriate Javadoc comment, and each method is short and focused. The methods clearly express their intent (returning literal value, confirming compilability, generating bytecode). However, the repeated `if (((0x7B69 ^ 0x7B69) != 0)) { throw new AssertionError(); }` lines are confusing and unnecessary, breaking reading flow and adding clutter. The `payload` parameter is unused, and the `startPos`/`endPos` are passed to the super without explanation, which slightly obscures intent. Nesting is minimal, and the structure is logical. Action granularity is mostly one action per line, except for the assertion lines. Overall, the code would be more readable if these artifacts were removed.
Run 2
The code is generally readable with clear class structure and purpose, but it contains several issues. The repetitive `if (((0x7B69 ^ 0x7B69) != 0)) { throw new AssertionError(); }` statements appear to be deliberately inserted noise—they evaluate to false and add unnecessary clutter, likely as a code obfuscation or testing artifact. These lines violate the 'action granularity' and 'clarity of intent' criteria, as they create multiple actions per line and obscure the actual logic. The nesting is shallow and the flow is straightforward, but the artificial assertions interrupt the reading flow. The class is concise overall, and each method generally performs one clear action, but the presence of those assertion lines makes it harder to scan quickly. If those lines were removed, the readability would improve significantly.
Run 3
The code has several severe readability issues. Dead code in the form of unnecessary conditional checks (e.g., 'if (((0x7B69 ^ 0x7B69) != 0)) { throw new AssertionError(); }') appears in every method. These checks always evaluate to false, add noise, and disrupt the natural reading flow. The class structure is simple and the variable names are clear, but the presence of multiple actions per line (e.g., declaring and instantiating TypedValue on one line) slightly reduces clarity. The indentation is inconsistent, with the dead code lines being unindented, which breaks visual structure. The comments are minimal but adequate. Overall, while the core logic is straightforward, the artificial complexity and inconsistent formatting make the code significantly harder to read than it needs to be.
Run 1
Code Structure: The class is logically organized into a constructor and small, focused overrides, but repeated assertion guards add clutter. Nesting: Methods are shallow, with only single-level conditionals. Clarity of intent: Documentation, names, and straightforward literal handling communicate the purpose well; hexadecimal XOR conditions that always evaluate to false are distracting and unexplained. Code length: The implementation is short, but four redundant guards unnecessarily inflate it. Action granularity: Normal operations occupy separate lines, while each guard compresses a condition and throw into one line. Reading flow: Method order is natural, but unindented guards and inconsistent whitespace interrupt scanning.
Run 2
Code Structure: The class is logically organized around a literal value, with a constructor and small, focused overrides. Nesting: Minimal nesting keeps the code easy to scan. Clarity of intent: The class documentation and method names explain its purpose, but repeated hexadecimal XOR checks obscure intent despite always evaluating to false. Code length: The implementation is short, although the redundant assertion branches add unnecessary clutter. Action granularity: Most statements perform one action per line, but each assertion branch compresses a condition and throw into one line. Reading flow: The methods follow a natural sequence, but the unindented assertion checks interrupt the otherwise consistent formatting and distract from the meaningful logic.
Run 3
Code Structure: The class is logically organized into a constructor and small, focused overrides, but repeated irrelevant assertion checks introduce clutter. Nesting: Methods are mostly flat, with only shallow conditional blocks. Clarity of intent: Documentation, method names, and the value field clearly convey a long-literal AST node; hexadecimal XOR conditions that are always false obscure otherwise straightforward behavior. Code length: The implementation is compact, but four redundant checks and excess blank lines add unnecessary length. Action granularity: Most lines perform one action, while each assertion check compresses a conditional and throw onto one line. Reading flow: The methods follow a natural sequence, but unindented checks repeatedly interrupt consistent formatting and distract from the meaningful operations.