Sample
int-6c6756035c44-I09
Select one of ten low-readability unrelated code templates per class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.999 | 0–1; higher is more readable |
| Scalabrino | 0.602 | 0–1; higher is more readable |
| Dorn | 0.234 | 0–1; higher is more readable |
| Mi | 0.012 | 0–1; higher is more readable |
| LLOC | 1 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 19 | 0–20; mean of three runs |
| GPT-6.1 Sol | 19 | 0–20; mean of three runs |
| BTTF | 0.637 | 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. | 22 | +8.8 |
| 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.749 | −7.124 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 106.198 | −3.505 |
Intercept 8.87 + feature contributions = 7.042 (log-odds).
Score = sigmoid(7.042) = 0.999.
| Score | 0.602 |
|---|
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. | 220 | −5.653 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 220 | +2.745 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 1 | +1.001 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.013 | +0.817 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 8 | −0.46 |
| 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. | 21.905 | −0.104 |
Intercept 0.07 + feature contributions = -1.186 (log-odds).
Score = sigmoid(-1.186) = 0.234.
| Score | 0.012 |
|---|
| Score | 1 |
|---|
Run 1
The code is a well-documented, single-purpose interface. It has a clear logical structure, with a concise Javadoc explaining intent, context, and usage. There is no nesting, and the single method declaration makes the action granularity and reading flow straightforward. The code length is minimal and appropriate for an interface definition. The only minor deduction is that the Javadoc could be slightly shorter, but it remains highly readable overall.
Run 2
The code is highly readable. It defines a single-purpose interface with a clear name and one method. The Javadoc is excellent—it explains the interface's purpose, variations in formatting, and references concrete implementations. Structure is minimal and logical, with no nesting or unnecessary code. Intent is immediately clear. The action granularity is perfect: one method signature per line. Reading flow is natural, moving from high-level purpose to the single method definition. Only minor deduction is for a long Javadoc inline link, but it does not harm readability significantly.
Run 3
The code is highly readable. It has a clear, logical structure: a single interface with one method, preceded by a well-organized Javadoc comment. Nesting is effectively flat, with no conditional or loop complexity. The intent is explicit — the interface's purpose and the role of the formatting method are clearly documented. The code is concise, with no redundant or unnecessarily long sections. Action granularity is appropriately one action per line, as the method signature and body are simple. Reading flow is natural, moving from high-level documentation to the interface declaration and method. The only minor deduction is that the Javadoc could be slightly more compact, but overall this is an exemplary model of readable code.
Run 1
Code Structure: A logically organized interface with a single, focused method. Nesting: No nested control flow or unnecessary structural complexity. Clarity of intent: Descriptive interface and parameter names, supported by documentation explaining transport-specific formatting and examples; the method lacks explicit parameter and return documentation. Code length: The implementation is minimal, though the lengthy documentation link slightly reduces concision. Action granularity: The method declaration occupies its own line, with no combined actions. Reading flow: Standard Java ordering and consistent spacing make the code easy to scan, with only the long documentation reference interrupting the otherwise natural flow.
Run 2
Code Structure: The interface is logically organized, with documentation followed by a single method. Nesting: There is no nested logic. Clarity of intent: The interface name, typed parameter, return type, and Javadoc clearly communicate transport-specific frame formatting, though the method lacks its own parameter and return documentation. Code length: The implementation is minimal; the lengthy Javadoc link slightly reduces visual readability. Action granularity: The sole method declaration occupies one line, with no combined actions. Reading flow: The package, contextual documentation, and interface declaration follow a natural, conventional Java layout.
Run 3
Code Structure: A logically organized interface with a single, clearly defined responsibility. Nesting: No nested control flow or unnecessary structural complexity. Clarity of intent: The interface name, format method, typed parameter, and Javadoc clearly explain transport-specific frame formatting; method-level documentation could further clarify the return value. Code length: The implementation is minimal, and the documentation provides useful context, though the long Javadoc link is visually cumbersome. Action granularity: The single method declaration occupies its own line, with no combined actions. Reading flow: The package, explanatory documentation, interface declaration, and method appear in a natural order.