Sample
int-42cc96a74db5-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.645 | 0–1; higher is more readable |
| Dorn | 0.571 | 0–1; higher is more readable |
| Mi | 0.051 | 0–1; higher is more readable |
| LLOC | 29 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 16.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13 | 0–20; mean of three runs |
| BTTF | 0.427 | 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. | 2849.126 | −94.021 |
| Source linesThe number of non-empty source lines. | 86 | +34.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.901 | −7.351 |
Intercept 8.87 + feature contributions = -58.102 (log-odds).
Score = sigmoid(-58.102) = 0.
| Score | 0.645 |
|---|
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. | 150.954 | −2.729 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 87 | −2.044 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 75 | +1.857 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 150.977 | +1.631 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 85.803 | +0.79 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.065 | +0.311 |
Intercept 0.07 + feature contributions = 0.284 (log-odds).
Score = sigmoid(0.284) = 0.571.
| Score | 0.051 |
|---|
| Score | 29 |
|---|
Run 1
The code is well-structured with clear class purpose and logical grouping of fields, static initializer, constructor, and overridden methods. It mostly follows one action per line and maintains low nesting. However, readability is slightly reduced by the obfuscated variable names — for example, `data`, `pendingCache`, `finalBuffer`, `primaryRequest`, `primaryAddress`, `remoteOrder`, `currentAddress`, and `step` are misleading and make the intent unclear. The `readClient` method name is also confusing. The logic is otherwise concise, with good exception handling and clear method purposes.
Run 2
The code is highly readable with a clear structure and purposeful organization. The class has a single responsibility, and its static initializer cleanly separates default overrides. Methods are concise, with flat nesting and one action per line. Naming is mostly clear (e.g., `retentionMs`, `WINDOWED_STORE_CHANGELOG_TOPIC_DEFAULT_OVERRIDES`), although some parameter names (`data`, `pendingCache`, `finalBuffer`, `primaryRequest`, `primaryAddress`, `remoteOrder`) obscure intent. The overflow handling in `readClient` is simple and safe. The override hierarchy comment is helpful. Minor inconsistencies include naming in `filter`'s local variable (`step`) and the JavaBeans-style `readClient` method name, which reduces clarity slightly. Overall, reading flow is natural and the code is maintainable.
Run 3
The code has clear structure and intent, but suffers from confusing naming and inconsistent terminology. The class hierarchy and method overrides follow logical organization, and nesting is minimal. However, parameter names like 'data', 'pendingCache', 'finalBuffer', 'primaryRequest', and 'primaryAddress' are misleading - they actually represent topic name, configs, retention, global overrides, and additional retention respectively. Method names like 'readClient', 'filter', 'loadUser', and 'evaluate' appear to have been obfuscated or auto-renamed, obscuring their actual purpose (getProperties, equals, hashCode, toString). The comment in readClient correctly explains the override priority, which helps, but the variable names contradict this. Action granularity is generally good with one operation per line. The static initialization block is clear. Overall, the code follows good structural patterns but the naming inconsistencies significantly reduce readability.
Run 1
Code Structure: Logically organized into default initialization, construction, configuration merging, and object utility methods. Nesting: Mostly flat, with modest nesting for retention calculation and overflow handling. Clarity of intent: The main weakness is misleading names such as readClient, filter, loadUser, evaluate, primaryAddress, and remoteOrder, which obscure configuration, equality, hashing, and string representation. The documentation also references additionalRetentionMs rather than the actual parameter name. Code length: Generally concise, although some long expressions reduce scanability. Action granularity: Statements largely perform one action per line, with no compressed multi-statement blocks. Reading flow: Configuration precedence and early returns are easy to follow, but inconsistent terminology and misleading method names force readers to infer meaning from implementation. Overall, clean structure is undermined by poor naming.
Run 2
Code Structure: The class is logically organized into defaults, constructor, configuration assembly, and object-like utility methods. Nesting: Mostly shallow, with only a try/catch inside a conditional. Clarity of intent: The main weakness is misleading names such as readClient, filter, loadUser, evaluate, primaryAddress, and remoteOrder, which obscure configuration, equality, hashing, and string formatting responsibilities. The documentation also names a parameter absent from the method signature. Code length: Reasonably concise, although long expressions and verbose identifiers reduce scanability. Action granularity: Generally one action per statement, with configuration merging clearly separated. Reading flow: Sequential merging, overflow handling, and early returns are easy to follow, but inconsistent terminology and misleading method names interrupt comprehension.
Run 3
Code Structure: Well-organized class with separate initialization, configuration, comparison, hashing, and string-formatting methods. Nesting: Mostly flat, with only modest nesting for retention calculation and overflow handling. Clarity of intent: The main weakness is misleading names such as readClient, filter, loadUser, evaluate, primaryAddress, and remoteOrder, which obscure recognizable operations. The retention documentation also references a parameter name absent from the signature. Code length: Reasonably concise, though some long expressions would benefit from wrapping. Action granularity: Generally one action per line, making individual operations easy to follow. Reading flow: Configuration precedence and early-return comparisons follow a natural sequence, supported by useful comments, but inconsistent terminology forces readers to infer meaning from implementation rather than names.