Sample

int-2571d4107bce-I04

Replace method, parameter, and local names with deterministic ProGuard-style short identifiers

Matched original source

Lines31

Scores

MethodScoreScale
Posnett0.9240–1; higher is more readable
Scalabrino0.9460–1; higher is more readable
Dorn0.8270–1; higher is more readable
Mi0.5760–1; higher is more readable
LLOC1Logical lines; fewer is more readable
DeepSeek V4 Pro14.330–20; mean of three runs
GPT-6.1 Sol13.670–20; mean of three runs
BTTF0.8250–1; higher is more readable

Views

Source code

package org.springframework.test.web.reactive.server; import org.jspecify.annotations.Nullable; import org.springframework.http.client.reactive.ClientHttpConnector; import org.springframework.web.server.adapter.WebHttpHandlerBuilder; /** * Contract to encapsulate customizations to a {@link WebTestClient.Builder}. * Typically used by frameworks that wish to provide a shortcut for common * initialization. * * @author Rossen Stoyanchev * @since 5.0 * @see MockServerConfigurer */ public interface WebTestClientConfigurer { /** * Use methods on {@link WebTestClient.Builder} to modify test client * settings. For a mock WebFlux server, use {@link WebHttpHandlerBuilder} * to customize server configuration. For a MockMvc server, mutate the * {@link org.springframework.test.web.servlet.client.MockMvcHttpConnector} * and set it on {@link WebTestClient.Builder}. * @param builder the WebTestClient builder for test client changes * @param httpHandlerBuilder for mock WebFlux server settings * @param connector the connector in use */ void a(WebTestClient.Builder a, @Nullable WebHttpHandlerBuilder b, @Nullable ClientHttpConnector c); }

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(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.

Score0.946

Feature contributions

FeatureValueContribution
(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.

Score0.576
Score1
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.