Sample
int-dbc3a3fa7c94-I09
Select one of ten low-readability unrelated code templates per class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 1 | 0–1; higher is more readable |
| Scalabrino | 0.83 | 0–1; higher is more readable |
| Dorn | 0.9 | 0–1; higher is more readable |
| Mi | 0.759 | 0–1; higher is more readable |
| LLOC | 2 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 18.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 20 | 0–20; mean of three runs |
| BTTF | 0.78 | 0–1; higher is more readable |
Views
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (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.
| Score | 0.83 |
|---|
Feature contributions
| Feature | Value | Contribution (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.
| Score | 0.759 |
|---|
| Score | 2 |
|---|
Run 1
This code is highly readable. The structure is logical, with a clear package declaration, imports, and a single interface definition. There is no nesting, making the code flat and easy to scan. The intent is unambiguous: the interface defines a contract for Spring test context bootstrapping. The code is concise, containing only two method declarations with proper Javadoc. Each method has a single, clear purpose per line, and reading flows naturally from the interface Javadoc to the method signatures. The only minor deductions are for the absence of explicit braces and the use of generic wildcards, which could slightly reduce clarity for novice readers, but overall this is exemplary code.
Run 2
The code is highly readable. It is a concise interface with clear structure, minimal nesting, and straightforward intent. Javadoc comments explain the purpose of the interface and each method, enhancing clarity. Each method has a single responsibility, and the code is very short, avoiding unnecessary length. The reading flow is natural, following a logical order: test class first, then context loader delegate. The use of generics and descriptive method names makes the purpose unambiguous. The only minor drawback is the lack of explicit nullability annotations (e.g., @NonNull), but the Javadoc already states 'never null' for return values.
Run 3
This is a clean, well-structured Java interface. The code is logically organized with clear separation between the interface declaration, its Javadoc, and the two method declarations. There is no nesting, and the intent is unambiguously expressed through descriptive method names and comprehensive Javadoc comments. The code is concise—no unnecessary lines—while still including valuable documentation. Each method declaration occupies its own block with clear action granularity. The reading flow is natural: top-level documentation, interface declaration, then methods in logical order. The only minor deduction is because it is inherently a sparse interface, so it cannot demonstrate complex structural decisions, but within its scope it is nearly perfect.
Run 1
Code Structure: A logically organized interface with two closely related accessor declarations. Nesting: No nested control flow or unnecessary structural depth. Clarity of intent: Descriptive interface and method names, supported by precise Javadoc and non-null return guarantees, clearly communicate purpose. Code length: Minimal declarations with relevant documentation and no redundant 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 layout.
Run 2
Code Structure: A clearly organized interface groups two related accessor methods. Nesting: No nested control flow or complex blocks. Clarity of intent: Descriptive interface and method names, supported by precise Javadoc, make the purpose and non-null contracts explicit. Code length: Minimal declarations with relevant documentation and no unnecessary implementation. Action granularity: Each method declaration occupies its own line and expresses a single responsibility. Reading flow: Package declaration, interface documentation, and individually documented methods follow a natural, consistent order.
Run 3
Code Structure: A focused interface groups two logically related accessors. Nesting: Only the interface scope is present, with no nested control flow. Clarity of intent: Descriptive method names and precise Javadoc clearly explain the interface's purpose, return values, and non-null guarantees. Code length: The interface is concise, with documentation proportionate to its public API role. Action granularity: Each method declaration occupies its own line and expresses a single responsibility. Reading flow: Package declaration, interface documentation, and individually documented methods appear in a natural, conventional order, with whitespace separating the elements.