Sample
int-2571d4107bce-I04
Replace method, parameter, and local names with deterministic ProGuard-style short identifiers
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.924 | 0–1; higher is more readable |
| Scalabrino | 0.946 | 0–1; higher is more readable |
| Dorn | 0.827 | 0–1; higher is more readable |
| Mi | 0.576 | 0–1; higher is more readable |
| LLOC | 1 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 14.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.67 | 0–20; mean of three runs |
| BTTF | 0.825 | 0–1; higher is more readable |
Views
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Source linesThe number of non-empty source lines. | 31 | +12.4 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 350 | −11.55 |
| 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.818 | −7.227 |
Intercept 8.87 + feature contributions = 2.493 (log-odds).
Score = sigmoid(2.493) = 0.924.
| Score | 0.946 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.028 | +0.674 |
| 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. | 76.375 | +0.43 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 69.906 | +0.323 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 14 | −0.253 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 32 | −0.097 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 30.654 | +0.019 |
Intercept 0.07 + feature contributions = 1.564 (log-odds).
Score = sigmoid(1.564) = 0.827.
| Score | 0.576 |
|---|
| Score | 1 |
|---|
Run 1
The code has clear structural elements: package, imports, Javadoc comments, and a single interface method. The Javadoc is detailed and explains intent well, which improves clarity of purpose. However, the method signature is poorly named ('a', 'b', 'c'), completely obscuring parameter meaning despite the Javadoc explaining them. This clashes with clarity of intent. The code is short and flat, with no deep nesting, and each parameter appears on its own line, aiding reading flow. But the ambiguous parameter names override many readability gains. The Javadoc references classes like MockMvcHttpConnector and WebHttpHandlerBuilder, which helps document customization options but adds verbosity. Overall, the structure and documentation are good, but poor identifiers significantly reduce readability.
Run 2
The code has clear structure with a well-defined interface and Javadoc explaining the purpose. However, readability issues exist: the parameter names are meaningless (a, b, c) instead of descriptive names like builder, httpHandlerBuilder, connector. The method name 'a' provides no semantic meaning. The nesting is flat (good), and action granularity is appropriate. The Javadoc contradicts the actual parameter names, creating confusion. While the class-level documentation is solid, the method-level implementation fails to maintain clarity of intent. The code length is concise, but this conciseness comes at the cost of self-documentation. Overall, the formatting and organization are clean, but the cryptic naming significantly undermines readability.
Run 3
The code is well-structured as a simple interface with clear Javadoc explaining its purpose and usage. Nesting is non-existent, making it flat and easy to follow. Intent is clearly documented, describing how to customize WebTestClient.Builder, WebHttpHandlerBuilder, and ClientHttpConnector. Code length is concise—only the necessary method declaration is present. However, action granularity and reading flow suffer slightly because the method and parameter names are abbreviated to 'a', 'b', and 'c', which obscures their meaning despite the Javadoc. This choice reduces clarity and forces readers to refer back to the documentation. Overall, the code is readable but could improve with descriptive parameter names.
Run 1
Code Structure: The package, imports, interface documentation, and single method are logically organized. Nesting: Minimal nesting makes the declaration easy to scan. Clarity of intent: The interface name and Javadoc explain the customization contract, but method name 'a' and parameter names 'a', 'b', and 'c' obscure their roles. Javadoc references builder, httpHandlerBuilder, and connector rather than the actual parameter names, creating a misleading mismatch. Code length: Concise and appropriate for a single-method interface; documentation adds useful context. Action granularity: Each declaration is separate, and parameters are clearly split across lines; there are no executable actions to assess. Reading flow: Generally natural, though the missing separation between package and imports slightly reduces visual clarity, and the opaque identifiers interrupt the otherwise informative documentation.
Run 2
Code Structure: A logically organized interface with imports, documentation, and a single method. Nesting: Flat, with no nested logic. Clarity of intent: Class-level and method documentation explain the customization contract, but the method name 'a' and parameter names 'a', 'b', and 'c' obscure intent. The @param tags also reference names absent from the signature, creating confusion. Code length: Concise and appropriate for a small interface, with useful documentation. Action granularity: The declaration is cleanly split across lines; there are no compound actions. Reading flow: Generally natural, moving from the interface contract to the method documentation and signature, but the transition to meaningless identifiers disrupts comprehension.
Run 3
Code Structure: A logically organized interface with imports, documentation, and one method. Nesting: Flat, with no nested logic. Clarity of intent: Interface naming and Javadoc explain customization clearly, but method name 'a' and parameters 'a', 'b', and 'c' obscure meaning. Javadoc parameter names do not match the signature, weakening documentation accuracy. Code length: Concise and appropriate for a small contract. Action granularity: One declaration, with parameters split across lines for easy scanning; no compound actions. Reading flow: Natural top-to-bottom organization, but readers must translate descriptive documentation into anonymous parameter names. Meaningful method and parameter names would substantially improve readability.