Sample
int-22786764bd6b-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.793 | 0–1; higher is more readable |
| Dorn | 0.674 | 0–1; higher is more readable |
| Mi | 0.674 | 0–1; higher is more readable |
| LLOC | 13 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 16.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.67 | 0–20; mean of three runs |
| BTTF | 0.137 | 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. | 1058.876 | −34.943 |
| Source linesThe number of non-empty source lines. | 42 | +16.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. | 5.169 | −7.753 |
Intercept 8.87 + feature contributions = -17.026 (log-odds).
Score = sigmoid(-17.026) = 0.
| Score | 0.793 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 37 | +0.543 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 43 | −0.486 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 76.907 | +0.436 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 37 | −0.428 |
| 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.977 | +0.405 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 41.808 | +0.175 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.096 | +0.013 |
Intercept 0.07 + feature contributions = 0.727 (log-odds).
Score = sigmoid(0.727) = 0.674.
| Score | 0.674 |
|---|
| Score | 13 |
|---|
Run 1
The code is generally well-structured and readable, with a clear class purpose, proper inheritance, and concise methods. Each method performs a single action per line, and the reading flow is natural. However, the suspicious line `{boolean lI0O_f939a43b=((0xF6C6^0xF6C6)!=0);lI0O_f939a43b=!(!lI0O_f939a43b);}` is clearly obfuscated or injected code, severely violating clarity of intent and action granularity. It introduces unnecessary complexity and is unrelated to the method's purpose. Without this line, the code would score around 19. The import statements and field declarations follow standard conventions, making the overall structure clear.
Run 2
The code is generally well-structured with clear class hierarchy, minimal nesting, and appropriate action granularity. It follows Spring Framework conventions with clean separation of methods and clear intent. However, it contains an obfuscated boolean expression `{boolean lI0O_f939a43b=((0xF6C6^0xF6C6)!=0);lI0O_f939a43b=!(!lI0O_f939a43b);}` in generateCode() that serves no purpose and significantly reduces readability. This anomaly appears to be injected noise or leftover debugging code. Otherwise, the file is concise (32 lines), has flat structure without deep nesting, uses descriptive method names, and maintains a natural reading flow from imports through class definition to method implementations. The isCompilable() method returning a hardcoded true is acceptable for this literal type. Overall, the code is highly readable except for the problematic obfuscated line.
Run 3
The code is generally well-structured and readable. It follows standard Java conventions with clear package and import organization, a meaningful class name, and appropriate JavaDoc documentation. The class has a single responsibility (representing a long literal in an expression language AST), and methods are concise with clear intent. The generateCode method contains a suspicious obfuscated line with meaningless boolean variable and hex operations, which significantly hurts clarity and intent. Without this line, nesting is flat, actions are granular, and reading flow is natural. The code is reasonably concise overall. The problematic line appears to be injected or leftover debug code that should be removed, as it serves no purpose and creates confusion. Otherwise, the implementation would score higher.
Run 1
Code Structure: The class is logically organized into a field, constructor, and focused overridden methods, but an unrelated obfuscated block disrupts generateCode. Nesting: Mostly flat, with only one unnecessary inner block. Clarity of intent: Documentation, method names, and conventional initialization clearly identify a long-literal AST node; the cryptic variable and redundant boolean operations obscure intent locally. Code length: Otherwise concise, but the no-effect block adds unnecessary code. Action granularity: Most statements occupy separate lines, while the inserted block compresses declaration, computation, and reassignment onto one line. Reading flow: The class reads naturally until the poorly indented obfuscated block interrupts the straightforward bytecode-generation sequence.
Run 2
Code Structure: The class is logically organized into a field, constructor, and focused overrides, but an unrelated block disrupts generateCode. Nesting: Mostly flat, with one unnecessary nested block. Clarity of intent: Documentation and method names clearly identify a long-literal AST node; the cryptic boolean variable, hexadecimal XOR, and double negation obscure intent and serve no apparent purpose. Code length: Generally concise, except for the redundant boolean manipulation and excessive blank lines. Action granularity: Most statements occupy separate lines, but the injected block compresses declaration and reassignment onto one line. Reading flow: Conventional Java organization supports easy reading until the poorly formatted, obfuscated block interrupts the otherwise straightforward bytecode-generation sequence.
Run 3
Code Structure: The class is logically organized into a field, constructor, and focused overrides, but generateCode contains an unrelated obfuscated block. Nesting: Mostly flat, with only one unnecessary inner block. Clarity of intent: Documentation and method names clearly identify a long-literal AST node; the cryptic variable, hexadecimal XOR, and double negation obscure the purpose of the injected statement. Code length: Generally concise, although the unused boolean calculation adds needless code. Action granularity: Most statements occupy separate lines, but the injected block compresses declaration and reassignment onto one line. Reading flow: The normal methods read naturally, while the unindented obfuscated block abruptly interrupts formatting and comprehension.