Sample

int-e2e168147619-I04

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

Matched original source

Lines59

Scores

MethodScoreScale
Posnett0.9970–1; higher is more readable
Scalabrino0.7320–1; higher is more readable
Dorn0.7970–1; higher is more readable
Mi0.6170–1; higher is more readable
LLOC5Logical lines; fewer is more readable
DeepSeek V4 Pro4.670–20; mean of three runs
GPT-6.1 Sol130–20; mean of three runs
BTTF0.6270–1; higher is more readable

Views

Source code

package org.springframework.cache.interceptor; import java.lang.reflect.Method; import java.util.Collection; import org.jspecify.annotations.Nullable; import org.springframework.util.CollectionUtils; /** * Interface used by {@link CacheInterceptor}. Implementations know how to source * cache operation attributes, whether from configuration, metadata attributes at * source level, or elsewhere. * * @author Costin Leau * @author Juergen Hoeller * @since 3.1 */ public interface CacheOperationSource { /** * Determine whether the given class is a candidate for cache operations * in the metadata format of this {@code CacheOperationSource}. * <p>If this method returns {@code false}, the methods on the given class * will not get traversed for {@link #getCacheOperations} introspection. * Returning {@code false} is therefore an optimization for non-affected * classes, whereas {@code true} simply means that the class needs to get * fully introspected for each method on the given class individually. * @param targetClass the class to introspect * @return {@code false} if the class is known to have no cache operation * metadata at class or method level; {@code true} otherwise. The default * implementation returns {@code true}, leading to regular introspection. * @since 5.2 * @see #hasCacheOperations */ default boolean a(Class<?> a) { return true; } /** * Determine whether there are cache operations for the given method. * @param method the method to introspect * @param targetClass the target class (can be {@code null}, * in which case the declaring class of the method must be used) * @since 6.2 * @see #getCacheOperations */ default boolean b(Method b, @Nullable Class<?> c) { return !CollectionUtils.isEmpty(c(b, c)); } /** * Return the collection of cache operations for this method, * or {@code null} if the method contains no <em>cacheable</em> annotations. * @param method the method to introspect * @param targetClass the target class (can be {@code null}, in which case * the declaring class of the method must be used) * @return all cache operations for this method, or {@code null} if none found */ @Nullable Collection<CacheOperation> c(Method d, @Nullable Class<?> e); }

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(log-odds)
Source linesThe number of non-empty source lines.59+23.6
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.598.547−19.752
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.682−7.023

Intercept 8.87 + feature contributions = 5.695 (log-odds).
Score = sigmoid(5.695) = 0.997.

Score0.732

Feature contributions

FeatureValueContribution
(log-odds)
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.57−0.982
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.025+0.696
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.79.583+0.48
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.58.866+0.413
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.1+0.398
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.80.983+0.235
Indentation frequencyHow rapidly indentation changes from line to line.23+0.058

Intercept 0.07 + feature contributions = 1.368 (log-odds).
Score = sigmoid(1.368) = 0.797.

Score0.617
Score5
Run 1

The code is severely unreadable due to meaningless naming. Methods 'a', 'b', and 'c' and parameters 'a', 'b', 'c', 'd', 'e' completely obscure intent, despite thorough Javadoc. The logical structure is acceptable (single interface, flat nesting, concise length), but action granularity and reading flow are undermined by the names. The Javadoc clearly describes the purpose, but the code itself fails to communicate it. Overall, the naming makes the code ambiguous and difficult to follow.

Run 2

The code is severely obfuscated. Method names like a(), b(), and c() completely obscure intent, despite detailed Javadoc. Parameter names like a, b, c, d, e are meaningless and actively hinder comprehension. The method b() has multiple actions compressed into one line, violating granularity and reading flow principles. While the interface structure is technically valid and flat (no deep nesting), the naming breaks clarity of intent entirely. Code length is acceptable but deceptive — the Javadoc is lengthy while the actual names are uninformative. Reading flow is disorganized because readers must constantly cross-reference Javadoc to understand basic signatures. The structure itself is not tangled, but all other criteria fail dramatically. This represents an extreme case of intentional obfuscation of what should be a straightforward Spring interface.

Run 3

The code structure is relatively simple but severely undermined by poor naming. Method and parameter names like a(), b(), c(), and single-letter parameters obliterate clarity of intent, despite Javadoc. Reading flow is disorganized because you must consult comments to understand what each name means. The interface has flat nesting and concise length, which are positive, but action granularity is hard to assess because method bodies are minimal. However, the confusing names require constant mental mapping, making the code feel tangled even though the structure is logical. A professional codebase like Spring would normally prioritize meaningful names, so this version is a significant regression in readability.

Run 1

Code Structure: The interface is logically organized into three related operations with appropriate imports and documentation. Nesting: Methods are flat, with no nested control flow. Clarity of intent: The interface name and Javadocs explain the purpose, but single-letter method and parameter names obscure meaning. Documentation references and @param names do not match the actual declarations, further impairing clarity. Code length: Implementation is concise; lengthy documentation mostly provides useful contract details. Action granularity: Each statement performs one clear action, although the compact call c(b, c) is difficult to interpret. Reading flow: The progression from class candidacy to operation existence to operation retrieval is natural, but readers must repeatedly consult documentation to decode identifiers.

Run 2

Code Structure: The interface is logically organized, with two default methods followed by the operation lookup contract. Nesting: Bodies are flat and trivial, with no nested control flow. Clarity of intent: Detailed documentation explains the purpose, but single-letter method and parameter names obscure meaning. Documentation references and @param tags do not match the actual declarations, making navigation and interpretation harder. Code length: Implementation is concise; documentation is comparatively lengthy but mostly useful. Action granularity: Each executable line performs one clear operation, without compressed statements. Reading flow: Consistent formatting and method ordering help, but the call c(b, c) forces readers to decode identifiers, and mismatched documentation interrupts an otherwise natural flow.

Run 3

Code Structure: The interface is logically organized, with imports, documentation, and three related methods. Nesting: There is no deep nesting; default implementations are flat and simple. Clarity of intent: Extensive documentation explains the cache-operation contract, but single-letter method and parameter names obscure intent. Documentation references and @param names do not match the actual declarations, making navigation and interpretation harder. Code length: Executable code is concise; documentation is lengthy but mostly useful. Action granularity: Each implementation performs one straightforward action per line. Reading flow: The consistent method layout helps, but readers must repeatedly translate ambiguous identifiers using comments, and mismatched documentation interrupts an otherwise natural flow.