Sample

int-9338e6fe7941-I04

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

Matched original source

Lines45

Scores

MethodScoreScale
Posnett00–1; higher is more readable
Scalabrino0.9750–1; higher is more readable
Dorn0.5570–1; higher is more readable
Mi0.2460–1; higher is more readable
LLOC2Logical lines; fewer is more readable
DeepSeek V4 Pro140–20; mean of three runs
GPT-6.1 Sol13.670–20; mean of three runs
BTTF0.5850–1; higher is more readable

Views

Source code

package io.netty.handler.ssl; import io.netty.internal.tcnative.SSLPrivateKeyMethod; import io.netty.util.internal.UnstableApi; import javax.net.ssl.SSLEngine; /** * Allow to customize private key signing / decrypting (when using RSA). Only supported when using BoringSSL atm. */ @UnstableApi public interface OpenSslPrivateKeyMethod { int SSL_SIGN_RSA_PKCS1_SHA1 = SSLPrivateKeyMethod.SSL_SIGN_RSA_PKCS1_SHA1; int SSL_SIGN_RSA_PKCS1_SHA256 = SSLPrivateKeyMethod.SSL_SIGN_RSA_PKCS1_SHA256; int SSL_SIGN_RSA_PKCS1_SHA384 = SSLPrivateKeyMethod.SSL_SIGN_RSA_PKCS1_SHA384; int SSL_SIGN_RSA_PKCS1_SHA512 = SSLPrivateKeyMethod.SSL_SIGN_RSA_PKCS1_SHA512; int SSL_SIGN_ECDSA_SHA1 = SSLPrivateKeyMethod.SSL_SIGN_ECDSA_SHA1; int SSL_SIGN_ECDSA_SECP256R1_SHA256 = SSLPrivateKeyMethod.SSL_SIGN_ECDSA_SECP256R1_SHA256; int SSL_SIGN_ECDSA_SECP384R1_SHA384 = SSLPrivateKeyMethod.SSL_SIGN_ECDSA_SECP384R1_SHA384; int SSL_SIGN_ECDSA_SECP521R1_SHA512 = SSLPrivateKeyMethod.SSL_SIGN_ECDSA_SECP521R1_SHA512; int SSL_SIGN_RSA_PSS_RSAE_SHA256 = SSLPrivateKeyMethod.SSL_SIGN_RSA_PSS_RSAE_SHA256; int SSL_SIGN_RSA_PSS_RSAE_SHA384 = SSLPrivateKeyMethod.SSL_SIGN_RSA_PSS_RSAE_SHA384; int SSL_SIGN_RSA_PSS_RSAE_SHA512 = SSLPrivateKeyMethod.SSL_SIGN_RSA_PSS_RSAE_SHA512; int SSL_SIGN_ED25519 = SSLPrivateKeyMethod.SSL_SIGN_ED25519; int SSL_SIGN_RSA_PKCS1_MD5_SHA1 = SSLPrivateKeyMethod.SSL_SIGN_RSA_PKCS1_MD5_SHA1; /** * Signs the input with the given key and returns the signed bytes. * * @param engine the {@link SSLEngine} * @param signatureAlgorithm the algorithm to use for signing * @param input the digest itself * @return the signed data (must not be {@code null}) * @throws Exception thrown if an error is encountered during the signing */ byte[] a(SSLEngine a, int b, byte[] c) throws Exception; /** * Decrypts the input with the given key and returns the decrypted bytes. * * @param engine the {@link SSLEngine} * @param input the input which should be decrypted * @return the decrypted data (must not be {@code null}) * @throws Exception thrown if an error is encountered during the decrypting */ byte[] b(SSLEngine d, byte[] e) throws Exception; }

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

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

Score0.975

Feature contributions

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

Score0.246
Score2
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.