Sample
int-61eb3c7c6a06-I03
Replace method, parameter, and local names with length-matched, meaningful but unrelated names
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.582 | 0–1; higher is more readable |
| Dorn | 0.681 | 0–1; higher is more readable |
| Mi | 0.125 | 0–1; higher is more readable |
| LLOC | 7 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 14.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14.67 | 0–20; mean of three runs |
| BTTF | 0.543 | 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. | 1631.95 | −53.854 |
| Source linesThe number of non-empty source lines. | 47 | +18.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.813 | −7.219 |
Intercept 8.87 + feature contributions = -33.403 (log-odds).
Score = sigmoid(-33.403) = 0.
| Score | 0.582 |
|---|
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. | 121.958 | −1.5 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 121.958 | +1.163 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 44 | +0.785 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 48 | −0.663 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.07 | +0.263 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 46.805 | +0.244 |
Intercept 0.07 + feature contributions = 0.76 (log-odds).
Score = sigmoid(0.76) = 0.681.
| Score | 0.125 |
|---|
| Score | 7 |
|---|
Run 1
The code has a clear class structure with a single responsibility, flat method bodies with minimal nesting, and concise method implementations. However, readability is undermined by misleading method names like 'validateAddress', 'validateRequest', and 'validateBalance' that imply validation but actually perform core operations. Several parameters with generic or placeholder names such as 'flag', 'cachedConfig', 'session', and 'finalUser' obscure intent. The use of null with a comment is acceptable but adds complexity. The class is short and each method performs one logical action, which aids comprehension, but the disconnection between method names and their actual behavior significantly reduces clarity and trust in the code.
Run 2
The code has clear structure with logical class organization and flat method nesting. Method names like 'validateAddress' and 'validateRequest' suggest validation but actually throw UnsupportedOperationException or delegate logic, creating ambiguity about intent. The class and variable naming is generally descriptive, but parameters like 'flag' and 'cachedConfig' in the constructor are vague. Code length is reasonable with minimal duplication. Each method performs a single action, maintaining good action granularity. Reading flow is natural - the class hierarchy extends AbstractRocksDBTimeOrderedSegmentedBytesStore, and methods are ordered logically. However, the 'validateRequest' method has a six-parameter call with a null argument explained only by a comment, reducing readability slightly. The repetition of 'Long.MAX_VALUE' creates some noise. Overall, the code is moderately readable but could benefit from clearer method naming and reduced parameter complexity.
Run 3
The code is generally readable with clear class structure and logical organization. The inheritance and constructor are straightforward. However, there are several issues affecting readability. Method naming is misleading: 'validateAddress', 'validateRequest', and 'validateBalance' suggest validation but perform store-specific operations or throw exceptions. Parameters like 'flag', 'cachedConfig', 'message', 'finalUser', and 'session' have ambiguous names that don't clearly convey their purpose. The 'validateRequest' method has a multi-line call with null comments that force the reader to understand context. Action granularity is mixed - some lines contain multiple logical operations. Nesting is acceptable with only two levels. Reading flow suffers from the disconnect between method names and their actual behavior, forcing the reader to parse the implementation to understand what each method truly does.
Run 1
Code Structure: Logically organized into a constructor and three short overrides, with clear separation of responsibilities. Nesting: Very flat, with no nested control flow. Clarity of intent: The class documentation, superclass, and schema types convey the storage purpose, but names such as validateAddress, validateBalance, flag, and finalUser obscure actual behavior. Two validation-named methods simply throw unsupported-operation exceptions. Code length: Concise, with little unnecessary code. Action granularity: Each statement performs one main action; multiline calls make argument lists easier to scan. Reading flow: Generally natural, but inconsistent indentation, tightly packed imports, and misleading identifiers interrupt readability. The comment explaining the null argument is helpful.
Run 2
Code Structure: The class is logically organized into a constructor and short overrides, although import grouping and parameter alignment are inconsistent. Nesting: There is no meaningful control-flow nesting, making the code easy to scan. Clarity of intent: The class documentation and schema types explain the storage purpose, but names such as validateAddress, validateBalance, flag, message, and finalUser obscure actual responsibilities. Unsupported-operation messages identify the restriction without explaining why these overrides are required. Code length: The implementation is concise, with little unnecessary code. Action granularity: Each statement performs a single clear action; multiline calls improve readability. Reading flow: Constructor-to-overrides ordering is natural, but misleading method names and uneven formatting interrupt comprehension. The comment explaining the null argument provides useful context.
Run 3
Code Structure: The class is logically organized around a constructor and three overrides, with clear separation of responsibilities. Nesting: There is no control-flow nesting, making the code easy to scan. Clarity of intent: The class documentation and delegation provide context, but names such as validateAddress, validateBalance, flag, and finalUser are misleading or vague. Unsupported operations are explicit, although their messages do not explain why they are unsupported. Code length: The implementation is concise, with little unnecessary code. Action granularity: Each statement performs one main action; multiline constructor arguments and delegation remain readable. Reading flow: The overall flow is straightforward, but inconsistent indentation, imports without grouping, unexplained Long.MAX_VALUE arguments, and ambiguous naming interrupt comprehension.