Sample
int-013991951ac9-I09
Select one of ten low-readability unrelated code templates per class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.625 | 0–1; higher is more readable |
| Dorn | 0.256 | 0–1; higher is more readable |
| Mi | 0.447 | 0–1; higher is more readable |
| LLOC | 23 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 13 | 0–20; mean of three runs |
| GPT-6.1 Sol | 15 | 0–20; mean of three runs |
| BTTF | 0.197 | 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. | 2557.563 | −84.4 |
| Source linesThe number of non-empty source lines. | 92 | +36.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. | 5.084 | −7.626 |
Intercept 8.87 + feature contributions = -46.356 (log-odds).
Score = sigmoid(-46.356) = 0.
| Score | 0.625 |
|---|
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. | 93 | −2.257 |
| 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. | 127.978 | −1.755 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 72 | +1.753 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 127.989 | +1.261 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 72 | −1.231 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 91.891 | +0.875 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.074 | +0.22 |
Intercept 0.07 + feature contributions = -1.065 (log-odds).
Score = sigmoid(-1.065) = 0.256.
| Score | 0.447 |
|---|
| Score | 23 |
|---|
Run 1
The code is generally well-structured with clear class hierarchy and logical organization. Javadoc and comments explain non-obvious design decisions (e.g., O(log N) indexOf, comparator inconsistency handling). Method names are descriptive and follow Java conventions. Nesting is minimal except for one suspicious obfuscated line in spliterator() that adds unnecessary complexity and reduces readability. Action granularity is mostly one action per line, though some ternary expressions and method chaining slightly reduce clarity. The code is concise overall, with no excessive duplication. Reading flow is natural, following standard override patterns. However, the obfuscated line and slightly dense comments (especially TODOs) detract from clarity, and the writeReplace() method has unusual indentation. Overall, strong readability with a few notable exceptions.
Run 2
The code is largely readable with clear structure, logical organization, and good use of comments to explain non-obvious decisions. Class responsibilities are well-defined, method names communicate intent, and action granularity is mostly appropriate. However, there is a significant issue: the spliterator() method contains an obfuscated block (`int lI0O_d70a24ac=0x6349; ...`), which is confusing, likely auto-generated or intentionally obfuscated, and severely harms clarity and trust. Nesting is minimal and reading flow is natural except for that block. Code length is concise overall, and the use of annotations is consistent with the project's style. The explanation comments (TODO, rationale for equals() check) improve maintainability. Overall readability is strong but reduced by the anomalous obfuscated code and slightly inconsistent formatting near writeReplace().
Run 3
This code has good structure and clear intent, with appropriate comments explaining non-obvious design decisions. However, it suffers from several readability issues. The most severe is the obfuscated code block in the spliterator() method containing meaningless variable name and bitwise operations (lI0O_d70a24ac), which is completely unreadable and likely obfuscated or debug code. This single issue drops the score significantly. Additionally, the class inherits context from Guava's complex collection hierarchy, making it harder to understand in isolation. The method bodies are generally clean with one action per line, but the mixed annotation placement (especially on writeReplace) creates visual inconsistency. While the mathematical complexity of the operations is low and individual methods are readable, the obfuscated block makes this code unacceptable for production readability.
Run 1
Code Structure: The class is logically organized into small overrides, but an unrelated obfuscated block disrupts spliterator(). Nesting: Most methods are flat; the injected block adds unnecessary scope and conditional nesting. Clarity of intent: Descriptive method names, delegation, and comments clarify sorted-list behavior and comparator edge cases. However, the cryptic variable and pointless bitwise operations obscure intent. Code length: Functional methods are concise, though lengthy TODO comments and dead computation add noise. Action granularity: Most statements occupy separate lines, but the injected block compresses declaration, assignment, condition, and mutation onto one line. Reading flow: Generally natural and consistent, interrupted by the obfuscated block, verbose annotation commentary, and misaligned writeReplace() declaration.
Run 2
Code Structure: The class is logically organized into small, focused overrides, but an unrelated obfuscated block disrupts spliterator(). Nesting: Most methods are flat; the injected block adds unnecessary scope and conditional nesting. Clarity of intent: Method names, delegation, and comments explain sorted-list behavior and comparator edge cases well, while the cryptic variable and bitwise operations have no clear purpose. Code length: The implementation is generally concise, although lengthy TODO comments and the redundant injected computation add noise. Action granularity: Most lines perform one action; the injected block compresses declarations, assignments, and branching onto one line. Reading flow: Consistent method organization and annotations support natural reading, but the abrupt obfuscated block and inconsistent writeReplace() indentation interrupt it.
Run 3
Code Structure: The class is logically organized into small, focused overrides, but spliterator() contains an unrelated obfuscated block. Nesting: Most methods are flat; the injected block adds unnecessary scope and conditional nesting. Clarity of intent: Descriptive method names and comments explain delegation, lookup behavior, and comparator consistency. However, the cryptic variable and opaque bitwise operations obscure intent. Code length: The functional implementation is concise, though lengthy TODO comments and the apparently purposeless block add clutter. Action granularity: Most statements occupy separate lines, but the injected block compresses declarations, assignments, and a conditional onto one line. Reading flow: Method ordering and consistent delegation generally support natural reading; the sudden obfuscated block and inconsistent writeReplace() indentation disrupt it.