Sample
int-a49450dd0007-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.046 | 0–1; higher is more readable |
| Scalabrino | 0.853 | 0–1; higher is more readable |
| Dorn | 0.766 | 0–1; higher is more readable |
| Mi | 0.382 | 0–1; higher is more readable |
| LLOC | 15 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 18.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 19 | 0–20; mean of three runs |
| BTTF | 0.687 | 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. | 1135.35 | −37.467 |
| Source linesThe number of non-empty source lines. | 82 | +32.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.828 | −7.241 |
Intercept 8.87 + feature contributions = -3.038 (log-odds).
Score = sigmoid(-3.038) = 0.046.
| Score | 0.853 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 83 | −1.902 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 57 | +1.234 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 98.699 | +0.788 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 81.832 | +0.734 |
| 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. | 99.88 | −0.565 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.053 | +0.431 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
Intercept 0.07 + feature contributions = 1.188 (log-odds).
Score = sigmoid(1.188) = 0.766.
| Score | 0.382 |
|---|
| Score | 15 |
|---|
Run 1
The code is highly readable due to its logical structure and clear intent. The interface declaration is straightforward, with a concise yet informative Javadoc explaining the behavior and contract deviations. Method declarations are flat, with no nesting, and each method is presented on a single line, making the structure easy to scan. The use of @Override and @CanIgnoreReturnValue annotations is consistent, and the brief comments for each method clarify the intended use when return values are ignored. Imports are organized and limited. The code avoids unnecessary length, with only essential methods and documentation. Reading flow is natural, grouping related read methods logically. Overall, this is an exemplary implementation of a well-documented, minimal interface.
Run 2
The code is highly readable and well-structured. The package declaration and imports are organized, and the Javadoc clearly explains the interface's purpose and its contract deviation regarding IOException. The interface extends DataInput logically, and each method is declared on a single line with consistent @Override annotation. The nesting is minimal—only one method parameter list per line. The @CanIgnoreReturnValue annotations with brief comments clarify why the return value might be ignored, enhancing intent. The reading flow follows the natural order of DataInput methods. Overall, the code is concise, clear, and adheres to clean code principles with virtually no ambiguity.
Run 3
The code is highly readable. It has a clear, logical structure with a descriptive Javadoc explaining purpose and behavior. Nesting is minimal (single interface declaration). Intent is unambiguous—an in-memory DataInput that does not throw IOException. Length is appropriate: each method is a one-line override, avoiding unnecessary verbosity. Action granularity is excellent—each method and annotation is on its own line, improving scanability. Reading flow is natural, with grouping by logical categories (bulk reads, skipping, primitive reads). Minor deduction for slight repetition in '@CanIgnoreReturnValue' comments, but those comments actually enhance clarity of intent. Overall, an exemplary clean interface definition.
Run 1
Code Structure: A clean interface with logically ordered methods matching DataInput. Nesting: Flat declarations with no nested control flow. Clarity of intent: Descriptive method names and thorough class documentation clearly explain the purpose and exception behavior; annotations clarify return-value handling and nullability. Code length: Appropriate for the API, though repeated annotations and comments add minor verbosity. Action granularity: Each method declaration occupies its own line, with annotations clearly separated. Reading flow: Consistent formatting and spacing make scanning straightforward; the missing blank line after the package declaration is a minor stylistic weakness.
Run 2
Code Structure: The interface is logically organized, grouping related read operations in a consistent declaration format. Nesting: It is flat, with no nested control flow. Clarity of intent: The interface name, standard DataInput method names, and detailed documentation clearly explain its purpose and exception behavior; abbreviated parameters are a minor weakness. Code length: It is concise for the API exposed, with necessary repetition of declarations and annotations. Action granularity: Each method declaration occupies its own line, with annotations clearly separated. Reading flow: Consistent spacing and predictable method ordering make scanning easy. Minor drawbacks include repetitive annotation comments and the lack of spacing between the package and import sections.
Run 3
Code Structure: A clearly organized interface with related methods presented consistently. Nesting: Entirely flat apart from the interface scope. Clarity of intent: The class documentation explains its purpose and exception behavior; familiar DataInput method names and annotations clarify usage. Short parameter names are slightly less descriptive. Code length: Concise for a complete interface, although repeated annotations and comments add minor visual overhead. Action granularity: Each method declaration occupies its own line, with annotations separated cleanly. Reading flow: Predictable ordering, consistent spacing, and useful comments make scanning easy; missing separation between the package declaration and imports is a minor formatting weakness.