Sample

int-b2ff2774c44b-SRC

Unmodified source class

Lines27

Scores

MethodScoreScale
Posnett10–1; higher is more readable
Scalabrino0.830–1; higher is more readable
Dorn0.90–1; higher is more readable
Mi0.7590–1; higher is more readable
LLOC2Logical lines; fewer is more readable
DeepSeek V4 Pro19.330–20; mean of three runs
GPT-6.1 Sol200–20; mean of three runs
BTTF0.780–1; higher is more readable

Views

Source code

package org.springframework.test.context; /** * {@code BootstrapContext} encapsulates the context in which the <em>Spring * TestContext Framework</em> is bootstrapped. * * @author Sam Brannen * @since 4.1 * @see BootstrapWith * @see TestContextBootstrapper */ public interface BootstrapContext { /** * Get the {@linkplain Class test class} for this bootstrap context. * @return the test class (never {@code null}) */ Class<?> getTestClass(); /** * Get the {@link CacheAwareContextLoaderDelegate} to use for transparent * interaction with the {@code ContextCache}. * @return the context loader delegate (never {@code null}) */ CacheAwareContextLoaderDelegate getCacheAwareContextLoaderDelegate(); }

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(log-odds)
Source linesThe number of non-empty source lines.27+10.8
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.721−7.081
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.118.593−3.914

Intercept 8.87 + feature contributions = 8.675 (log-odds).
Score = sigmoid(8.675) = 1.

Score0.83

Feature contributions

FeatureValueContribution
(log-odds)
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.021+0.738
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.16+0.47
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.75.893+0.451
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.76+0.422
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.1+0.398
Indentation frequencyHow rapidly indentation changes from line to line.12−0.322
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.26.87−0.034

Intercept 0.07 + feature contributions = 2.192 (log-odds).
Score = sigmoid(2.192) = 0.9.

Score0.759
Score2
Run 1

The code is extremely readable. It is a simple, well-structured interface with clear Javadoc. The organization is logical, with methods grouped naturally. There is no nesting or complexity. Each method has a clear, single purpose, and the documentation explains intent precisely. The code is concise, with one action per line, and the reading flow is natural. It follows standard Java conventions and Spring Framework style guidelines, making it highly maintainable and easy to understand.

Run 2

This code is highly readable. It is a simple interface with two methods, each clearly documented with Javadoc explaining its purpose, return value, and non-null guarantee. The structure is logical and minimal, with no unnecessary nesting or complexity. The naming is explicit, and the code is concise without being cryptic. The only minor deduction is that it is a small interface, so it doesn't demonstrate broader structural patterns, but for what it is, it is exemplary.

Run 3

The code is an interface with clear structure and intent. It has minimal nesting, concise method signatures, and Javadoc explaining each method's purpose and return guarantees. The naming is descriptive and follows Java conventions. It reads naturally and represents an ideal example of a clean API contract.

Run 1

Code Structure: A clearly organized interface containing two related method declarations. Nesting: No nested control flow or unnecessary structural depth. Clarity of intent: Descriptive interface and method names, supported by Javadoc explaining purpose and non-null return contracts. Code length: Concise, with documentation proportional to the small API. Action granularity: Each method declaration occupies its own line and expresses a single responsibility. Reading flow: Natural progression from package declaration to interface documentation and individually documented methods.

Run 2

Code Structure: A clearly organized interface groups two related accessor methods. Nesting: No nested logic; the interface is flat and easy to scan. Clarity of intent: Descriptive interface and method names, supported by precise Javadoc, explain the purpose and non-null return contracts. Code length: Minimal declarations with proportionate documentation and no unnecessary implementation. Action granularity: Each method declaration occupies its own line and represents a single responsibility. Reading flow: Package declaration, interface documentation, and individually documented methods follow a natural, conventional Java order.

Run 3

Code Structure: A logically organized interface with two clearly separated accessor declarations. Nesting: No nested control flow or unnecessary hierarchy. Clarity of intent: Descriptive interface and method names, supported by focused Javadoc explaining purpose and non-null return contracts. Code length: Concise, with documentation proportionate to the public API. Action granularity: Each method declaration occupies its own line and represents a single responsibility. Reading flow: Package declaration, interface documentation, and documented methods follow a conventional, natural Java layout.