Sample
int-cc637013ca5a-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.461 | 0–1; higher is more readable |
| Dorn | 0.491 | 0–1; higher is more readable |
| Mi | 0.474 | 0–1; higher is more readable |
| LLOC | 16 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 8.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 15 | 0–20; mean of three runs |
| BTTF | 0.218 | 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. | 1668 | −55.044 |
| Source linesThe number of non-empty source lines. | 51 | +20.4 |
| 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.94 | −7.411 |
Intercept 8.87 + feature contributions = -33.185 (log-odds).
Score = sigmoid(-33.185) = 0.
| Score | 0.461 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 102.923 | +0.856 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 52 | −0.805 |
| 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. | 102.904 | −0.693 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 41 | +0.681 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 41 | −0.52 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 50.856 | +0.301 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.089 | +0.073 |
Intercept 0.07 + feature contributions = -0.037 (log-odds).
Score = sigmoid(-0.037) = 0.491.
| Score | 0.474 |
|---|
| Score | 16 |
|---|
Run 1
The code has clear intent and a simple purpose, but contains a severe readability violation: an obfuscated, dead code line inside hasNext() that obscures logic and breaks the flow. Structure is straightforward with delegation methods, but the noise distracts. Nesting is minimal and action granularity is fine. The adapter logic is concise but the obfuscation makes the method confusing and unprofessional. Removing that line would raise the score significantly.
Run 2
The code is generally readable but contains an obfuscated line in hasNext() that significantly hurts clarity. The class structure is logical and delegation methods are straightforward. However, the meaningless variable assignment with hex arithmetic and bitwise operations seems like accidental or intentional obfuscation, making intent unclear. Nesting is minimal and action granularity is good. The adapter has a clear purpose, but the extraneous line disrupts reading flow and maintainability. Removing it would improve the score substantially.
Run 3
The code has a clear class purpose and mostly flat structure, but readability is severely compromised by the injected obfuscated line inside hasNext(). This line performs meaningless variable assignments that obscure intent and break reading flow. While the remaining logic is simple and concise, this confusing artifact dominates the perception of code quality. Additionally, the adapter design could be clearer with more context about the bytes format transformation. Overall, the structure and naming are reasonable, but the intentional obfuscation drags the score down significantly.
Run 1
Code Structure: A logically organized adapter with a single responsibility and clearly separated delegation methods. Nesting: Mostly flat, with only a simple null check; the unnecessary block in hasNext adds distracting nesting. Clarity of intent: Descriptive names and documentation clearly explain the compatibility conversion, but the cryptically named variable and pointless arithmetic obscure hasNext. Code length: Appropriately concise overall, except for the redundant injected statement block. Action granularity: Most lines perform one action, while the injected line combines declaration, arithmetic, assignment, and conditional logic. Reading flow: Constructor and iterator methods follow a natural sequence, but the unindented, densely packed block abruptly interrupts otherwise clean formatting.
Run 2
Code Structure: The adapter is logically organized into small methods, but an unrelated block in hasNext() disrupts the structure. Nesting: Mostly flat, with only a simple null guard and one unnecessary nested block. Clarity of intent: Descriptive names and documentation clearly explain delegation and header conversion; the cryptic variable and no-op arithmetic obscure hasNext(). Code length: Concise overall, except for the redundant injected statement. Action granularity: Most lines contain one action, but the injected line combines declaration, assignment, and conditional bitwise operations. Reading flow: Delegation methods and next() read naturally; inconsistent formatting and meaningless computation interrupt the flow.
Run 3
Code Structure: The adapter is logically organized into small, focused methods, but an unrelated block disrupts hasNext(). Nesting: Mostly flat, with only a simple null guard and one unnecessary nested block. Clarity of intent: Descriptive names and class documentation clearly explain delegation and header conversion; the cryptic variable and no-op arithmetic obscure intent locally. Code length: Concise overall, apart from the redundant injected statement. Action granularity: Most lines perform one action, but the injected line compresses declaration, arithmetic, assignment, and conditional logic. Reading flow: Method order and straightforward delegation are natural, while the unindented, densely packed block interrupts otherwise clean formatting.