Sample
int-e46a82bfb1c8-I01
Remove line comments, block comments, and Javadoc
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.758 | 0–1; higher is more readable |
| Dorn | 0.313 | 0–1; higher is more readable |
| Mi | 0.422 | 0–1; higher is more readable |
| LLOC | 2 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 16 | 0–20; mean of three runs |
| GPT-6.1 Sol | 16.33 | 0–20; mean of three runs |
| BTTF | 0.616 | 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. | 5.07 | −7.605 |
Intercept 8.87 + feature contributions = -12.604 (log-odds).
Score = sigmoid(-12.604) = 0.
| Score | 0.758 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 45 | +0.819 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 45 | −0.612 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 46 | −0.592 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.053 | +0.429 |
| 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. | 93.935 | −0.313 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 44.937 | +0.218 |
Intercept 0.07 + feature contributions = -0.786 (log-odds).
Score = sigmoid(-0.786) = 0.313.
| Score | 0.422 |
|---|
| Score | 2 |
|---|
Run 1
The code is generally readable but has several issues. The structure is logical for an interface, with constants followed by method signatures. The flat nesting and one-action-per-line approach in the constant declarations are good. However, the excessive blank lines between constants (five lines) and after them (seven lines) disrupt the reading flow and make the file appear unnecessarily long. The constants are verbose but appropriately named, and their relationship to SSLPrivateKeyMethod is clear. The method signatures are simple and intentions are obvious. Overall, the code is readable but could be improved by reducing the excessive whitespace.
Run 2
The code is highly readable. It uses a clear package structure and a single interface with a well-defined purpose. Constants are logically grouped and directly map to underlying native values, which makes intent clear. Nesting is minimal, and the overall length is concise. However, the excessive blank lines between the interface methods and within the constant declarations disrupt the reading flow and create unnecessary visual separation. The interface methods are simple and focused, with one action per line. The 'UnstableApi' annotation immediately signals the API's stability level. Overall, the code is very readable but could be improved by reducing extraneous whitespace.
Run 3
The code is highly readable. It has a clear structure: package, imports, annotation, interface declaration, constants, and method signatures. There is no nesting. Intent is unambiguous—this interface defines custom private key operations for OpenSSL. Constants follow a flat, repetitive pattern that is concise and easy to scan. Method signatures are minimal and clear. The only minor issue is the presence of multiple blank lines before method declarations, which slightly interrupts flow, but does not harm readability. Overall, the code is clean, well-organized, and easy to understand.
Run 1
Code Structure: The interface is logically organized, with imports, algorithm constants, and method declarations. Nesting: Flat declarations with no nested control flow make scanning easy. Clarity of intent: Descriptive constant names and sign/decrypt methods communicate purpose, though documentation would clarify input formats, return values, and exception behavior. Code length: The functional content is concise, but excessive blank lines unnecessarily expand the file. Action granularity: Each constant and method declaration occupies its own line. Reading flow: The ordering is natural and consistent, but large whitespace gaps disrupt continuity, and grouping algorithm families more explicitly would improve navigation.
Run 2
Code Structure: Logically organized as an interface with constants followed by method declarations, though constant groups could be visually separated. Nesting: Completely flat aside from the interface scope, making it easy to scan. Clarity of intent: Descriptive constant names and sign/decrypt methods convey purpose, but missing documentation leaves input formats, return values, and exception behavior unclear. Code length: Declarations are concise and repetition is justified, but excessive blank lines unnecessarily lengthen the snippet. Action granularity: Each constant or method declaration occupies its own line. Reading flow: The order is natural and consistent, but large whitespace gaps interrupt the flow.
Run 3
Code Structure: The interface is logically organized, with imports, signature-algorithm constants, and method declarations. Nesting: Entirely flat apart from the interface body, making it easy to scan. Clarity of intent: Descriptive constant names and sign/decrypt methods communicate the general purpose, but missing documentation leaves input formats, algorithm expectations, and exception behavior unclear. Code length: The declarations are concise and the repeated constant mappings are straightforward, but excessive blank lines unnecessarily inflate the code. Action granularity: Each constant or method declaration occupies its own line. Reading flow: Constants followed by operations form a natural progression, although large whitespace gaps interrupt the flow and the constants could benefit from visual grouping.