Sample
int-440da57d0073-I04
Replace method, parameter, and local names with deterministic ProGuard-style short identifiers
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.655 | 0–1; higher is more readable |
| Dorn | 0.281 | 0–1; higher is more readable |
| Mi | 0.555 | 0–1; higher is more readable |
| LLOC | 37 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 12.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12.67 | 0–20; mean of three runs |
| BTTF | 0.443 | 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. | 3331.002 | −109.923 |
| Source linesThe number of non-empty source lines. | 129 | +51.6 |
| 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.71 | −7.065 |
Intercept 8.87 + feature contributions = -56.518 (log-odds).
Score = sigmoid(-56.518) = 0.
| Score | 0.655 |
|---|
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. | 130 | −3.567 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 86 | +2.238 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 86 | −1.553 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 128.812 | +1.391 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 97.631 | +0.771 |
| 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. | 99.962 | −0.569 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.068 | +0.281 |
Intercept 0.07 + feature contributions = -0.938 (log-odds).
Score = sigmoid(-0.938) = 0.281.
| Score | 0.555 |
|---|
| Score | 37 |
|---|
Run 1
The code has serious readability issues. Method names like 'a', 'b', 'a()', and 'advance()' are completely uninformative, obscuring intent. Parameters named 'a', 'b', 'c', 'd' are equally poor. The structure mixes public API, internal logic, and nested classes in a way that makes the abstract iterator pattern harder to follow. Deep nesting is moderate but the while(true) loops with nested conditionals add complexity. The extensive comments attempt to clarify behavior but are lengthy and sometimes reference mysterious names ('successorIterator', 'advance'), suggesting code clarity relies too heavily on annotation. Action granularity is acceptable but comprehension is severely hindered by naming and abstract class design. Reading flow is disrupted by poor naming and multi-line comments that feel like they compensate for unclear code.
Run 2
The code is moderately readable but suffers from poor naming and somewhat confusing structure. The class hierarchy is logical, and comments help explain complex logic, but method names like 'a', 'b', and 'a()' (overloaded in subclasses) severely hurt clarity. The use of single-letter parameter names ('a', 'b', 'c', 'd', 'e') obscures intent. Nesting is mostly flat, which is good, but the Undirected iterator's while-true with nested while loops adds complexity. Action granularity is generally reasonable, with one operation per line. The reading flow is disrupted by cryptic names and the need to track state across fields. While the logic is compact, it sacrifices self-documentation for brevity.
Run 3
The code is generally well-structured with clear separation of concerns between the abstract iterator and its directed/undirected implementations. Javadoc comments effectively explain the non-obvious logic, especially in the Undirected case. However, readability is significantly impacted by the use of single-letter method names (a(), b()) and parameter names (a, b, c, d), which obscure intent and force readers to rely on context. The nested while loops create moderate nesting depth, though the logic remains manageable. Action granularity is mostly one operation per line, aiding comprehension. The undirected iterator's visited-node logic is complex but well-documented. Overall, the code would be more readable with descriptive names.
Run 1
Code Structure: Shared iterator state and separate directed/undirected implementations provide logical organization. Nesting: Mostly shallow, though the undirected traversal uses nested loops and a conditional. Clarity of intent: Descriptive fields and detailed comments explain traversal and duplicate suppression, but single-letter methods and parameters obscure meaning. Calls to advance() do not match the declared b() helper, and the a() overrides obscure the expected iterator computation method, making the code harder to follow. Code length: Implementation is reasonably concise, but the lengthy traversal example interrupts scanning. Action granularity: Statements generally perform one action per line. Reading flow: Initialization, traversal, and termination follow a natural sequence, but inconsistent method names and nullable-state handling require extra interpretation.
Run 2
Code Structure: The shared iterator base and separate directed/undirected implementations provide logical organization. Nesting: Directed traversal is shallow; undirected traversal has moderate nesting with two loops and a conditional. Clarity of intent: Descriptive fields and detailed comments explain traversal, duplicate suppression, and self-loops, but single-letter methods and parameters obscure purpose. Calls to advance() do not match the defined b() method, and a() appears to replace AbstractIterator's expected computeNext() override, making the intended execution harder to follow. Code length: Implementation is reasonably concise, though the extensive example adds substantial reading length. Action granularity: Most statements perform one action per line; iterator advancement inside return expressions is compact but slightly less explicit. Reading flow: Early returns and consistent formatting support natural flow, but inconsistent method names interrupt comprehension and force readers to infer missing connections.
Run 3
Code Structure: Directed and undirected iteration are cleanly separated into subclasses, with shared traversal state in the base class. Nesting: Directed traversal is shallow; undirected traversal has moderately nested loops and conditionals but remains manageable. Clarity of intent: Descriptive class and field names and useful comments explain edge traversal, duplicate suppression, and self-loops. However, single-letter methods and variables obscure intent, and calls to advance() do not match the declared b() method; a() also appears inconsistent with AbstractIterator's expected computeNext() override. Code length: Implementation is reasonably concise, though the extensive example adds reading overhead. Action granularity: Most lines perform one clear operation, with conventional inline iterator calls. Reading flow: Traversal follows a logical sequence, but inconsistent naming and nullable-state handling interrupt comprehension and make the code harder to trust.