Sample
int-79ee7e603a75-I04
Replace method, parameter, and local names with deterministic ProGuard-style short identifiers
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.003 | 0–1; higher is more readable |
| Scalabrino | 0.817 | 0–1; higher is more readable |
| Dorn | 0.826 | 0–1; higher is more readable |
| Mi | 0.65 | 0–1; higher is more readable |
| LLOC | 8 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 12.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 16 | 0–20; mean of three runs |
| BTTF | 0.828 | 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. | 629.447 | −20.772 |
| Source linesThe number of non-empty source lines. | 33 | +13.2 |
| 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.735 | −7.102 |
Intercept 8.87 + feature contributions = -5.804 (log-odds).
Score = sigmoid(-5.804) = 0.003.
| Score | 0.817 |
|---|
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. | 75.971 | +0.447 |
| 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. | 73.882 | +0.388 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.068 | +0.28 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 34 | −0.167 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 24 | +0.093 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 32.844 | +0.049 |
Intercept 0.07 + feature contributions = 1.557 (log-odds).
Score = sigmoid(1.557) = 0.826.
| Score | 0.65 |
|---|
| Score | 8 |
|---|
Run 1
The code is generally readable but suffers from poor naming choices. The class structure is solid: a final class extending SocksResponse with a single field, constructor validation, a getter, and an encode method. Nesting is minimal and each action is on its own line. However, clarity of intent is weak due to cryptic method names 'a()' and 'b(ByteBuf)'. Parameter names like 'a' and 'b' are ambiguous and fail to convey their purpose. The getter 'a()' returns SocksAuthScheme but its name gives no indication. The encode method 'b(ByteBuf)' is vague about its function. The Javadoc comments are present but minimal. Code length is appropriately concise. Reading flow is disrupted by having to decode single-letter names. Better naming such as 'authScheme()' and 'encode(ByteBuf)' would significantly improve readability.
Run 2
The code is generally readable with a clear class purpose, a single field, and well-placed Javadoc comments explaining the response type. However, readability suffers from cryptic naming: the constructor parameter 'a', method 'a()', and method 'b(ByteBuf b)' obscure intent. The encode method name 'b' gives no indication that it serializes the response, and the parameter name 'b' is ambiguous. The structure is simple and flat, with no nesting issues and appropriate action granularity, but the poor naming choices significantly reduce clarity. Code length is concise and the reading flow is logical, but the intent is hidden behind opaque abbreviations.
Run 3
The class has a clear purpose and is relatively short, which aids comprehension. However, readability is significantly reduced by several issues: the method names 'a()' and 'b()' are cryptic and do not convey intent, violating the clarity of intent and reading flow criteria. The parameter names 'a' and 'b' are similarly meaningless. While the structure is logical and nesting is minimal, the abbreviated names force readers to rely on documentation to understand what the methods do. The code is concise but at the cost of self-documentation. Action granularity is acceptable, with each write operation on its own line. Overall, the code would be much more readable with descriptive method and parameter names such as 'authScheme()' and 'encodeAsByteBuf()'.
Run 1
Code Structure: The class is logically organized into a field, constructor, accessor, and serialization method. Nesting: There is no unnecessary nesting, making the code easy to scan. Clarity of intent: The class name, field name, documentation, and superclass calls convey purpose, but names such as a() and b(ByteBuf b) obscure the accessor and encoding operations. Code length: The implementation is concise without unnecessary logic, though the accessor documentation is somewhat repetitive. Action granularity: Each statement performs a single clear action. Reading flow: The progression from initialization to access and serialization is natural; cryptic method and parameter names are the primary readability weakness.
Run 2
Code Structure: The class is logically organized into a field, constructor, accessor, and serialization method. Nesting: There is no nested control flow, making it easy to scan. Clarity of intent: The class name, authScheme field, and documentation establish its purpose, but names such as a() and b(ByteBuf b) obscure the accessor and encoding operations. Code length: The implementation is concise, although the accessor documentation is repetitive. Action granularity: Each statement performs one clear action, with the two byte writes separated appropriately. Reading flow: The ordering is natural and formatting is consistent, though cryptic method and parameter names interrupt comprehension.
Run 3
Code Structure: Logically organized into a field, constructor, getter, and serialization method. Nesting: Flat, with no nested control flow. Clarity of intent: Class and field names, documentation, and superclass calls clarify the purpose, but method names a() and b() and parameter names a and b obscure meaning. Code length: Concise, though getter documentation is repetitive. Action granularity: Each statement performs one clear action on its own line. Reading flow: Natural progression from initialization to access and encoding, slightly weakened by cryptic naming and the lack of spacing between the package declaration and imports.