Sample
int-45e88f79f4d5-I11
Split eligible integer literals into pairs of short-named intermediate variables
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 | 18.67 | 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
This code is highly readable. It consists of a single, well-defined interface with a clear purpose: formatting SockJS frames. The class-level Javadoc is thorough and provides excellent context, including examples and references. The structure is flat and logical, with no unnecessary nesting. The method is concise and its intent is obvious from its signature and documentation. Code length is minimal, with one clear action per line. The reading flow is natural—from purpose, to examples, to the contract. The only minor deduction is for the long, fully-qualified reference in the Javadoc, which slightly breaks the reading flow.
Run 3
The code is highly readable. It has a clear, logical structure: package declaration, a well-written Javadoc, and a minimal interface definition. Nesting is nonexistent. The intent is unambiguous—the interface defines a single formatting contract. Code length is concise and appropriate, with no unnecessary methods or fields. Action granularity is ideal; each element (package, import, interface, method) occupies its own logical line. Reading flow is natural: the Javadoc explains the purpose before the code is declared, and the documentation references implementations for further clarity. Minor deduction only because the Javadoc is slightly verbose, but overall this is an exemplary clean interface.
Run 1
Code Structure: A clean, single-purpose interface with one method. Nesting: No nested logic, making the declaration immediately understandable. Clarity of intent: Descriptive interface and method names, a typed parameter, and detailed Javadoc clearly explain transport-specific frame formatting. Code length: The implementation is minimal; documentation is useful but somewhat lengthy relative to the declaration. Action granularity: The sole method declaration occupies its own line, with no combined actions. Reading flow: The conventional package, documentation, interface, and method ordering is natural. Minor readability drawbacks are the long Javadoc link and the awkward phrase 'resulting in a content.'
Run 2
Code Structure: A clean, single-purpose interface with one method. Nesting: No nested logic, making it immediately readable. Clarity of intent: Descriptive interface and parameter types, supported by Javadoc explaining transport-specific formatting; method-level documentation could clarify the return value. Code length: The implementation is minimal, while the documentation provides useful context, though its long link slightly reduces readability. Action granularity: The sole method declaration occupies its own line with no combined actions. Reading flow: Conventional package, documentation, interface, and method ordering creates a natural progression.
Run 3
Code Structure: A clean, logically organized interface with one formatting method. Nesting: No nested logic or control flow. Clarity of intent: The interface name, method signature, and Javadoc clearly explain transport-specific SockJS frame formatting, though the method lacks parameter and return documentation. Code length: The implementation is minimal; the explanatory documentation is useful, although the long cross-reference is visually cumbersome. Action granularity: The single declaration occupies its own line, with no combined actions. Reading flow: The package, documentation, interface, and method follow a natural Java layout.