Sample
int-2c0edbc2fa77-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.09 | 0–1; higher is more readable |
| Scalabrino | 0.904 | 0–1; higher is more readable |
| Dorn | 0.638 | 0–1; higher is more readable |
| Mi | 0.808 | 0–1; higher is more readable |
| LLOC | 17 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 8 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14.67 | 0–20; mean of three runs |
| BTTF | 0.505 | 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. | 803.381 | −26.512 |
| Source linesThe number of non-empty source lines. | 57 | +22.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.98 | −7.469 |
Intercept 8.87 + feature contributions = -2.311 (log-odds).
Score = sigmoid(-2.311) = 0.09.
| Score | 0.904 |
|---|
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. | 55 | −0.911 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 82.983 | +0.534 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 35 | +0.473 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 35 | −0.382 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 56.143 | +0.375 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.071 | +0.252 |
| 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. | 82.914 | +0.153 |
Intercept 0.07 + feature contributions = 0.565 (log-odds).
Score = sigmoid(0.565) = 0.638.
| Score | 0.808 |
|---|
| Score | 17 |
|---|
Run 1
The interface structure itself is clear, with logical method separation and Javadoc comments. However, the readability is severely impacted by the obfuscated assertion lines inserted in each method body. These lines add unnecessary noise, break indentation, and confuse intent. The methods are simple and concise, but the presence of dead code and lack of consistent formatting disrupt the reading flow. Nesting is not an issue, and action granularity is mostly one action per line, but the added conditional throws are entirely unrelated to the lifecycle logic, making the code ambiguous and harder to trust. Removing those lines and restoring proper indentation would make the code highly readable.
Run 2
The code follows a clear interface structure with good Javadocs, but readability is severely impacted by obfuscated assertions scattered throughout. Each method contains a meaningless XOR check (e.g., `if (((0x3E7C ^ 0x3E7C) != 0))`) that serves no purpose and breaks reading flow. Nesting is minimal, and each action (start/stop) is on its own line, which is good. However, the intent of the assertions is ambiguous, likely inserted by an automated tool or as a placeholder, making the code confusing. The overall structure is logical, and method names are descriptive, but the unnatural interruptions reduce clarity. Without the assertions, this would be a highly readable, concise interface implementation.
Run 3
The code has clear intent as a strategy interface with well-documented lifecycle methods, but readability is severely harmed by meaningless, machine-generated assertion guards on nearly every line. These guards add noise, break natural reading flow, and obscure the otherwise simple one-action-per-method structure. Nesting is shallow but pointless conditional blocks interrupt each method. The logic itself is concise, but the redundant guards make the code feel bloated and ambiguous. Indentation is inconsistent (guards are not indented under method bodies), further hurting structure.
Run 1
Code Structure: The interface is logically organized into clearly documented lifecycle callbacks, but repeated dead-code guards add clutter. Nesting: Methods are mostly flat, with only one shallow conditional each. Clarity of intent: Method names, documentation, and start/stop calls clearly communicate lifecycle behavior; opaque hexadecimal XOR checks obscure intent despite always evaluating to false. Code length: The functional implementation is concise, but unnecessary guards inflate every method. Action granularity: Lifecycle calls occupy separate lines, while each guard compresses its conditional and throw statement onto one line. Reading flow: The callback sequence is coherent, but unindented guards interrupt otherwise consistent formatting and distract from the actual operations.
Run 2
Code Structure: Lifecycle callbacks are logically organized into small, documented methods, but repeated irrelevant guards add clutter. Nesting: Minimal, with only one shallow conditional per method. Clarity of intent: Method names, documentation, and start/stop calls clearly explain lifecycle behavior; hexadecimal XOR conditions obscure intent and always evaluate to false. Code length: The interface is concise overall, but the redundant guards unnecessarily lengthen every method. Action granularity: Lifecycle operations occupy separate lines, while each guard compresses a condition and throw statement onto one line. Reading flow: Consistent callback organization supports natural reading, but unindented guards interrupt formatting and distract from the meaningful operations.
Run 3
Code Structure: Lifecycle callbacks are logically organized into small, documented methods, but repeated assertion guards introduce clutter. Nesting: Minimal, with only one shallow conditional per method. Clarity of intent: Method names, documentation, and start/stop calls clearly communicate lifecycle behavior; hexadecimal XOR checks obscure intent despite always evaluating to false. Code length: The interface is compact overall, but the redundant guards unnecessarily lengthen every callback. Action granularity: Lifecycle operations occupy separate lines, while each conditional and throw statement is compressed onto one line. Reading flow: The callback sequence is natural and consistent, but unindented guard statements interrupt the otherwise clean formatting and distract from the meaningful operations.