Sample
int-9abdc2153adc-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.53 | 0–1; higher is more readable |
| Dorn | 0.482 | 0–1; higher is more readable |
| Mi | 0.48 | 0–1; higher is more readable |
| LLOC | 25 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 6.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13 | 0–20; mean of three runs |
| BTTF | 0.4 | 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. | 2437.78 | −80.447 |
| Source linesThe number of non-empty source lines. | 69 | +27.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. | 5.012 | −7.518 |
Intercept 8.87 + feature contributions = -51.495 (log-odds).
Score = sigmoid(-51.495) = 0.
| Score | 0.53 |
|---|
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. | 70 | −1.442 |
| 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 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 95.914 | +0.743 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 68.835 | +0.552 |
| 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.957 | −0.399 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.095 | +0.021 |
Intercept 0.07 + feature contributions = -0.073 (log-odds).
Score = sigmoid(-0.073) = 0.482.
| Score | 0.48 |
|---|
| Score | 25 |
|---|
Run 1
Although the code has a simple class structure and some comments, the method names are completely unrelated to their actual implementations (publish, removeUser, buildNode, analyze, removeCount, dispatch). This severely obscures intent. There is a commented-out TODO referencing future work that might explain temporary naming, but currently the code is ambiguous. Nesting is minimal and line length is acceptable. However, readability is deeply undermined by the mismatch between names and behavior. One action per line is mostly followed. The type parameters and casts are complex, and the use of @SuppressWarnings with unclear TODO comments adds confusion. Overall, the code is technically formatted but practically unreadable without external context or proper naming.
Run 2
The code has a clear structure with logical separation of fields, methods, and constructors, but method names like 'publish', 'removeUser', 'buildNode', 'analyze', 'removeCount', and 'dispatch' are confusing and do not reflect their actual purposes (e.g., compare, nullsFirst, nullsLast, reverse, readResolve, toString). This significantly hurts clarity of intent. Nesting is flat, which is good, and action granularity is reasonable. However, the excessive use of @SuppressWarnings and TODO comments adds noise. The code is concise but suffers from ambiguous naming, making the reading flow unnatural despite a simple overall structure. The serialization and lazy initialization patterns are standard but obscured by poor method names, reducing maintainability and readability.
Run 3
The code is poorly readable due to nonsensical method names like `publish`, `removeUser`, `buildNode`, `analyze`, `removeCount`, and `dispatch`, which do not reflect their actual functionality (e.g., comparing, returning nullsFirst/nullsLast, reverse ordering, singleton readResolve, toString). This breaks clarity of intent and reading flow. The custom nullable annotations add noise. The lazy initialization blocks are straightforward but use unconventional variable names (`target`, `option`). The class has a clear overall structure—singleton field, methods, private constructor—but the method name/behavior mismatch dominates the negative assessment. Nesting is minimal (one `if` per lazy method), and length is concise, but action granularity is inconsistent. The code appears obfuscated, likely for an exercise, not production-quality readable code.
Run 1
Code Structure: Logically organized around a singleton ordering implementation, with small methods and clearly grouped cached fields. Nesting: Shallow; only single-level conditionals appear. Clarity of intent: The class documentation and comparison logic are clear, but misleading names such as publish, removeUser, buildNode, analyze, removeCount, and dispatch obscure the methods’ actual roles. Generic variable names and unexplained unchecked casts further reduce clarity. Code length: Concise overall, though repeated suppression comments add noise. Action granularity: Mostly one action per line, but chained assignments combine local assignment and cache updates, and compressed annotation/declaration lines are harder to scan. Reading flow: Generally natural, moving from fields to operations and singleton support, but inconsistent naming and dense generic/nullability syntax interrupt comprehension.
Run 2
Code Structure: The class is logically organized around a singleton ordering, with small methods and related cache fields grouped together. Nesting: Very shallow; only simple conditional cache initialization appears. Clarity of intent: The main weakness is misleading method names such as publish, removeUser, buildNode, analyze, and dispatch, which obscure comparison, null placement, reversal, and string representation. Generic variable names also reduce clarity. Code length: Reasonably concise, although repeated suppression annotations and unresolved TODO comments add noise. Action granularity: Most lines perform one action, but chained assignments combine local updates and cache initialization. Reading flow: Method bodies are straightforward, yet inaccurate naming, dense generic annotations, and compact annotation placement interrupt otherwise natural reading.
Run 3
Code Structure: The class is logically organized around singleton initialization, comparison, cached orderings, and utility methods. Nesting: Very shallow, with only simple conditional blocks. Clarity of intent: The class documentation and field names help, but misleading method names such as publish, removeUser, buildNode, analyze, and dispatch obscure their actual purposes; generic locals like target and option add ambiguity. Code length: Short methods keep the implementation concise, although repeated annotations and unresolved TODO comments add clutter. Action granularity: Most lines perform one action, but chained assignments combine local assignment and cache updates. Reading flow: Method bodies are straightforward, yet dense generic types, casts, annotations, and inconsistent semantic naming interrupt comprehension. Overall, the clean structure is substantially undermined by unclear naming.