Sample
int-fd8cf99c5945-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.839 | 0–1; higher is more readable |
| Dorn | 0.305 | 0–1; higher is more readable |
| Mi | 0.291 | 0–1; higher is more readable |
| LLOC | 28 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 5 | 0–20; mean of three runs |
| GPT-6.1 Sol | 10.67 | 0–20; mean of three runs |
| BTTF | 0.503 | 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. | 2107.815 | −69.558 |
| Source linesThe number of non-empty source lines. | 85 | +34 |
| 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.516 | −6.774 |
Intercept 8.87 + feature contributions = -33.462 (log-odds).
Score = sigmoid(-33.462) = 0.
| Score | 0.839 |
|---|
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. | 160.965 | −3.153 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 86 | −2.009 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 160.977 | +1.793 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 44 | +0.785 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 84.926 | +0.777 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.044 | +0.517 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
Intercept 0.07 + feature contributions = -0.822 (log-odds).
Score = sigmoid(-0.822) = 0.305.
| Score | 0.291 |
|---|
| Score | 28 |
|---|
Run 1
The code has severe readability issues. The package declaration and import statements are crammed onto one line, violating standard formatting. Multiple method definitions and comments are placed on the same line, making the structure confusing. The waitObject method contains deeply nested logic with while(true), if statements, and synchronized blocks all compressed together. Action granularity is poor - multiple actions appear on single lines throughout. The reading flow is disrupted by inconsistent spacing, misplaced comments, and methods that begin immediately after previous ones end. While individual method names and some Javadoc are clear, the overall presentation makes it difficult to follow the code's intent. The code appears to have lost all standard formatting, possibly through an automated process that removed line breaks. Proper indentation, line breaks between methods, and consistent spacing would significantly improve readability.
Run 2
The code has severe readability issues primarily due to formatting and structure. Multiple declarations, Javadocs, and method implementations are crammed onto single lines (e.g., Time SYSTEM, sleep(), waitObject(), timer(), etc.), violating action granularity and making parsing mentally taxing. Braces and control flow are inconsistently indented, leading to confusing nesting and reading flow. While method names and intent are generally clear, the presentation obscures the logic. The interface is not overly long but becomes hard to follow because of the compressed layout and mixed organization. Several methods are missing proper line breaks before annotations or closing braces. Overall, the code requires significant reformatting to be considered readable, despite the underlying logic being straightforward.
Run 3
The code is severely compromised by formatting issues. Multiple statements are crammed onto single lines, such as the field declaration followed immediately by a Javadoc comment, and method signatures mixed with implementation code. Braces and indentation are inconsistent, making block boundaries difficult to trace. While the logical structure of the interface itself is reasonable, the physical layout obscures it almost completely. Nesting is minimal, but the poor formatting creates an equivalent cognitive burden. Several methods like `waitObject` and `waitForFuture` bury multiple operations within a single line or poorly indented blocks. Reading flow is highly unnatural; a reader must constantly pause to parse where one statement ends and another begins. Action granularity is violated repeatedly. The code essentially looks like a result of bad automated formatting or manual minification, negating the otherwise clear intent and concise design of the underlying API.
Run 1
Code Structure: The interface groups related time utilities logically, but compressed formatting obscures method boundaries. Nesting: Moderate nesting in synchronization, loops, and exception handling is reasonable, though crowded braces make it harder to follow. Clarity of intent: Descriptive method names, types, and thorough documentation clearly communicate purpose. Code length: Implementations are concise without substantial redundancy; documentation adds useful context. Action granularity: Multiple declarations, statements, comments, and braces share lines, making individual operations difficult to distinguish. Reading flow: Inconsistent indentation and abrupt transitions between methods disrupt otherwise natural sequencing. Overall, clear semantics and logical organization are undermined by poor formatting.
Run 2
Code Structure: The interface logically groups clock, timer, and waiting operations, but compressed formatting obscures method boundaries. Nesting: Most methods are shallow; waitObject has moderate nesting through synchronization, looping, and conditionals. Clarity of intent: Descriptive names, types, and detailed documentation make the purpose clear. Code length: Implementations are concise, and most documentation provides useful context rather than unnecessary verbosity. Action granularity: Several lines combine declarations, conditionals, statements, and closing braces, making individual actions harder to distinguish. Reading flow: Inconsistent indentation and comments attached to preceding declarations disrupt scanning, especially in waitObject and waitForFuture. Overall, the design is understandable, but poor formatting substantially reduces readability.
Run 3
Code Structure: The interface logically groups clock, timer, and waiting operations, but compressed formatting obscures method boundaries. Nesting: Mostly shallow; waitObject adds synchronization, a loop, and conditionals, made harder to follow by collapsed braces. Clarity of intent: Descriptive method names, explicit time units, and useful Javadoc clearly communicate purpose. Code length: Implementations are reasonably concise, although extensive documentation increases scanning effort; compression saves lines without improving readability. Action granularity: Several lines combine declarations, conditionals, calls, and closing braces, undermining one-action-per-line clarity. Reading flow: Inconsistent indentation, comments attached to preceding declarations, and multiple constructs on single lines interrupt otherwise natural organization. Overall, clear naming and documentation partly offset substantial formatting problems.