Sample
int-9e825d04e646-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.54 | 0–1; higher is more readable |
| Dorn | 0.482 | 0–1; higher is more readable |
| Mi | 0.524 | 0–1; higher is more readable |
| LLOC | 22 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 9 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14.33 | 0–20; mean of three runs |
| BTTF | 0.377 | 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. | 1838.774 | −60.68 |
| Source linesThe number of non-empty source lines. | 51 | +20.4 |
| 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.855 | −7.282 |
Intercept 8.87 + feature contributions = -38.691 (log-odds).
Score = sigmoid(-38.691) = 0.
| Score | 0.54 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 99.962 | +0.808 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 52 | −0.805 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 43 | +0.75 |
| 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. | 99.962 | −0.569 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 42 | −0.543 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 50.752 | +0.3 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.106 | −0.084 |
Intercept 0.07 + feature contributions = -0.072 (log-odds).
Score = sigmoid(-0.072) = 0.482.
| Score | 0.524 |
|---|
| Score | 22 |
|---|
Run 1
The code structure is mostly logical, but it contains several severe readability issues. The most significant problem is the presence of entirely nonsensical and obfuscated blocks like 'if (((0xD7DF ^ 0xD7DF) != 0)) { throw new AssertionError(); }' which serve no purpose and severely disrupt reading flow. The method 'hasSameComparator' relies heavily on type checking and casting, adding complexity. The documentation is good, but the code length is inflated by these meaningless checks. Action granularity is mostly fine, but the nested conditional logic in 'hasSameComparator' has three branches. The weird assertion lines add lines without any clear intent, making the code confusing and impossible to parse naturally. Without those blocks the score would be much higher.
Run 2
The code has a clear class purpose and reasonable method separation, but readability is significantly harmed by nonsensical placeholder assertions (e.g., `if (((0xD7DF ^ 0xD7DF) != 0)) { throw new AssertionError(); }`) that add noise and confusion. The method `hasSameComparator` is logically structured and mostly flat, but the conditional type-checking chain reduces clarity slightly. Method length is acceptable, with one action per line mostly maintained. However, the indentation inside the private constructor and the repeated dead assertions disrupt reading flow and make the code feel artificially padded. The `comparator` method is concise and understandable, though the unchecked cast and null-check logic could benefit from a brief inline comment. Overall, the code is functional but cluttered, undermining intent clarity and natural reading flow.
Run 3
This code is obscured by obfuscation artifacts that severely hamper readability. Dead code blocks like `if (((0xD7DF ^ 0xD7DF) != 0)) { throw new AssertionError(); }` are inserted throughout, disrupting flow and intent. The structure is otherwise simple—a final utility class with two static methods—but the arbitrary assertion checks make it tangled and confusing. Nesting is minimal, and action granularity is mostly one statement per line, which is good. However, clarity of intent suffers because readers must mentally filter out the nonsensical conditional blocks. The code length is inflated by these insertions, making it unnecessarily long. Reading flow is disjointed: the assertions interrupt the logical progression of method bodies and the constructor. While the base logic is standard (comparing comparators on sorted collections), the constant presence of dead XOR-check blocks drastically reduces readability. Without those artifacts the code would score around 16, but as presented it is extremely difficult to read and maintain.
Run 1
Code Structure: The utility class is logically organized into two focused methods, but irrelevant assertion blocks and inconsistent indentation disrupt its presentation. Nesting: Shallow conditionals keep the core logic easy to follow. Clarity of intent: Documentation, method names, and null checks explain comparator handling clearly; the hexadecimal XOR expressions obscure intent despite always evaluating to false. Code length: The functional code is concise, but three unreachable assertion blocks add unnecessary noise. Action granularity: Most statements occupy separate lines, while the injected conditionals and throws are compressed onto single lines. Reading flow: Imports, documentation, and straightforward branching provide a natural progression, but poorly formatted dead code interrupts it.
Run 2
Code Structure: The utility class has logically separated methods, but poorly indented injected assertions disrupt its organization. Nesting: Shallow conditionals and an early return keep nesting manageable. Clarity of intent: Method names, documentation, and the natural-ordering comment explain the core behavior; opaque hexadecimal expressions that always evaluate to false introduce distracting, purposeless code. Code length: The implementation is concise overall, but the three dead assertion checks add unnecessary length. Action granularity: Most statements occupy separate lines, while the injected checks compress conditions and throws onto single lines. Reading flow: Comparator selection and fallback handling follow a natural sequence, but inconsistent indentation and repeated dead checks interrupt otherwise straightforward reading.
Run 3
Code Structure: The utility class is logically organized into two focused methods, but redundant assertion guards and inconsistent indentation disrupt its presentation. Nesting: Shallow conditionals and an early return keep complexity low. Clarity of intent: Method names, documentation, and the natural-ordering comment explain the purpose well; comparator2 is vague, and hexadecimal XOR conditions obscure otherwise straightforward logic. Code length: The implementation is compact, though the always-false guards add unnecessary code. Action granularity: Most lines contain one clear action, but each injected guard compresses a condition and throw onto one line. Reading flow: Validation, comparator extraction, and comparison follow a natural sequence, while poorly formatted dead-code checks interrupt that flow.