Sample
int-963817f409de-I05
Rewrite eligible decimal integer literals in hexadecimal notation
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.629 | 0–1; higher is more readable |
| Dorn | 0.45 | 0–1; higher is more readable |
| Mi | 0.112 | 0–1; higher is more readable |
| LLOC | 19 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 17.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 18 | 0–20; mean of three runs |
| BTTF | 0.33 | 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. | 2067.968 | −68.243 |
| Source linesThe number of non-empty source lines. | 88 | +35.2 |
| 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.22 |
Intercept 8.87 + feature contributions = -31.392 (log-odds).
Score = sigmoid(-31.392) = 0.
| Score | 0.629 |
|---|
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. | 89 | −2.115 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 60 | +1.338 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 60 | −0.956 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 87.901 | +0.819 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 97.742 | +0.773 |
| 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.966 | −0.569 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.052 | +0.441 |
Intercept 0.07 + feature contributions = -0.199 (log-odds).
Score = sigmoid(-0.199) = 0.45.
| Score | 0.112 |
|---|
| Score | 19 |
|---|
Run 1
The code is highly readable overall. Structure is logical: class declaration, factory methods, constructors, serialization methods, and a serialVersionUID. Nesting is flat, with no deep indentation or nested conditions. Intent is clear from the class name, Javadoc, and method names. Code length is concise and appropriate for the functionality. Each line generally performs one action, though some annotations share a line, slightly reducing granularity. Reading flow is natural: static factories are presented before private constructors, and serialization methods are grouped together. Minor issues: the annotations on writeObject/readObject are misaligned, creating a slight visual inconsistency, and import order puts `org.jspecify` after `java.util` rather than grouped with other third-party packages. These are cosmetic and do not significantly affect comprehension. Overall, this is production-quality code that effectively communicates its purpose and behavior.
Run 2
The code is well-structured and readable. It clearly organizes factory methods, constructors, and serialization logic. Class-level Javadoc concisely explains behavior and iteration order. Methods are concise, each performing a single logical action, with minimal nesting. Reading flow is natural: create methods, constructors, then serialization. The only issue is unexpected indentation before writeObject/readObject annotations, slightly disrupting visual structure, and the fields section feels appended. Overall, clarity of intent is high and code length is appropriate.
Run 3
The code is highly readable due to its clear structure, minimal nesting, and concise methods. It follows logical organization with factory methods, constructors, and serialization clearly separated. Documentation and Javadoc comments are thorough, enhancing clarity of intent. Methods are short and focused, with one action per line, which improves readability. The reading flow is natural and aligns with typical collection class patterns in Guava. Minor deductions for repeated generic type declarations and slight indentation inconsistencies in serialization methods, but overall it is well-structured and easy to understand.
Run 1
Code Structure: Logically organized into factory methods, private constructors, and serialization hooks. Nesting: Flat, with short methods and no nested control flow. Clarity of intent: Descriptive names and helpful Javadoc clearly explain ordering behavior and creation options; inherited functionality and serialization helpers require some external context. Code length: Concise implementation with proportionate documentation and little redundancy. Action granularity: Statements generally perform one action per line, although the final line combines annotations and a field declaration. Reading flow: Natural progression from public creation methods to implementation details, slightly disrupted by inconsistent indentation of serialization methods, compressed final annotations, and missing spacing after the package declaration.
Run 2
Code Structure: Factories, constructors, and serialization methods are logically grouped with clear responsibilities. Nesting: Methods are flat, with no nested control flow. Clarity of intent: Descriptive names and thorough Javadoc clearly explain creation and iteration-order semantics; inherited behavior and serialization helpers require some external context. Code length: The implementation is concise, and the documentation is useful rather than redundant. Action granularity: Statements generally perform one action per line, although the serialVersionUID declaration combines annotations and the field on one line. Reading flow: The progression from public factories to private implementation details is natural. Minor formatting inconsistencies, particularly over-indented serialization method declarations and compressed field annotations, slightly reduce readability.
Run 3
Code Structure: Logically groups factory methods, constructors, and serialization methods. Nesting: Very shallow, with no nested control flow. Clarity of intent: Descriptive names and useful Javadoc explain iteration ordering, creation options, and serialization; inherited behavior and helper utilities require some external context. Code length: Concise implementation with proportionate documentation and little redundancy. Action granularity: Statements generally perform one action per line, though the final field declaration combines annotations and declaration on one line. Reading flow: Methods follow a natural progression and use consistent patterns, but missing spacing after the package declaration and inconsistent indentation of serialization method declarations slightly disrupt presentation.