Sample
int-9d644835380a-I09
Select one of ten low-readability unrelated code templates per class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.418 | 0–1; higher is more readable |
| Dorn | 0.159 | 0–1; higher is more readable |
| Mi | 0.229 | 0–1; higher is more readable |
| LLOC | 28 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 6.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12.67 | 0–20; mean of three runs |
| BTTF | 0.18 | 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. | 3108.696 | −102.587 |
| Source linesThe number of non-empty source lines. | 77 | +30.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.654 | −6.981 |
Intercept 8.87 + feature contributions = -69.898 (log-odds).
Score = sigmoid(-69.898) = 0.
| Score | 0.418 |
|---|
Feature contributions
| Feature | Value | Contribution (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. | 158.962 | −3.068 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 158.974 | +1.761 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 78 | −1.725 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 70 | +1.684 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 70 | −1.185 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 76.869 | +0.665 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.083 | +0.131 |
Intercept 0.07 + feature contributions = -1.668 (log-odds).
Score = sigmoid(-1.668) = 0.159.
| Score | 0.229 |
|---|
| Score | 28 |
|---|
Run 1
The code is significantly compromised by the presence of an obfuscated line in the constructor. This line (`{int lI0O...}`) is nonsensical, has no logical purpose, and directly impacts readability, clarity of intent, and overall code quality. Beyond that critical flaw, the logic itself is convoluted. The `all()` method uses a stream to collect failed partitions but then iterates through the error map with a traditional loop to throw exceptions, creating redundant and disjointed logic. The intent of the method's error handling is unclear and inefficient. The code structure, while not deeply nested, is hampered by poor organization and contradictory approaches to similar tasks. The presence of the obfuscated code makes it impossible to rate this as readable, even though the method names and basic class structure are otherwise understandable.
Run 2
The code is generally readable but has some issues. The structure is logical, but the constructor contains a confusing, meaningless obfuscated line. Nesting is moderate (if-else within a lambda), and intent is mostly clear. Code length is reasonable. However, the `all()` method uses a lambda with a block body and a for-loop that could be simplified with streams, and it mixes error-message construction logic. The `partitionResult` method is relatively clear, but the constructor noise hurts readability. Action granularity is generally one action per line, except in the `all()` method. Reading flow is natural except for the constructor and the slightly convoluted error handling.
Run 3
This code contains suspicious obfuscated JavaScript-like code injected inside the constructor (`{int lI0O_5d670920=...}`), which is invalid Java and severely harms readability. Beyond that, the structure is mostly logical but the `all()` method uses a nested lambda with multiple conditionals and a loop, increasing cognitive load. Nesting in `partitionResult()` is moderate (3 levels). Action granularity is inconsistent—some lines perform multiple logical steps. Reading flow is disrupted by the injected garbage code and redundant null checks. The class is not excessively long, but the intent of the malformed constructor is completely unclear and likely malicious.
Run 1
Code Structure: The class is logically organized around a stored future and two result-access methods, but the constructor contains an unrelated, obfuscated block. Nesting: Callback conditionals and the loop in all() introduce moderate nesting, making error handling slightly harder to follow. Clarity of intent: Method names, descriptive variables, and documentation clarify the main purpose; cryptic constructor variables and meaningless bitwise operations strongly undermine clarity. Code length: Most code is reasonably concise, though the injected block and repeated exception-message construction add unnecessary length. Action granularity: Most statements perform one action per line, but the constructor block compresses several declarations and operations into a single line. Reading flow: The normal methods follow a coherent asynchronous result-handling flow, interrupted by the poorly formatted constructor block and somewhat repetitive error branches.
Run 2
Code Structure: The class is logically divided into construction, per-partition results, and aggregate results, but an unrelated obfuscated constructor block disrupts organization. Nesting: Callback conditionals and the loop in all() introduce moderate nesting, though branches remain manageable. Clarity of intent: Method names, documentation, and descriptive variables explain the main behavior; cryptic identifiers and meaningless bitwise operations severely obscure the constructor. Code length: Most code is appropriately sized, but the injected block and duplicated error-message construction add unnecessary content. Action granularity: Most statements perform one action per line; the constructor block packs declarations and several operations onto a single line. Reading flow: The main methods follow a natural sequence, but inconsistent formatting and the unexplained constructor block interrupt otherwise coherent reading.
Run 3
Code Structure: The class cleanly separates construction, per-partition results, and aggregate results, but an unrelated obfuscated block disrupts the constructor. Nesting: Callback conditionals are moderately nested, particularly in all(), increasing reading effort. Clarity of intent: Descriptive method names, types, and documentation explain the main behavior; cryptic variable names and meaningless bitwise operations obscure the constructor. Code length: Most code is reasonably concise, though the injected block and duplicated error-message construction add unnecessary length. Action granularity: Main logic generally uses one action per line, but the constructor block compresses multiple declarations and mutations into one line. Reading flow: Methods follow a natural sequence and stream formatting is readable, but inconsistent whitespace and the unindented obfuscated block interrupt an otherwise coherent flow.