Sample
int-ffd19f7c7f10-I12
Inline all eligible single-use intermediate local variables
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.615 | 0–1; higher is more readable |
| Dorn | 0.354 | 0–1; higher is more readable |
| Mi | 0.447 | 0–1; higher is more readable |
| LLOC | 18 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 15.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 17 | 0–20; mean of three runs |
| BTTF | 0.601 | 0–1; higher is more readable |
Views
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 2193.355 | −72.381 |
| Source linesThe number of non-empty source lines. | 90 | +36 |
| 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.978 | −7.467 |
Intercept 8.87 + feature contributions = -34.977 (log-odds).
Score = sigmoid(-34.977) = 0.
| Score | 0.615 |
|---|
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. | 91 | −2.186 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 70 | +1.684 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 70 | −1.185 |
| 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. | 112.923 | −1.118 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 112.978 | +1.018 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 89.816 | +0.846 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.069 | +0.269 |
Intercept 0.07 + feature contributions = -0.601 (log-odds).
Score = sigmoid(-0.601) = 0.354.
| Score | 0.447 |
|---|
| Score | 18 |
|---|
Run 1
The code is generally well-structured and readable. It follows a logical organization with clear class inheritance, consistent method ordering, and meaningful names. Documentation comments explain non-obvious design decisions (e.g., O(log N) indexOf, comparator inconsistency handling). Nesting is minimal—methods are flat and focused. Most actions are one per line, though a few lines (e.g., the spliterator return and subListUnchecked return) pack multiple operations, slightly reducing clarity. The presence of TODO comments and platform-specific annotations adds some noise but remains understandable. Overall, the class is concise for its purpose, with clear intent and natural reading flow typical of Guava library code.
Run 2
The code demonstrates reasonably clear organization with a logical class hierarchy and well-documented methods. However, readability is hampered by complex method chains like the subListUnchecked implementation on a single line, and mixed override ordering with annotations. Nesting is minimal and the flow follows a logical progression, but dense type signatures and annotations introduce cognitive load. The comments explaining non-obvious design decisions around performance (indexOf/lastIndexOf, GWT behavior) are helpful but verbose in places. Overall, the code is maintainable and shows intent, yet falls short of highly readable due to occasional long lines, annotation clutter, and multi-purpose expressions.
Run 3
The code is well-structured and concise, with clear intent and good action granularity. It is flat, with minimal nesting. Comments explain design decisions and TODOs without excessive noise. The only minor deductions are for inconsistent indentation (e.g., in subListUnchecked and writeReplace) and the slightly long method chain in subListUnchecked, which slightly disrupts reading flow.
Run 1
Code Structure: Well-organized class with small, focused overrides and consistent delegation. Nesting: Almost entirely flat, with no nested control flow. Clarity of intent: Descriptive method names and comments explain performance choices and comparator consistency, although framework-specific annotations, abbreviations, and optimizer references require context. Code length: Concise implementations; lengthy TODO comments and a redundant override add some reading overhead but have documented purposes. Action granularity: Generally one action per line; subListUnchecked combines slicing, construction, and conversion in one long expression with unnecessary parentheses. Reading flow: Related lookup methods are grouped naturally, followed by sublist and iteration functionality. Minor formatting problems—an extra blank line, an overlong return statement, and inconsistent writeReplace indentation—reduce polish without substantially hindering comprehension.
Run 2
Code Structure: Logically organized into small, focused overrides with consistent delegation. Nesting: Nearly flat, with no nested control flow; the conditional expression is straightforward. Clarity of intent: Descriptive method names and comments explain lookup complexity and comparator-related correctness, though framework-specific annotations, abbreviations, and optimizer references require background knowledge. Code length: Implementation is concise, but lengthy TODO comments add clutter relative to the small method bodies. Action granularity: Generally one action per line; subListUnchecked compresses construction, delegation, and conversion into one long expression. Reading flow: Methods follow a natural progression from collection access to lookup, slicing, iteration, and serialization. Minor formatting issues—an unnecessary blank line, redundant parentheses, a long return statement, and inconsistent writeReplace indentation—interrupt otherwise clean reading.
Run 3
Code Structure: Logically organized into small, focused overrides with consistent delegation. Nesting: Nearly flat throughout, with no deeply nested control flow. Clarity of intent: Descriptive method names and comments explain performance goals and comparator-versus-equality behavior, though framework-specific annotations, abbreviations, and optimizer references require context. Code length: Implementation is concise, but lengthy TODO comments add some distraction. Action granularity: Generally one action per line; the subListUnchecked return combines construction, delegation, and conversion into a long expression. Reading flow: Methods follow a natural progression from delegation to lookup, slicing, and iteration. Minor formatting issues—including extra parentheses, a stray blank line, and inconsistent writeReplace indentation—slightly reduce polish.