Sample
int-764e33866904-I10
Remove about 40% of line-break groups while retaining structure
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.999 | 0–1; higher is more readable |
| Scalabrino | 0.968 | 0–1; higher is more readable |
| Dorn | 0.63 | 0–1; higher is more readable |
| Mi | 0.212 | 0–1; higher is more readable |
| LLOC | 9 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 3.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14.67 | 0–20; mean of three runs |
| BTTF | 0.734 | 0–1; higher is more readable |
Views
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Source linesThe number of non-empty source lines. | 40 | +16 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 339.002 | −11.187 |
| 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.565 | −6.848 |
Intercept 8.87 + feature contributions = 6.835 (log-odds).
Score = sigmoid(6.835) = 0.999.
| Score | 0.968 |
|---|
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. | 116.976 | −1.289 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 111.366 | +0.992 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.027 | +0.676 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 41 | −0.415 |
| 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. | 39.805 | +0.147 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 20 | −0.045 |
Intercept 0.07 + feature contributions = 0.533 (log-odds).
Score = sigmoid(0.533) = 0.63.
| Score | 0.212 |
|---|
| Score | 9 |
|---|
Run 1
The code is nearly unreadable due to severe formatting issues. Interface declarations, method definitions, and Javadocs are collapsed onto single lines, destroying visual separation and hierarchy. The opening brace for the interface is missing and the closing brace is buried at the end of a line with other code. Comments are not on their own lines, further obscuring structure. While the individual method names and Javadoc content are clear, the presentation makes it extremely difficult to parse the logical organization. Reading flow is non-existent; the eye cannot find natural breakpoints. The code violates nearly all readability criteria: structure is tangled, clarity is compromised by layout, and action granularity is effectively multiple logical actions per physical line. This appears to be the result of aggressive minification or a broken formatter, completely negating the otherwise simple and concise interface design.
Run 2
The code suffers from severe structural issues that obstruct readability. The interface declaration and class Javadoc are merged on the same line, as are the first field declaration and its comment. Javadoc for methods and fields is inconsistently formatted and sometimes placed inline rather than on dedicated lines, breaking conventional expectations. Deeply unnatural formatting, such as annotations and method declarations sharing lines, creates visual clutter. While the code is logically an interface with a singleton 'NO_STATE' implementation, the lack of proper separation, inconsistent indentation, and compressed layout make it hard to scan. There is excessive Javadoc verbosity relative to the simple methods, but no clarity benefit. Nesting is shallow, which is the primary positive, but the action granularity is poor because multiple definitions share lines. Overall, the reader must parse structure manually rather than through consistent formatting, making the code significantly harder to read despite its short length.
Run 3
The code is severely compromised by formatting and structural issues. The package declaration, interface declaration, and first Javadoc comment are all on a single line, making the intent difficult to parse immediately. The anonymous inner class implementing NO_STATE is crammed into the same line as the field declaration and its methods are inconsistently formatted — some on one line, others spread across multiple lines with annotations or closing braces sharing lines. Method declarations like boolean started(); appear on the same line as Javadoc, while others are separated, creating inconsistency. The code violates basic Java conventions where each top-level declaration, field, and method should occupy its own line. The overall structure is tangled and visually dense, obscuring logical organization. While the individual Javadoc comments are informative, the lack of whitespace and consistent formatting makes the code extremely difficult to read and maintain. Action granularity is poor, with multiple logical actions jammed onto single lines.
Run 1
Code Structure: The interface logically groups state queries and a stateless implementation, but cramped formatting obscures boundaries. Nesting: Shallow nesting makes the anonymous implementation easy to follow. Clarity of intent: Descriptive method names and Javadoc clearly explain stream states and the NO_STATE behavior. Code length: The implementation is concise, although documentation repeats descriptions in return tags. Action granularity: Each method performs a single action, but declarations, annotations, comments, and closing braces sometimes share lines. Reading flow: The method order is natural, but inconsistent line breaks and inline Javadoc endings interrupt scanning.
Run 2
Code Structure: The interface logically groups three state queries and a stateless implementation. Nesting: Shallow nesting keeps the anonymous implementation easy to follow. Clarity of intent: Descriptive method names and Javadoc clearly explain stream states, although the NO_STATE description has a grammatical error. Code length: The implementation is concise, but Javadoc repeats descriptions in return tags. Action granularity: Methods each perform one simple action, yet package declarations, comments, annotations, and braces sometimes share lines, weakening visual separation. Reading flow: The order is natural, but inconsistent line breaks and cramped declaration boundaries interrupt scanning. Consistent formatting would substantially improve readability.
Run 3
Code Structure: The interface logically groups three state queries and a stateless implementation. Nesting: Shallow nesting makes the anonymous implementation easy to follow. Clarity of intent: Descriptive method names and Javadoc clearly explain the stream states and constant behavior. Code length: The implementation is concise, although documentation repeats some descriptions. Action granularity: Methods each perform one simple action, but package declarations, comments, annotations, and declarations sometimes share lines, reducing visual separation. Reading flow: The order is natural, but inconsistent line breaks and cramped closing braces interrupt scanning. Conventional formatting would substantially improve readability.