Sample
int-469158f17a02-SRC
Unmodified source class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.998 | 0–1; higher is more readable |
| Scalabrino | 0.886 | 0–1; higher is more readable |
| Dorn | 0.698 | 0–1; higher is more readable |
| Mi | 0.293 | 0–1; higher is more readable |
| LLOC | 9 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 18.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 18.67 | 0–20; mean of three runs |
| BTTF | 0.631 | 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. | 64 | +25.6 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 653.531 | −21.567 |
| 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.466 | −6.699 |
Intercept 8.87 + feature contributions = 6.204 (log-odds).
Score = sigmoid(6.204) = 0.998.
| Score | 0.886 |
|---|
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. | 122 | −1.502 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 121.985 | +1.164 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 54 | −0.876 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.032 | +0.627 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 63.78 | +0.482 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 35 | +0.473 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
Intercept 0.07 + feature contributions = 0.836 (log-odds).
Score = sigmoid(0.836) = 0.698.
| Score | 0.293 |
|---|
| Score | 9 |
|---|
Run 1
The code is highly readable due to its clean interface definition with clear Javadoc comments explaining each method's purpose, parameters, and return values. The structure is logical with imports, class-level documentation, method declarations, and descriptive comments in a consistent order. Nesting is minimal since this is an interface with no method bodies. Each method has a single responsibility and clear intent, such as 'restore', 'clear', and 'isRestoringActive'. The code is concise with no unnecessary length, and each action is on its own line, following standard Java formatting. Reading flow is natural, grouping related methods and providing return value explanations, especially for complex boolean methods like 'allChangelogsCompleted'.
Run 2
This interface is highly readable. It has a clear, logical structure with well-grouped imports and a succinct class-level JavaDoc referencing the implementation. Each method represents a single, clearly defined action, contributing to minimal nesting and a flat, intuitive organization. The code length is appropriate; no method is unnecessarily verbose. The intent of each operation is explicitly documented, and the JavaDoc comments provide valuable context, especially for methods like allChangelogsCompleted, which clarifies edge-case behavior. The reading flow is natural, moving from restoration state transitions to introspection and cleanup methods. Overall, it exemplifies clean, maintainable API design.
Run 3
This code is highly readable. It is a well-documented Java interface with a clear purpose: defining the contract for a ChangelogReader. The structure is logical, with imports grouped and methods ordered in a cohesive manner. Nesting is non-existent since it's an interface. Each method has a clear, single responsibility and is documented with Javadoc comments explaining intent, parameters, and return values. The code is concise, avoiding unnecessary complexity. Action granularity and reading flow are excellent as each method declaration stands alone with descriptive naming. Minor deductions only because some Javadoc comments could be slightly more detailed, but overall this is exemplary readable code.
Run 1
Code Structure: A well-organized interface groups related changelog operations with consistent documentation. Nesting: No nested control flow, making the declarations easy to scan. Clarity of intent: Descriptive method names, explicit types, and Javadoc communicate responsibilities well, though 'transit' is awkward wording and mode-transition naming is inconsistent. Code length: Concise declarations with mostly useful documentation; the completion explanation is slightly repetitive. Action granularity: Each method declaration occupies its own line and represents a distinct operation. Reading flow: Methods progress naturally from restoration and mode management to status queries and cleanup. Minor weaknesses include missing spacing around the package/import sections and placing isEmpty() after clear() rather than alongside other status queries.
Run 2
Code Structure: A well-organized interface groups related changelog restoration, mode switching, status queries, and cleanup operations. Nesting: Flat declarations with no nested control flow make scanning easy. Clarity of intent: Descriptive method names, explicit types, and Javadoc clearly communicate responsibilities; minor awkward wording such as 'Transit to' slightly reduces polish. Code length: Concise declarations and mostly useful documentation avoid unnecessary complexity, though the completion explanation is somewhat repetitive. Action granularity: Each method declaration occupies its own line and represents a focused operation. Reading flow: Methods follow a natural progression from restoration to mode control, completion information, and cleanup. Import grouping and spacing could be improved slightly.
Run 3
Code Structure: A focused interface groups related changelog operations logically, with clear separation between declarations. Nesting: Flat structure with no nested control flow. Clarity of intent: Descriptive method names, explicit types, and Javadocs explain responsibilities and return values; minor awkward wording such as 'Transit to' slightly reduces polish. Code length: Concise declarations with proportionate documentation, although the completion explanation is somewhat repetitive. Action granularity: Each method declaration occupies its own line and represents a distinct operation. Reading flow: Methods progress naturally from restoration and mode switching to status queries and cleanup. Import grouping could be improved with blank lines, but overall readability is excellent.