Sample
int-3d3fdd971614-I12
Inline all eligible single-use intermediate local variables
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.946 | 0–1; higher is more readable |
| Dorn | 0.559 | 0–1; higher is more readable |
| Mi | 0.275 | 0–1; higher is more readable |
| LLOC | 2 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 17.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 18 | 0–20; mean of three runs |
| BTTF | 0.685 | 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.991 | −7.487 |
Intercept 8.87 + feature contributions = -12.486 (log-odds).
Score = sigmoid(-12.486) = 0.
| Score | 0.946 |
|---|
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.633 |
| 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.236 (log-odds).
Score = sigmoid(0.236) = 0.559.
| Score | 0.275 |
|---|
| Score | 2 |
|---|
Run 1
The code is well-structured as a concise interface definition. Constants are logically grouped and consistently formatted, though the list is long. The interface avoids unnecessary nesting and has a clear purpose: defining a custom private key method for SSL operations. Method signatures are concise with clear parameter names and return types. Javadoc comments effectively document intent and behavior. Reading flow is natural, with constants first, then methods, and clear documentation separating them. Minor deductions result from repetitive constant declarations and slight verbosity in Javadoc, but overall readability is high.
Run 2
This code is highly readable. It has clear structure with imports, constants, and methods well-organized. The constant declarations are flat with no nesting, and each line represents one action. The interface name and method names clearly indicate intent. Javadoc comments explain parameters, return values, and exceptions concisely. The code length is appropriate—not overly verbose. The only minor drawbacks are the long constant names and the slight duplication in mapping SSL constants, but these are unavoidable given the domain. Overall, it follows clean code principles effectively.
Run 3
The code is highly readable. It follows a clear, logical structure with package, imports, Javadoc, interface declaration, constants, and method signatures in a conventional order. Nesting is flat—there are no blocks or conditional structures. Intent is explicit: define an API for customizing private key operations. Code length is concise, with each constant on its own line and minimal verbosity in method signatures. Action granularity is one declaration per line, aiding scanning. Reading flow is natural: constants are grouped logically, and Javadoc provides useful context for parameters and return values. Minor deduction for the long constant list that could perhaps be grouped with comments, and for missing Javadoc on the interface constants, but overall it is very clean.
Run 1
Code Structure: Imports, constants, and documented method declarations are logically organized. Nesting: The interface is flat, with no nested control flow. Clarity of intent: Descriptive algorithm constants and method names make the purpose clear; Javadoc explains parameters and return values, though references to a 'given key' are slightly ambiguous because no key parameter is present. Code length: Concise for an interface exposing numerous supported algorithms, with little unnecessary content. Action granularity: Each constant and method declaration occupies its own line. Reading flow: Natural progression from interface purpose to supported algorithms and operations; blank lines between algorithm families and clearer wording in the introductory comment would improve scanning.
Run 2
Code Structure: Clearly organized into imports, interface documentation, algorithm constants, and two documented methods. Nesting: Flat interface declarations with no nested control flow. Clarity of intent: Descriptive names and Javadoc make signing and decryption responsibilities clear, though the introductory RSA qualifier is ambiguous and 'given key' is not explained by the parameters. Code length: Concise for the API exposed; repetitive constant declarations are appropriate but visually dense. Action granularity: Each constant and method declaration occupies its own line. Reading flow: Natural top-to-bottom progression, slightly weakened by the lack of spacing around imports and grouping between algorithm families.
Run 3
Code Structure: Logically organized into imports, algorithm constants, and two documented method declarations. Nesting: Flat interface with no nested control flow. Clarity of intent: Descriptive names and Javadoc clearly explain signing and decryption, although the introductory RSA qualification is slightly ambiguous and key selection is implicit. Code length: Appropriately concise; the repetitive constants serve a useful API purpose. Action granularity: Each constant and method declaration occupies its own line. Reading flow: Natural progression from supported algorithms to operations, with consistent formatting. Minor improvements include separating package and import sections, grouping related algorithms visually, and replacing informal wording such as 'atm' in the documentation.