Sample
int-9338e6fe7941-I04
Replace method, parameter, and local names with deterministic ProGuard-style short identifiers
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.975 | 0–1; higher is more readable |
| Dorn | 0.557 | 0–1; higher is more readable |
| Mi | 0.246 | 0–1; higher is more readable |
| LLOC | 2 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 14 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.67 | 0–20; mean of three runs |
| BTTF | 0.585 | 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. | 965.73 | −31.869 |
| Source linesThe number of non-empty source lines. | 45 | +18 |
| 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.989 | −7.484 |
Intercept 8.87 + feature contributions = -12.483 (log-odds).
Score = sigmoid(-12.483) = 0.
| Score | 0.975 |
|---|
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. | 112.978 | −1.12 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 112.913 | +1.017 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.032 | +0.628 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 46 | −0.592 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 28 | +0.231 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 28 | −0.222 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 44.93 | +0.218 |
Intercept 0.07 + feature contributions = 0.231 (log-odds).
Score = sigmoid(0.231) = 0.557.
| Score | 0.246 |
|---|
| Score | 2 |
|---|
Run 1
The code is mostly readable and logically structured: imports and class declaration are straightforward, constants are grouped, and documentation is present. However, its readability is significantly hurt by the last two method signatures, which use meaningless parameter names like 'a', 'b', 'c', 'd', and 'e', and method names 'a' and 'b'. This makes the intent unclear despite the Javadoc. The constant declarations are repetitive but acceptable for this purpose. No deep nesting or multi-action lines exist, so those criteria are fine. Overall legibility is moderate but compromised by non-descriptive identifiers.
Run 2
The code is well-structured as a clean interface with a clear purpose: customizing private key operations in OpenSSL. Constants are neatly grouped and consistently mapped to SSLPrivateKeyMethod values, aiding readability. Javadoc comments for both methods clearly describe parameters, return values, and exceptions, contributing to intent clarity. The file is concise and avoids unnecessary logic. However, readability is negatively impacted by the use of meaningless parameter names like 'a', 'b', 'c', 'd', and 'e' in method signatures, which obscures the methods' contracts despite the Javadoc. The reading flow is slightly interrupted by the long list of constants but remains logically organized. Overall, it is highly readable, with the main drawback being poor parameter naming.
Run 3
The code is fundamentally clear in structure and purpose, with good Javadoc, but its readability is significantly undermined by meaningless parameter names and method names. The constants are logical and concise. However, methods 'a(SSLEngine a, int b, byte[] c)' and 'b(SSLEngine d, byte[] e)' provide no clarity of intent; a reader cannot understand what the parameters represent without reading the full Javadoc. This forces context-switching and harms the reading flow. Nesting is flat, action granularity is one per line, and the length is appropriate for an interface. The primary issue is that the abbreviated method and parameter names fail to convey purpose, making the code appear obfuscated despite its organized structure.
Run 1
Code Structure: The interface logically separates constants from two documented operations. Nesting: Flat declarations with no nested control flow are easy to scan. Clarity of intent: Descriptive constants and Javadocs explain the purpose, but method names a and b and single-letter parameters obscure the API. Javadoc parameter names also do not match the declarations, undermining clarity. Code length: Appropriately concise for an interface; repeated constants are justified. Action granularity: Each constant and method declaration occupies its own line. Reading flow: Constants followed by signing and decryption operations create a natural sequence, although minimal spacing around imports and cryptic method signatures interrupt readability.
Run 2
Code Structure: The interface logically separates algorithm constants from signing and decryption operations. Nesting: Flat declarations make it easy to scan. Clarity of intent: Descriptive constants and Javadoc explain the purpose, but method names a/b and parameter names a–e obscure the API. Javadoc parameter names do not match the signatures, further reducing clarity. Code length: Appropriate for a small interface; repetitive constants serve a legitimate purpose. Action granularity: Each constant or method declaration occupies its own line. Reading flow: Constants followed by documented methods provide a natural progression, although missing spacing around imports and cryptic identifiers interrupt readability.
Run 3
Code Structure: Logically organized into imports, an interface, constants, and two documented methods. Nesting: Flat, with no nested control flow. Clarity of intent: Descriptive constants and Javadoc explain the purpose, but method names a/b and parameter names a–e obscure meaning. Javadoc parameter names do not match the actual declarations, further reducing clarity. Code length: Appropriately concise for an interface; the repeated constants serve a clear purpose. Action granularity: Each declaration occupies its own line, making individual elements easy to scan. Reading flow: Constants followed by operations provide a natural progression, though missing spacing around imports and cryptic method signatures interrupt readability.