Sample
int-44bbac229198-I12
Inline all eligible single-use intermediate local variables
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 1 | 0–1; higher is more readable |
| Scalabrino | 0.899 | 0–1; higher is more readable |
| Dorn | 0.728 | 0–1; higher is more readable |
| Mi | 0.399 | 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.747 | 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. | 51 | +20.4 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 382.574 | −12.625 |
| 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.905 | −7.358 |
Intercept 8.87 + feature contributions = 9.288 (log-odds).
Score = sigmoid(9.288) = 1.
| Score | 0.899 |
|---|
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. | 52 | −0.805 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.015 | +0.793 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 95.962 | +0.744 |
| 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. | 95.981 | −0.4 |
| 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. | 50.845 | +0.301 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 18 | −0.115 |
Intercept 0.07 + feature contributions = 0.986 (log-odds).
Score = sigmoid(0.986) = 0.728.
| Score | 0.399 |
|---|
| Score | 1 |
|---|
Run 1
This code demonstrates excellent readability. The interface is well-structured with clear separation between documentation, constants, and the method signature. Javadoc comments are thorough and explain the purpose, parameters, and exceptions in detail. The method signature is concise yet descriptive, with clear parameter names (ps, paramIndex, sqlType, typeName) and proper use of @Nullable annotation. Nesting is minimal since this is a single interface declaration. The code follows Spring Framework conventions, making it familiar to experienced Java developers. While the Javadoc is comprehensive, it's not excessive for a public API. The single constant TYPE_UNKNOWN is well-documented. The code achieves strong clarity of intent - it clearly defines a callback interface for setting complex SQL type values. Overall, this is exemplary Java API code that balances thorough documentation with clean implementation.
Run 2
This is an exceptionally readable interface definition. The code structure is logical, with a clear separation between constants, documentation, and method signature. Nesting is nonexistent, as expected for an interface. The Javadoc comments thoroughly explain the intent, usage, and contracts, making the purpose unambiguous. Code length is appropriate—concise yet complete with necessary context. Action granularity is ideal, with a single method declaration and constant definition. Reading flow is natural, starting with the package, imports, class-level documentation, then members in a logical order. The use of proper annotations (@Nullable) and clear parameter naming further enhances clarity. Overall, this represents exemplary Java code that balances documentation with clean, minimal implementation.
Run 3
The code is highly readable. It is a concise interface definition with clear Javadoc. Structure is logical: package, imports, interface constant, and single method. Nesting is non-existent. Intent is explicit - defining a callback for setting database-specific values. Length is minimal for the functionality. Action granularity is appropriate, with one field and one method declaration. Reading flow is natural, with documentation preceding implementation details. The only minor deduction is that the Javadoc could be slightly more concise, but it is well-organized and informative.
Run 1
Code Structure: Cleanly organized into imports, interface documentation, a constant, and a single callback declaration. Nesting: Minimal, with only the interface scope and no nested control flow. Clarity of intent: Descriptive interface and method names, detailed Javadoc, and explicit nullability clearly communicate the contract; the abbreviated parameter name 'ps' is a minor weakness. Code length: The implementation is concise, though documentation contains some repetitive wording. Action granularity: Each declaration is separate, with the long method signature sensibly continued onto another line. Reading flow: Natural top-to-bottom progression and consistent formatting make the interface easy to scan; extra blank lines introduce only minor visual noise.
Run 2
Code Structure: The interface is logically organized into imports, interface documentation, a constant, and a single method contract. Nesting: There is no control-flow nesting, making it easy to scan. Clarity of intent: Descriptive naming and thorough Javadoc clearly explain the callback’s purpose, parameters, optional type name, and exception behavior; the abbreviated parameter name 'ps' is a minor weakness. Code length: The executable declarations are concise, though the documentation contains some repetitive wording. Action granularity: Each declaration has a single responsibility, with no combined actions. Reading flow: The progression from interface purpose to constant and method is natural, and the wrapped method signature remains easy to follow.
Run 3
Code Structure: Clearly organized into package, imports, interface documentation, constant, and method declaration. Nesting: Flat interface with no nested control flow. Clarity of intent: Descriptive names and detailed Javadoc explain the callback, parameters, optional type name, and exception behavior; the abbreviated parameter name 'ps' is a minor weakness. Code length: The implementation is minimal, though some documentation is repetitive. Action granularity: Each declaration has a single responsibility, with no combined actions. Reading flow: Conventional Java ordering and consistent formatting make the code easy to follow; extra blank lines introduce only minor visual noise.