Sample
int-866a778541a0-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.742 | 0–1; higher is more readable |
| Dorn | 0.226 | 0–1; higher is more readable |
| Mi | 0.607 | 0–1; higher is more readable |
| LLOC | 53 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 7 | 0–20; mean of three runs |
| GPT-6.1 Sol | 11.33 | 0–20; mean of three runs |
| BTTF | 0.44 | 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. | 4423.595 | −145.979 |
| Source linesThe number of non-empty source lines. | 156 | +62.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. | 5.025 | −7.538 |
Intercept 8.87 + feature contributions = -82.247 (log-odds).
Score = sigmoid(-82.247) = 0.
| Score | 0.742 |
|---|
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. | 157 | −4.523 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 141 | +4.14 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 141 | −2.815 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 155.928 | +1.77 |
| 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. | 109.962 | −0.992 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 109.955 | +0.97 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.082 | +0.149 |
Intercept 0.07 + feature contributions = -1.232 (log-odds).
Score = sigmoid(-1.232) = 0.226.
| Score | 0.607 |
|---|
| Score | 53 |
|---|
Run 1
The code is highly unreadable due to pervasive obfuscation of method names that no longer reflect their actual operations, such as 'validateAccount' for adding a dispatch handler, 'loadPath' for dispatch, 'sendMode' for complete, and 'checkCount' for getTimeout. This makes intent ambiguous and breaks reading flow entirely. Although the class structure is somewhat logical (fields, constructor, then methods) and nesting is mostly flat, the nonsensical parameter names like 'version', 'message', 'shipment', 'step', 'count', and 'activeCache' further obscure purpose. Action granularity is adequate - most lines perform one action. Code length is reasonable given its functionality. However, clarity of intent is severely compromised, making the code seem like a deliberately minified or obfuscated version of a standard Spring mock class. Without renaming methods and parameters to meaningful identifiers, any structural positives are overshadowed.
Run 2
The code shows clear structure with organized fields, constructor, and methods, but method names have been obfuscated (e.g., 'validateAccount' instead of 'addListener', 'loadPath' instead of 'dispatch'), severely reducing clarity of intent. Nesting is generally flat with minimal indentation. The code is concise and each line performs a single action, maintaining good action granularity. However, the reading flow is disrupted by misleading names that don't match the AsyncContext interface contract. The synchronized blocks and null checks are handled cleanly, but the obfuscated naming makes the code harder to understand than necessary. The class is logically organized, but the disconnect between method names and their actual purpose creates significant readability issues.
Run 3
This code is extremely difficult to read due to pervasive misleading or meaningless method and variable names. Names like 'validateAccount', 'findMessage', 'createData', 'loadPath', 'sendMode', 'route', and variables like 'shipment', 'history', 'step', 'activeCache', 'localKey', 'map', and 'schedule' obscure the actual functionality (which appears to be a mock implementation of AsyncContext). This severely hampers clarity of intent and reading flow. While the structure is relatively flat and actions are mostly one per line, the jarring mismatch between names and behavior makes the code ambiguous and requires constant mental translation. The code length is acceptable, but the disorganized naming negates any structural benefits.
Run 1
Code Structure: Fields, constructor, and small methods are logically organized, with clear separation of responsibilities. Nesting: Mostly shallow; the listener completion loop and exception handling add only moderate depth. Clarity of intent: Severely weakened by misleading names such as validateAccount, createOrder, and checkCount, and unrelated parameter names such as shipment and duration. Renamed interface methods also conflict with AsyncContext's expected API, making the overrides confusing. Code length: Concise overall, although timeout documentation is disproportionately long and references a parameter name no longer used. Action granularity: Generally one statement or action per line, making individual operations easy to inspect. Reading flow: Consistent formatting and straightforward control flow help, but arbitrary naming forces readers to infer behavior from implementation rather than method signatures.
Run 2
Code Structure: Fields, constructor, and small methods are logically organized, although unrelated method names obscure their roles. Nesting: Mostly flat, with modest nesting in synchronization and listener completion handling. Clarity of intent: The main weakness; names such as validateAccount, createOrder, findWindow, and checkCount misrepresent dispatch, listener registration, and timeout operations. Parameter names are similarly misleading, and renamed methods conflict with the declared AsyncContext overrides. Code length: Concise overall, with little unnecessary implementation, though the timeout documentation is disproportionately long. Action granularity: Generally one action per line, with straightforward assignments and calls. Reading flow: Consistent formatting and short methods help scanning, but understanding behavior requires repeatedly looking past names to method bodies; the timeout documentation also references a parameter name absent from the signature.
Run 3
Code Structure: Fields, constructors, and small methods are logically organized, with clear separation of responsibilities. Nesting: Mostly flat; synchronization, conditionals, and listener exception handling introduce only moderate nesting. Clarity of intent: The main weakness is misleading names such as validateAccount, createOrder, and findWindow, along with unrelated parameter names. These obscure asynchronous servlet operations, and renamed methods marked @Override do not match the AsyncContext API. Code length: Concise overall, although the lengthy timeout documentation is disproportionate to its trivial setter. Action granularity: Generally one statement per line, with straightforward delegation and assignments. Reading flow: Consistent formatting and short methods help, but arbitrary naming forces readers to infer behavior from implementations. Descriptive field names and the class documentation partially compensate.