Sample
int-6f66e5d0637c-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.002 | 0–1; higher is more readable |
| Scalabrino | 0.793 | 0–1; higher is more readable |
| Dorn | 0.39 | 0–1; higher is more readable |
| Mi | 0.116 | 0–1; higher is more readable |
| LLOC | 9 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 11.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 15 | 0–20; mean of three runs |
| BTTF | 0.497 | 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. | 1017.519 | −33.578 |
| Source linesThe number of non-empty source lines. | 64 | +25.6 |
| 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.69 | −7.035 |
Intercept 8.87 + feature contributions = -6.143 (log-odds).
Score = sigmoid(-6.143) = 0.002.
| Score | 0.793 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| 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. | 123.954 | −1.585 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 65 | −1.265 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 120.2 | +1.135 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.029 | +0.66 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 63.848 | +0.483 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 32 | +0.37 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 32 | −0.313 |
Intercept 0.07 + feature contributions = -0.446 (log-odds).
Score = sigmoid(-0.446) = 0.39.
| Score | 0.116 |
|---|
| Score | 9 |
|---|
Run 1
The code is highly readable with clear structure, logical organization, and well-documented interface methods. It maintains a flat hierarchy with no unnecessary nesting and follows Java conventions. The code is concise yet comprehensive, with each method performing a single clear action. The Javadoc comments are thorough and provide excellent context for understanding the interface's purpose and usage. Minor deductions: the anonymous-looking `if (((0xF705 ^ 0xF705) != 0))` statements in default methods are suspicious—likely either obfuscated code or decompiled artifacts—which briefly disrupts the reading flow. Additionally, the line wrap in the `@return` Javadoc for `validate()` creates a small formatting inconsistency. Overall, the code achieves high readability with clean structure and clear intent.
Run 2
The interface is moderately readable but contains severe readability issues. Dead code (impossible boolean checks) disrupts natural flow and adds noise. Indentation is inconsistent and a returned statement is indented at the wrong level. The JavaDoc is comprehensive but overly long, obscuring the interface's core purpose. The validate() method has a long parameter name and overly verbose documentation. Action granularity is violated in the default methods where multiple actions are crammed on one line. The structure is logical, but the obsolete checks make the code appear tampered-with and untrustworthy. Flat nesting, clear intent of the method purposes, and concise method signatures are positives, but dead code and inconsistency significantly undermine readability, making this a borderline-unreadable interface.
Run 3
The interface has a clear purpose and good Javadoc documentation, but readability is severely impacted by several issues. The code structure begins well with logical imports and class-level documentation, but then degrades significantly. There are two suspicious dead-code blocks (if statements with impossible conditions that throw AssertionError) inserted without explanation, which break the reading flow and add confusion. Nesting is minimal, but these unnecessary conditional blocks are completely out of place for a default method that should simply return a value. Action granularity is poor - the dead code spans multiple lines for no functional purpose. The Javadoc is extensive but one parameter description has a minor formatting issue. Overall, the code is difficult to trust and read due to the injected dead code.
Run 1
Code Structure: The interface is logically organized, with imports, interface documentation, and clearly separated methods. Nesting: Minimal nesting makes the code easy to scan. Clarity of intent: Descriptive names and detailed Javadoc explain the policy contract, but the constant-false hexadecimal XOR checks are unexplained distractions. Code length: The interface is reasonably concise, although redundant checks and extra blank lines add noise. Action granularity: Most lines contain one declaration or action; the inline conditional-and-throw statements compress multiple elements onto single lines. Reading flow: The progression from validation to configuration and version is natural, but unindented checks interrupt otherwise consistent formatting.
Run 2
Code Structure: The interface is logically organized into validation, configuration, and version methods, but unexplained assertion guards disrupt otherwise clean defaults. Nesting: Very shallow, with only one conditional level. Clarity of intent: Descriptive names and detailed Javadoc clarify the policy contract; hexadecimal XOR conditions obscure intent and are always false. Code length: Mostly concise, though the redundant guards and excess blank lines add unnecessary noise. Action granularity: Method declarations and return statements are clear, but each guard compresses a condition and throw statement onto one line. Reading flow: Documentation and method order support natural reading, while unindented guards, inconsistent Javadoc formatting, and tightly packed imports interrupt it.
Run 3
Code Structure: The interface is logically organized, with clear imports, documentation, and method declarations, but redundant assertion guards disrupt otherwise clean defaults. Nesting: Very shallow, with only a single conditional in each default method. Clarity of intent: Descriptive names and detailed Javadoc clearly explain the policy contract; hexadecimal XOR conditions that always evaluate to false introduce confusing, purposeless code. Code length: The interface is reasonably concise, though unnecessary guards and excess blank lines add clutter. Action granularity: Most statements occupy separate lines, but each guard combines a condition, block, and throw on one line. Reading flow: Documentation and method ordering are natural, but unindented guards, inconsistent Javadoc formatting, and tightly packed imports reduce visual consistency.