Sample
int-69c9f0d2ebc0-I10
Remove about 40% of line-break groups while retaining structure
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.469 | 0–1; higher is more readable |
| Dorn | 0.041 | 0–1; higher is more readable |
| Mi | 0.018 | 0–1; higher is more readable |
| LLOC | 19 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 8 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12 | 0–20; mean of three runs |
| BTTF | 0.44 | 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. | 2237.639 | −73.842 |
| Source linesThe number of non-empty source lines. | 63 | +25.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.008 | −7.512 |
Intercept 8.87 + feature contributions = -47.284 (log-odds).
Score = sigmoid(-47.284) = 0.
| Score | 0.469 |
|---|
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. | 220.969 | −5.694 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 221 | +2.761 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 63 | −1.194 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 43 | +0.75 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 43 | −0.566 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 62.784 | +0.468 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.07 | +0.264 |
Intercept 0.07 + feature contributions = -3.141 (log-odds).
Score = sigmoid(-3.141) = 0.041.
| Score | 0.018 |
|---|
| Score | 19 |
|---|
Run 1
The code has some redeeming qualities: clear class documentation, logical package structure, and meaningful comments explaining non-obvious optimizations (O(log N) lookup). However, it severely suffers from formatting issues. Multiple statements are squeezed onto single lines, such as import statements, constructors, method signatures, and method bodies. This violates the 'one action per line' principle. The file appears to have been compacted with lines joined together, making it hard to scan. While individual methods are relatively short and the class hierarchy is clear, the erratic formatting destroys reading flow. Some methods like indexOf combine logic across lines in awkward ways. The comments are helpful but their placement within the cramped code adds visual noise. Overall, the code is functionally understandable but needs reformatting to achieve acceptable readability.
Run 2
The code has several readability problems. Multiple statements are crammed onto single lines (e.g., imports, method declarations, constructor bodies), violating the 'one action per line' principle and disrupting natural reading flow. Nesting is mostly flat, which is good, but inconsistent formatting and compressed blocks make the structure hard to scan. Intent is partially clear from comments and method names, but the poor layout obscures it. Code length is reasonable, but the formatting makes it feel longer and harder to parse. The file mixes annotations, comments, and code on the same lines, reducing clarity. While the class purpose and individual methods are understandable, the presentation significantly undermines readability. A clean reformatting would likely raise this to 15+.
Run 3
The code has a reasonable class structure and clear purpose, with helpful comments explaining non-obvious decisions. However, readability is significantly hurt by inconsistent formatting: several methods and class declarations are crammed onto single lines, making the code visually dense and harder to scan. Nesting is flat, which is good, but action granularity suffers because multiple statements appear on one line. The reading flow is disrupted by the uneven spacing and compressed method bodies. While the intent of individual methods is clear, the presentation undermines clarity and makes the code feel messy despite its logical organization.
Run 1
Code Structure: The class is logically organized into small, related overrides, but compressed formatting obscures method boundaries. Nesting: Minimal nesting makes the logic straightforward. Clarity of intent: Descriptive method names, delegation, and comments explain lookup behavior and comparator consistency; some implementation-specific comments require context. Code length: The implementation is concise, although lengthy compatibility notes interrupt the compact methods. Action granularity: Several lines combine imports, declarations, statements, closing braces, and annotations, making individual actions harder to distinguish. Reading flow: Inconsistent indentation, inline method transitions, and annotations appended to preceding methods disrupt scanning. Overall, understandable logic and shallow structure are undermined by poor formatting.
Run 2
Code Structure: The class has logically grouped, focused overrides, but compressed declarations and inconsistent formatting obscure method boundaries. Nesting: Very flat, with no nested control flow; the conditional expression is straightforward. Clarity of intent: Descriptive method names, delegation, and comments explain behavior and comparator-related edge cases, although some comments are awkwardly positioned. Code length: The implementation is concise without substantial redundancy, though lengthy compatibility comments interrupt scanning. Action granularity: Several lines combine imports, declarations, statements, closing braces, and annotations, making individual actions harder to distinguish. Reading flow: The conceptual sequence is coherent, but irregular indentation, inline method bodies, and annotations attached to preceding methods disrupt natural reading.
Run 3
Code Structure: The class is logically organized into small, related overrides, but compressed imports and merged method boundaries obscure that organization. Nesting: Almost no nesting makes control flow easy to follow. Clarity of intent: Descriptive method names, delegation, and comments explain sorted-list behavior and comparator edge cases, though some abbreviations and internal references require context. Code length: The implementation is concise, with generally useful comments, although lengthy TODOs interrupt the flow. Action granularity: Several lines combine declarations, statements, closing braces, and annotations, making individual actions harder to distinguish. Reading flow: Inconsistent indentation, inline method bodies, and annotations attached to preceding methods force readers to reconstruct boundaries. The underlying logic is readable, but formatting substantially reduces scanability.