Sample
int-601f9c016704-I02
Shorten method, parameter, and local names without collisions
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.99 | 0–1; higher is more readable |
| Scalabrino | 0.964 | 0–1; higher is more readable |
| Dorn | 0.847 | 0–1; higher is more readable |
| Mi | 0.671 | 0–1; higher is more readable |
| LLOC | 27 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 12 | 0–20; mean of three runs |
| GPT-6.1 Sol | 15 | 0–20; mean of three runs |
| BTTF | 0.689 | 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. | 128 | +51.2 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 1459.002 | −48.147 |
| 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.88 | −7.32 |
Intercept 8.87 + feature contributions = 4.603 (log-odds).
Score = sigmoid(4.603) = 0.99.
| Score | 0.964 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 123 | −3.319 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 74 | +1.822 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 127.778 | +1.376 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.033 | +0.617 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 78.752 | +0.466 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| 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. | 79.992 | +0.277 |
Intercept 0.07 + feature contributions = 1.709 (log-odds).
Score = sigmoid(1.709) = 0.847.
| Score | 0.671 |
|---|
| Score | 27 |
|---|
Run 1
The code has a clear overall structure with a single class and consistent formatting for fields, but readability is seriously harmed by the method naming. Methods like set(), is(), get(), set2(), get2(), set3(), get3(), etc. do not convey the property they modify or retrieve, making the intent ambiguous and forcing readers to inspect Javadoc or field initialization to understand each method's purpose. The Javadoc comments are helpful in describing intent, but they cannot compensate for non-semantic method names. The code length is moderate and action granularity is one action per line, which is good. However, the use of method names with numeric suffixes disrupts the natural reading flow and makes the class harder to navigate and maintain. A simple rename (e.g., setLazyInit(), isLazyInit()/getLazyInit()) would dramatically improve readability.
Run 2
The code has a clear, simple structure with a single class and logical grouping of related fields and accessors. Nesting is minimal and action granularity is one operation per line. Reading flow is natural, with fields at top followed by getters/setters. However, the method names like set2, get2, set3, etc. are artificial placeholders that significantly obscure intent, making the API ambiguous and hard to follow. The Javadoc is thorough but doesn't compensate for the poor method naming. Code length is reasonable, though some Javadoc comments are verbose for trivial accessors. Overall, the structure and formatting are strong, but the renameable method names are a notable readability flaw.
Run 3
The class has clear logical grouping of fields and accessors, making the overall structure easy to follow. Nesting is minimal and each method performs a single action. However, the method names are severely degraded: set(), is(), get(), set2(), get2(), set3(), get3(), etc. This destroys clarity of intent — it is not obvious which property each method manages. The Javadocs explain some but do not compensate for poor naming. Field placement is clean, but accessor/mutator pairing is disconnected by naming. Readability suffers greatly because the methods do not follow JavaBean conventions (e.g., isLazyInit, setLazyInit). The code is concise but communicates poorly. Overall, structure and simplicity exist but naming ambiguity makes grasping behavior unnecessarily difficult.
Run 1
Code Structure: Fields and corresponding accessors are logically grouped in a straightforward holder class. Nesting: Methods are flat, with only simple boolean and ternary expressions. Clarity of intent: Descriptive fields and detailed documentation explain behavior, but generic method names such as set2, get3, and is obscure purpose and force readers to inspect implementations or comments. Some @param names also differ from actual parameter names. Code length: Implementations are concise; extensive documentation adds length but mostly provides useful context. Action granularity: Each statement performs one clear assignment or return. Reading flow: Consistent formatting and accessor ordering support natural reading, although numbered method names weaken navigation and make usage less self-explanatory.
Run 2
Code Structure: Fields and corresponding accessors are logically grouped in a focused defaults-holder class. Nesting: Methods are flat, with only simple boolean and ternary expressions. Clarity of intent: Descriptive fields, constants, nullability annotations, and Javadoc explain behavior, but generic method names such as set2/get2 and is obscure intent at call sites. Some @param names also differ from actual parameters. Code length: Implementations are concise; extensive documentation adds length but generally provides useful context. Action granularity: Each statement performs one clear assignment or return. Reading flow: Consistent formatting and setter/getter pairing support natural reading, although numbered method names force readers to consult documentation or bodies to understand each operation.
Run 3
Code Structure: Fields and corresponding accessor pairs are logically organized in a straightforward holder class. Nesting: Methods are flat, with only simple boolean and ternary expressions. Clarity of intent: Descriptive fields and detailed documentation explain behavior, but generic method names such as set, is, get, and numbered variants severely weaken discoverability and make callers ambiguous. Some @param names also differ from actual parameter names. Code length: Implementations are concise; documentation adds length but mostly provides useful context. Action granularity: Each statement performs one clear assignment or return. Reading flow: Consistent formatting and accessor grouping support natural reading, although understanding each generically named method requires consulting its documentation or body.