Sample
int-7c00c0646236-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.732 | 0–1; higher is more readable |
| Dorn | 0 | 0–1; higher is more readable |
| Mi | 0.002 | 0–1; higher is more readable |
| LLOC | 18 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 5.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 10 | 0–20; mean of three runs |
| BTTF | 0.277 | 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. | 2525.522 | −83.342 |
| Source linesThe number of non-empty source lines. | 46 | +18.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.23 | −6.344 |
Intercept 8.87 + feature contributions = -62.417 (log-odds).
Score = sigmoid(-62.417) = 0.
| Score | 0.732 |
|---|
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. | 347.957 | −11.073 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 46 | +0.854 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 47 | −0.628 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 45.819 | +0.231 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.077 | +0.197 |
Intercept 0.07 + feature contributions = -10.755 (log-odds).
Score = sigmoid(-10.755) = 0.
| Score | 0.002 |
|---|
| Score | 18 |
|---|
Run 1
The code suffers from severe readability issues primarily due to formatting. Multiple declarations and method definitions are crammed onto single lines, violating action granularity and reading flow principles. While the overall logic is not deeply nested, the dense layout obscures the class structure and makes it difficult to parse individual actions. Naming is conventional and intent can be inferred, but the presentation completely undermines clarity. The import section groups packages unnaturally, further hampering initial comprehension. This code is functional but requires significant reformatting to be maintainable.
Run 2
The code has poor readability due to multiple issues. The package and imports are crammed onto one line, violating standard Java formatting. Several methods are placed on single lines with multiple actions per line (e.g., getErrorResponse, singletonRequest), making the flow difficult to follow. The builder constructor places the super call and field assignment on the same line. Method indentation is inconsistent - some methods are inline with class declarations while others are properly separated. The nesting in singletonRequest is moderately deep but the chained method calls with inline List.of() make it harder to parse. While the class structure is logically organized and method names are clear, the formatting severely impacts readability. The intent of each method is discernible but requires extra effort due to the compact formatting. Overall, the code functions but violates common Java style conventions, making it significantly harder to read and maintain than properly formatted equivalent code.
Run 3
The code suffers from severe formatting issues that significantly hurt readability. Multiple statements are crammed onto single lines, especially in the builder class and singletonRequest method, violating the 'one action per line' principle. The import statements are also collapsed onto one line. Inconsistent brace placement and indentation make the structure hard to follow. While the overall class structure is logical, the formatting obscures it. The singletonRequest method has deep method chaining across lines that is hard to parse. The code would be substantially more readable with standard Java formatting - proper line breaks, consistent indentation, and one statement per line. The logic itself is straightforward, but presentation makes it unnecessarily difficult to read.
Run 1
Code Structure: The request class, nested builder, and helper methods are logically organized, but compressed formatting obscures their boundaries. Nesting: Control-flow nesting is minimal; nested object construction in singletonRequest is harder to follow. Clarity of intent: Descriptive names, standard overrides, and explicit setters communicate the purpose well. Code length: The implementation is concise without substantial redundancy, although excessive compression reduces readability. Action granularity: Multiple imports, declarations, statements, and chained setters share lines, making individual actions difficult to scan. Reading flow: Inconsistent indentation, inline annotations, and closing braces adjacent to new declarations repeatedly interrupt the reading flow. Overall, the underlying design is understandable, but poor formatting significantly undermines readability.
Run 2
Code Structure: The request class and nested builder have sensible responsibilities, but compressed imports and merged method boundaries obscure their organization. Nesting: Control-flow nesting is minimal, although nested object construction and List.of calls make singletonRequest harder to follow. Clarity of intent: Descriptive method names, parameter names, and fluent setters clearly communicate the request-building purpose. Code length: The implementation is concise without substantial redundancy, but excessive compression reduces readability rather than simplifying it. Action granularity: Multiple imports, statements, annotations, declarations, and setter calls share lines, making individual actions difficult to scan. Reading flow: Inconsistent indentation and braces placed alongside unrelated declarations interrupt otherwise logical progression through the class. Conventional formatting and one declaration or action per line would substantially improve readability.
Run 3
Code Structure: The request class, nested builder, and helper methods are logically organized, but compressed boundaries obscure that structure. Nesting: Control-flow nesting is minimal; nested object construction and List.of calls make singletonRequest harder to follow. Clarity of intent: Descriptive method names, parameter names, and setters communicate purpose clearly. Code length: The implementation is concise without substantial redundancy, but excessive compression sacrifices readability. Action granularity: Imports, annotations, declarations, braces, and multiple setter calls frequently share lines, making individual actions difficult to scan. Reading flow: Inconsistent indentation and line breaks disrupt otherwise natural progression through the class, especially in singletonRequest.