Sample
int-88458df58090-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.871 | 0–1; higher is more readable |
| Dorn | 0.233 | 0–1; higher is more readable |
| Mi | 0.12 | 0–1; higher is more readable |
| LLOC | 37 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 10.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12 | 0–20; mean of three runs |
| BTTF | 0.487 | 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. | 2167.099 | −71.514 |
| Source linesThe number of non-empty source lines. | 96 | +38.4 |
| 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.453 | −6.679 |
Intercept 8.87 + feature contributions = -30.923 (log-odds).
Score = sigmoid(-30.923) = 0.
| Score | 0.871 |
|---|
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. | 97 | −2.398 |
| 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. | 139.979 | −2.264 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 85 | +2.203 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 85 | −1.53 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 139.969 | +1.454 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 95.816 | +0.929 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.061 | +0.345 |
Intercept 0.07 + feature contributions = -1.19 (log-odds).
Score = sigmoid(-1.19) = 0.233.
| Score | 0.12 |
|---|
| Score | 37 |
|---|
Run 1
The code has a clear structure with logical separation of enum, constructor, and accessors, and includes useful documentation. However, readability is significantly hurt by poor naming: method names like a(), b(), and variables c, d, e, f obscure intent. While nesting is flat and action granularity is reasonable, the abbreviated names force readers to infer purpose. The constructor has clear validation with helpful error messages, but the enum conversion method uses an if-else chain that could be improved. Overall, the structure is sound but the naming choices reduce clarity.
Run 2
The code suffers from several readability issues. Method and parameter names are cryptic (a(), b(), c(), d(), e(), a, b, c, d, e), obscuring intent. The overridden equals(), hashCode(), and toString() methods are incorrectly named, breaking Java conventions. The enum has a static factory method instead of a proper fromCode() or valueOf pattern, and its logic is unnecessarily verbose. While the code structure is mostly flat and each line performs one action, the overall clarity of intent is severely compromised by poor naming. The JavaDoc is helpful but doesn't compensate for the confusing method names. Some positive aspects include reasonable organization, flat nesting, and concise length, but these are overshadowed by the naming issues which force readers to constantly reference the implementation to understand what each method does. The code appears deliberately obfuscated, making it difficult to read and maintain in a real codebase.
Run 3
The code has clear logical organization and good documentation, but suffers from poor naming conventions that drastically reduce readability. Method names like 'a()', 'b()', 'c()', 'd()', 'e()' obscure intent—readers cannot discern that 'a()' returns maxVersionLevel or 'b()' returns upgradeType without examining implementations. Parameter names like 'a', 'b', 'c', 'd', 'e', 'f' further compound confusion. The structure is otherwise flat and each line performs one action, with Javadoc explaining the constructor well. The UpgradeType enum uses clear value names but its method and parameter names remain cryptic. The equals() method follows a standard pattern and the logic is straightforward. Overall, the code would be significantly more readable with descriptive method and parameter names, bringing it closer to 18+; as written, the obfuscated naming drops it to a borderline-unreadable state.
Run 1
Code Structure: Fields, enum, constructor, accessors, and object-style methods are logically grouped. Nesting: Shallow conditionals and early returns keep complexity low, although the enum conversion uses a repetitive else-if chain. Clarity of intent: Descriptive fields, enum constants, and documentation help, but single-letter methods and parameters obscure purpose. Constructor documentation names do not match its parameters, and renamed methods marked @Override obscure the intended equals, hashCode, and toString contracts and would not compile as written. Code length: Generally concise, with somewhat lengthy documentation and error formatting. Action granularity: Statements mostly perform one action per line, with readable multiline expressions. Reading flow: Organization is natural, but opaque identifiers repeatedly force readers to infer behavior from method bodies.
Run 2
Code Structure: Fields, enum, constructor, accessors, and utility methods are logically organized. Nesting: Shallow conditionals and early returns keep complexity low. Clarity of intent: Descriptive class, field, and enum names help, but single-letter methods and parameters obscure meaning. Constructor documentation references names that do not match its parameters, and @Override annotations on c, d, and e misleadingly suggest valid Object overrides. Code length: Mostly concise, although the enum conversion conditional and long documentation add verbosity. Action granularity: Statements generally perform one action per line. Reading flow: Conventional organization and spacing support scanning, but opaque identifiers force readers to infer each method's role from its implementation.
Run 3
Code Structure: Fields, enum, constructor, accessors, and utility methods are logically organized. Nesting: Shallow conditionals and early returns keep control flow easy to follow. Clarity of intent: Descriptive class, field, and enum names help, but single-letter methods and parameters obscure their roles. Constructor documentation references names absent from its signature, and methods c, d, and e misleadingly use @Override instead of the expected equals, hashCode, and toString signatures. Code length: Mostly concise, although the enum conversion and long documentation add some verbosity. Action granularity: Statements generally perform one action per line, with conventional compound conditions. Reading flow: The overall sequence is natural, but ambiguous identifiers, inconsistent documentation, and invalid override declarations interrupt comprehension.