Sample
int-46d02d43e77f-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.636 | 0–1; higher is more readable |
| Dorn | 0.657 | 0–1; higher is more readable |
| Mi | 0.093 | 0–1; higher is more readable |
| LLOC | 8 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 11.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14 | 0–20; mean of three runs |
| BTTF | 0.768 | 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. | 629.447 | −20.772 |
| Source linesThe number of non-empty source lines. | 25 | +10 |
| 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.811 | −7.216 |
Intercept 8.87 + feature contributions = -9.118 (log-odds).
Score = sigmoid(-9.118) = 0.
| Score | 0.636 |
|---|
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. | 110 | −0.994 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 109.923 | +0.969 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.066 | +0.302 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 16 | −0.184 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 25 | +0.151 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 24.802 | −0.063 |
Intercept 0.07 + feature contributions = 0.65 (log-odds).
Score = sigmoid(0.65) = 0.657.
| Score | 0.093 |
|---|
| Score | 8 |
|---|
Run 1
The code has reasonable logical organization and flat nesting, but readability suffers from poor formatting. Multiple statements are placed on the same line as declarations, method signatures, and opening braces, which disrupts the natural reading flow and reduces clarity of intent. While the class is concise, the compressed layout makes it unnecessarily difficult to scan. Each action is not clearly separated onto its own line, and the reading flow feels disorganized. With standard formatting—placing each statement and brace on separate lines—the readability would improve significantly. The code is not unreadable, but the formatting issues keep it from being highly readable.
Run 2
The code is functional but poorly formatted, which hurts readability. The structure is logical, but the layout is tangled: constructor and method signatures are placed on the same line as fields and other declarations. Nesting is shallow, and each action is mostly separate, but line breaks are misused (e.g., `public SocksAuthScheme authScheme() { return authScheme; }` on one line). Intent is clear due to Javadoc, but comments are inconsistently placed. Code length is short, which is good. However, reading flow is disrupted because related code is not visually separated or aligned. Proper formatting—putting braces on their own lines, separating method declarations, and aligning Javadoc—would significantly improve the score. The logic itself is easy to follow, but the current presentation makes it unnecessarily difficult to scan.
Run 3
The code is a small class with a clear purpose, but readability is undermined by severe formatting issues. Multiple statements are packed onto single lines (field declaration, constructor, methods), disrupting action granularity and reading flow. The comments also break natural structure by being placed mid-line. Nesting is flat and the code is concise, which is good, but the lack of line breaks makes it feel dense and harder to scan. The class name and intent are clear, but the visual layout prevents a higher score despite the simple logic.
Run 1
Code Structure: The class logically groups its field, constructor, accessor, and encoder, but compressed formatting weakens visual separation. Nesting: Minimal nesting makes the code easy to follow. Clarity of intent: Descriptive names, explicit null validation, and documentation clearly convey the response's purpose. Code length: The implementation is concise without unnecessary logic, although accessor documentation is repetitive. Action granularity: Field and constructor declarations share a line, while method declarations, statements, and closing braces are crowded together, reducing scanability. Reading flow: The member order is natural, but inconsistent line breaks and inline annotations interrupt an otherwise straightforward reading experience.
Run 2
Code Structure: The class logically separates state, construction, access, and encoding, but compressed formatting obscures these boundaries. Nesting: Minimal nesting makes the code easy to follow. Clarity of intent: Descriptive names, explicit types, and documentation clearly communicate the response's purpose. Code length: Appropriately short, although the getter documentation is repetitive. Action granularity: The field and constructor declaration share a line, and method declarations, statements, and closing braces are crowded together. Reading flow: The member order is natural, but inconsistent line breaks and inline annotations interrupt scanning. Conventional formatting would substantially improve readability without changing the logic.
Run 3
Code Structure: The class logically groups its field, constructor, accessor, and encoder, but compressed formatting obscures member boundaries. Nesting: Minimal nesting makes the code easy to follow. Clarity of intent: Descriptive types and method names, null validation, and documentation clearly communicate purpose. Code length: Appropriately short for a simple response class, although the accessor documentation is repetitive. Action granularity: The field and constructor share a line, and method declarations, statements, and closing braces are crowded together rather than consistently separated. Reading flow: The constructor-to-accessor-to-encoder sequence is natural, but inline annotations and irregular line breaks interrupt scanning.