Sample
int-3753d14e5357-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.806 | 0–1; higher is more readable |
| Dorn | 0.535 | 0–1; higher is more readable |
| Mi | 0.228 | 0–1; higher is more readable |
| LLOC | 24 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 4.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12 | 0–20; mean of three runs |
| BTTF | 0.702 | 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. | 1179.397 | −38.92 |
| 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.606 | −6.909 |
Intercept 8.87 + feature contributions = -16.559 (log-odds).
Score = sigmoid(-16.559) = 0.
| Score | 0.806 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 107.962 | +0.937 |
| 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. | 107.942 | −0.907 |
| 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. | 37 | +0.543 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 37 | −0.428 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.053 | +0.428 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 50.844 | +0.301 |
Intercept 0.07 + feature contributions = 0.139 (log-odds).
Score = sigmoid(0.139) = 0.535.
| Score | 0.228 |
|---|
| Score | 24 |
|---|
Run 1
The code has severe readability issues. Fields are declared on the same line, Javadocs are interleaved with code, and multiple statements are crammed onto single lines (e.g., constructor logic, if-blocks, and method returns). The opening brace is placed at the end of a line containing other code, making structure hard to follow. While the class's purpose is clear from the header comment, the formatting obscures intent and makes the flow disorganized. Nesting is minimal, but action granularity is poor—many lines combine multiple actions. Overall, the logic is simple, but the physical layout significantly harms readability despite the class being conceptually straightforward.
Run 2
The code has severe readability issues. The class structure is logical but the formatting is highly inconsistent: multiple statements and fields are on the same line, Javadoc and code are mixed on single lines, and several methods are compacted together without line breaks. This makes the code difficult to scan and understand. Nesting is minimal, which is good, and the intent is mostly clear from the class name and comments. However, the action granularity is poor, with multiple actions per line in several places (e.g., field declarations, constructor checks, method chains). The reading flow is disorganized due to the lack of standard spacing and alignment. While the code is concise, it is unnecessarily dense and violates typical Java style conventions. The score reflects the structural clarity of the class hierarchy and method names but is heavily penalized for formatting and readability.
Run 3
The code has severe readability issues. Formatting destroys the logical structure: multiple fields and methods are crammed onto single lines, making the class hard to scan. Nesting is minimal but obscured by the lack of line breaks. Intent is reasonably clear from the Javadoc, but the implementation fails to support it at a glance. Code length is acceptable, but action granularity is poor, with several statements and methods sharing lines. Reading flow is disorganized due to erratic line breaks and inconsistent indentation. While the logic itself is simple, the formatting makes it difficult to parse and review. Properly formatted, this could easily be a 15+; as written, it is nearly unreadable.
Run 1
Code Structure: The class has a logical arrangement of fields, constructor, accessors, and lifecycle methods, but compressed formatting obscures boundaries. Nesting: Minimal nesting makes the control flow easy to follow. Clarity of intent: Descriptive names and useful documentation clearly explain non-owning behavior and external lifetime management. Code length: The implementation is concise, with little unnecessary code. Action granularity: Multiple field declarations, statements, annotations, and method boundaries share lines, reducing readability. Reading flow: Inconsistent line breaks and braces, plus documentation attached to a field declaration, interrupt otherwise straightforward reading. Conventional Java formatting would substantially improve readability without changing the logic.
Run 2
Code Structure: The class has a logical arrangement of fields, constructor, accessors, and lifecycle methods, but compressed formatting obscures boundaries. Nesting: Shallow conditionals make the logic easy to follow. Clarity of intent: Descriptive names and useful documentation clearly explain the non-owning wrapper and externally managed lifetime. Code length: The implementation is concise, with little unnecessary code. Action granularity: Multiple field declarations, statements, annotations, and method boundaries share lines, reducing scanability. Reading flow: Inconsistent indentation and placement of braces and documentation interrupt otherwise natural progression. Overall, the simple logic and clear purpose are undermined by poor formatting.
Run 3
Code Structure: The class has a logical arrangement of fields, constructor, accessors, and reference-counting methods, but inconsistent formatting blurs their boundaries. Nesting: Minimal nesting keeps control flow easy to understand. Clarity of intent: Descriptive names and useful documentation clearly explain the wrapper's non-owning behavior and externally managed lifetime. Code length: The implementation is concise, with little unnecessary code. Action granularity: Multiple declarations, annotations, statements, and closing braces share lines, making individual operations harder to scan. Reading flow: Irregular line breaks and indentation interrupt an otherwise natural progression through the class. Overall, the simple design and clear intent provide reasonable readability, but compressed formatting significantly reduces it.