Sample
int-c619a2664226-I09
Select one of ten low-readability unrelated code templates per class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.389 | 0–1; higher is more readable |
| Scalabrino | 0.869 | 0–1; higher is more readable |
| Dorn | 0.753 | 0–1; higher is more readable |
| Mi | 0.782 | 0–1; higher is more readable |
| LLOC | 7 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 5.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13 | 0–20; mean of three runs |
| BTTF | 0.189 | 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. | 524.793 | −17.318 |
| Source linesThe number of non-empty source lines. | 38 | +15.2 |
| 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.802 | −7.203 |
Intercept 8.87 + feature contributions = -0.451 (log-odds).
Score = sigmoid(-0.451) = 0.389.
| Score | 0.869 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 76.923 | +0.437 |
| 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. | 76.974 | +0.405 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.068 | +0.28 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 28 | +0.231 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 28 | −0.222 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 35 | −0.203 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 37.603 | +0.116 |
Intercept 0.07 + feature contributions = 1.114 (log-odds).
Score = sigmoid(1.114) = 0.753.
| Score | 0.782 |
|---|
| Score | 7 |
|---|
Run 1
The code is generally readable: it has a clear package declaration, a meaningful class name, minimal nesting, and concise constructor overloads with obvious intent. However, readability is severely undermined by the obfuscated boolean variable inserted at the end of the file, which serves no functional purpose and breaks the natural reading flow. Additionally, the JavaDoc comments are repetitive and uninformative, padding the code length without adding clarity. Each constructor is simple, with one action per line, and the class structure follows standard exception design, which is logical. But the stray logic line makes the code feel disorganized and ambiguous, suggesting either accidental corruption or intentional obfuscation. Without that anomaly, the code would score significantly higher.
Run 2
The code is mostly a standard exception class, but it contains a suspicious obfuscated boolean assignment inside the final constructor: `{boolean lI0O_8d44e395=((0xA103^0xA103)!=0);lI0O_8d44e395=!(!lI0O_8d44e395);}`. This block is dead code with no purpose, severely harming clarity of intent and action granularity. The variable name is unreadable, and the expression itself is meaningless. This suggests either intentionally obfuscated or corrupted code, which breaks trust in readability. Otherwise, the class follows standard exception patterns with clear constructors, minimal nesting, and good Javadoc. However, the inserted line destroys the overall quality because a reader cannot understand why it exists or what it does. Apart from that, the structure is simple and flat, but the presence of this unnecessary code drops the score dramatically.
Run 3
The code is mostly a standard exception class, but it contains a deliberately obfuscated line: '{boolean lI0O_8d44e395=((0xA103^0xA103)!=0);lI0O_8d44e395=!(!lI0O_8d44e395);}' inserted inside the constructor body. This line is meaningless, uses a cryptic variable name, performs pointless bitwise and boolean operations, and serves no functional purpose. It severely damages readability by breaking the flow of an otherwise clear and conventional class definition. While the rest of the structure is flat, well-organized, and concise, this single line introduces ambiguity and confusion, undermining the clarity of intent and reading flow. The code fails the readability evaluation due to this intentional obfuscation.
Run 1
Code Structure: The exception class is logically organized with a serialization identifier and standard constructors, but the final constructor contains an unrelated block. Nesting: Generally shallow; the extra block adds unnecessary nesting. Clarity of intent: The class purpose and constructor delegation are clear, while the obscure variable name, hexadecimal XOR, and double negation obscure a computation with no useful effect. Code length: Mostly concise boilerplate, but the redundant block and repetitive constructor comments add noise. Action granularity: Constructor delegation uses one action per line, but the injected block compresses declaration and reassignment onto one line. Reading flow: Consistent formatting and familiar constructor patterns make most of the class easy to follow; the unindented, compressed block abruptly disrupts that flow.
Run 2
Code Structure: The exception class is logically organized, with standard constructors, but an unrelated block disrupts the final constructor. Nesting: Mostly flat, with one unnecessary nested block. Clarity of intent: The class purpose and superclass delegation are clear; the cryptic variable name, hexadecimal XOR, and double negation obscure a pointless operation. Code length: Otherwise concise, though repetitive constructor comments add little value and the extra block is unnecessary. Action granularity: Constructors generally perform one action per line, but the inserted block compresses declaration and reassignment onto a single line. Reading flow: Conventional formatting supports easy scanning until the unindented, densely packed block interrupts the flow.
Run 3
Code Structure: The exception class and constructor overloads are logically organized, but an unrelated block disrupts the final constructor. Nesting: Mostly flat, with one unnecessary nested block. Clarity of intent: Naming, inheritance, and superclass calls clearly express the exception's purpose; the cryptically named boolean, hexadecimal XOR, and double negation obscure intent and accomplish nothing useful. Code length: Generally concise, though repetitive constructor documentation and the redundant boolean block add noise. Action granularity: Most statements occupy separate lines, but the injected block compresses declaration and reassignment onto one line. Reading flow: Conventional Java formatting supports easy reading until the unindented, densely packed block interrupts it.