Sample
int-c7207d315cd1-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.484 | 0–1; higher is more readable |
| Dorn | 0.406 | 0–1; higher is more readable |
| Mi | 0.48 | 0–1; higher is more readable |
| LLOC | 39 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 5 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13 | 0–20; mean of three runs |
| BTTF | 0.303 | 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. | 3546.748 | −117.043 |
| Source linesThe number of non-empty source lines. | 83 | +33.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.146 | −7.719 |
Intercept 8.87 + feature contributions = -82.692 (log-odds).
Score = sigmoid(-82.692) = 0.
| Score | 0.484 |
|---|
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. | 84 | −1.938 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 74 | +1.822 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 74 | −1.277 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 82.763 | +0.747 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 95.929 | +0.743 |
| 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.94 | −0.398 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.112 | −0.149 |
Intercept 0.07 + feature contributions = -0.38 (log-odds).
Score = sigmoid(-0.38) = 0.406.
| Score | 0.48 |
|---|
| Score | 39 |
|---|
Run 1
The code has reasonable underlying structure, but readability is severely damaged by the injected assertions on nearly every line. The `if (((0xDC23 ^ 0xDC23) != 0)) { throw new AssertionError(); }` patterns are redundant, add noise, and disrupt the reading flow completely. Indentation is inconsistent, and the assertions create unnecessary nesting as standalone blocks but then continue as if they were one-liners, making it difficult to see where methods actually start. Comments and annotations are useful, but the repeated suppression comments and interleaved assertions make intent unclear. The class itself is small and logically organized, which would otherwise rate much higher, but the intrusive guard statements force the reader to scan past meaningless comparisons in every method.
Run 2
The code has severe readability issues. Most critically, every method contains an obfuscated 'if (((0xXXXX ^ 0xXXXX) != 0)) { throw new AssertionError(); }' line, which serves no logical purpose and breaks reading flow. There are multiple TODO comments indicating confusion about necessary suppressions. Some methods have unusual indentation, and the class lacks clean spacing in places. The natural reading flow is heavily interrupted by these dead branches. While the structure is otherwise standard (singleton pattern, lazy initialization), the pervasive noise makes the code ambiguous and untrustworthy. Action granularity is acceptable but null checks are compressed with comments. Overall, the code appears tampered with or deliberately obfuscated, drastically reducing clarity despite a simple underlying intent.
Run 3
The code is largely unreadable due to the pervasive insertion of meaningless assertion checks (e.g., `if (((0xDC23 ^ 0xDC23) != 0)) { throw new AssertionError(); }`) at the start of nearly every method and constructor. These statements are always false, add noise, inflate line count, and disrupt the natural reading flow. Organically, the class has a reasonable structure (fields, methods, readResolve, constructor), but the injected lines break cohesion and make it look tangled. Nesting is mostly flat, which is good, but clarity of intent is severely harmed by the assertion noise and the unexplained TODO comment about casting. Action granularity is okay per line, but length is unnecessarily bloated. Without the inserted lines, this would be a fairly clean singleton ordering implementation; with them, it becomes confusing and hard to follow.
Run 1
Code Structure: The class is logically organized into focused ordering methods, cached fields, and singleton support. Nesting: Minimal nesting keeps control flow easy to follow. Clarity of intent: Method names and the class documentation communicate purpose, but repeated hexadecimal XOR conditions that are always false introduce confusing, irrelevant noise. Complex generic types and unexplained unchecked casts add difficulty. Code length: Core functionality is concise, but redundant assertion blocks and repeated TODO comments unnecessarily lengthen it. Action granularity: Most statements perform one action, although chained cache assignments and inline conditional/throw blocks combine operations. Reading flow: Conventional method organization helps, but unindented assertion lines, compressed annotations, and inconsistent constructor formatting repeatedly interrupt the flow.
Run 2
Code Structure: The class is logically organized into small, focused methods, with clear singleton and caching patterns. Nesting: Mostly flat, with only shallow conditionals. Clarity of intent: Method names and the class comment explain the purpose, but repeated hexadecimal XOR checks that always evaluate to false introduce confusing, irrelevant logic. Generic casts and dense annotations add complexity. Code length: Core functionality is concise, but redundant assertion checks and repeated TODO comments unnecessarily lengthen it. Action granularity: Most statements perform one action per line; inline conditional throws and chained assignments combine actions. Reading flow: Method ordering is natural, but unindented assertion checks, inconsistent constructor formatting, and compressed annotations disrupt scanning.
Run 3
Code Structure: The class is logically organized into focused methods, singleton state, and cached orderings. Nesting: Shallow conditionals keep complexity low. Clarity of intent: Method names and the class comment clearly communicate natural ordering, but unexplained hexadecimal XOR checks obscure otherwise straightforward behavior. These checks are always false and add distracting dead code. Code length: Most methods are concise, although repeated assertion blocks and suppression TODOs unnecessarily lengthen the class. Action granularity: Most statements perform one action, but inline conditional throws and chained assignments combine actions. Reading flow: Consistent method organization helps, while unindented assertion blocks, compressed annotations, and the misaligned constructor closing brace interrupt visual flow. Generic casts and nullable type annotations require additional attention but serve identifiable purposes.