Sample
int-74e8c6641291-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 |
| Dorn | 0.117 | 0–1; higher is more readable |
| Mi | 0.148 | 0–1; higher is more readable |
| LLOC | 21 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 9 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12.67 | 0–20; mean of three runs |
| BTTF | 0.453 | 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. | 1560.991 | −51.513 |
| Source linesThe number of non-empty source lines. | 52 | +20.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.768 | −7.152 |
Intercept 8.87 + feature contributions = -28.994 (log-odds).
Score = sigmoid(-28.994) = 0.
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. | 112.943 | −1.119 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 52 | +1.061 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 53 | −0.84 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 52 | −0.772 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 51.807 | +0.314 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.09 | +0.068 |
Intercept 0.07 + feature contributions = -2.022 (log-odds).
Score = sigmoid(-2.022) = 0.117.
| Score | 0.148 |
|---|
| Score | 21 |
|---|
Run 1
The code is difficult to read due to heavily obfuscated naming that obscures intent. Parameters in the constructor ('session', 'pendingNode') and methods ('release', 'readRequest', 'validateBalance', 'secureScore') do not reflect the domain concepts of Stomp versions and subprotocols. Static initialization is logically structured but the variable name 'pendingValue' is misleading. The method 'subProtocol()' is referenced but not defined, indicating a compilation issue. The enum constants and static block are reasonably organized, but the poor naming throughout makes the code ambiguous and requires significant effort to understand. Despite shallow nesting and concise length, clarity of intent and reading flow are severely compromised.
Run 2
The code has a clear enum structure, but readability is severely hindered by misleading naming conventions (e.g., 'release()' returns version, 'validateBalance' finds a version by sub-protocol, 'readRequest' returns subProtocol). Constructor parameter names ('session', 'pendingNode') and loop variable names ('cachedBuffer', 'pendingValue', 'secureScore') are unrelated to their actual purpose, obscuring intent. The static initializer is acceptable, but the method names suggest unrelated domain concepts. The code length is reasonable and nesting is minimal, but the ambiguous naming makes it difficult to follow. Score reflects poor clarity of intent and unnatural reading flow despite straightforward structure.
Run 3
The code has a logical enum-based structure and a clear static initializer, but suffers from unclear naming and redundant methods. The enum constants are straightforward, and the static block's purpose is understandable. However, names like 'session', 'pendingNode', 'release()', 'readRequest()', 'validateBalance()', and 'cachedBuffer' obscure the intent, making it hard to follow. The private 'subProtocol()' method is implied but not shown, creating ambiguity. Nesting is minimal and reading flow is mostly natural, but the action granularity is slightly reduced by combining string joining in one line. Overall, the structure is decent but clarity is significantly hampered by misleading naming conventions, reducing readability.
Run 1
Code Structure: The enum is logically organized into constants, static initialization, fields, constructor, accessors, and lookup method. Nesting: Most code is flat, but the lookup uses three nested control structures that could be simplified with an early null check. Clarity of intent: STOMP constants and fields are clear, but names such as session, pendingNode, release, readRequest, validateBalance, and secureScore obscure their actual roles. The call to cachedBuffer.subProtocol() references a nonexistent method, further confusing intent. Code length: Compact overall, with little unnecessary code. Action granularity: Statements generally perform one action per line. Reading flow: Conventional enum layout and spacing support easy scanning, but inconsistent terminology and the accessor mismatch interrupt comprehension.
Run 2
Code Structure: The enum is logically organized into constants, initialization, fields, constructor, accessors, and lookup. Nesting: Mostly shallow, though the lookup uses three nested control blocks. Clarity of intent: Protocol constants and fields are clear, but names such as session, pendingNode, release, readRequest, validateBalance, and secureScore obscure their actual roles. The call to cachedBuffer.subProtocol() has no corresponding declared method, further confusing the intended API. Code length: Compact overall, with little unnecessary code; the temporary list is straightforward. Action granularity: Each statement performs a single clear action. Reading flow: Organization and spacing support sequential reading, but inconsistent terminology and the accessor mismatch interrupt comprehension.
Run 3
Code Structure: The enum is logically organized into constants, initialization, fields, constructor, and methods. Nesting: Mostly shallow, although the lookup contains three nested control blocks. Clarity of intent: Version constants and fields are clear, but names such as session, pendingNode, release, readRequest, validateBalance, and secureScore obscure their actual roles. The call to cachedBuffer.subProtocol() references a nonexistent method, further confusing the intended interface. Code length: Compact with little unnecessary code. Action granularity: Statements generally perform one action per line. Reading flow: Conventional organization supports navigation, but misleading identifiers and the inconsistent accessor call interrupt understanding.