Sample
int-73ab910f3f23-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.46 | 0–1; higher is more readable |
| Dorn | 0.15 | 0–1; higher is more readable |
| Mi | 0.294 | 0–1; higher is more readable |
| LLOC | 13 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 12.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.33 | 0–20; mean of three runs |
| BTTF | 0.179 | 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. | 1270.72 | −41.934 |
| Source linesThe number of non-empty source lines. | 32 | +12.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.893 | −7.34 |
Intercept 8.87 + feature contributions = -27.604 (log-odds).
Score = sigmoid(-27.604) = 0.
| Score | 0.46 |
|---|
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. | 107 | −0.867 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 31 | +0.335 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 31 | −0.291 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 33 | −0.132 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.106 | −0.085 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 31.833 | +0.035 |
Intercept 0.07 + feature contributions = -1.738 (log-odds).
Score = sigmoid(-1.738) = 0.15.
| Score | 0.294 |
|---|
| Score | 13 |
|---|
Run 1
The code is generally readable with clear intent and logical structure. It follows a flat control flow with minimal nesting and one primary action per line. The validation logic is straightforward: type-check, blank-check, then parse validation. However, the toString() method contains an obfuscated, meaningless block of code that serves no purpose, significantly harming readability. Removing that would improve clarity. Overall, the class is concise and well-structured despite this anomaly.
Run 2
The code is generally readable but is undermined by an obfuscated artifact in the toString() method. The intended purpose of the validator is clear, and the validation logic follows a straightforward flow with low nesting and good action granularity. However, the bizarre obfuscated block (a meaningless arithmetic statement with a cryptic variable name) introduces confusion and ambiguity, severely impacting readability. The method structure is logical, but the toString() listing disrupts the natural reading flow and appears to be either a decompilation artifact or deliberate obfuscation. The overall intent is understandable, but the unexplained noise lowers the score significantly.
Run 3
The code is generally readable due to its simple, flat structure and clear validation logic. It follows a natural flow: check type, check blank, validate endpoint. The one-line-per-action pattern (instanceof check, blank check, try/catch) is good. Improvements could include simplifying the exception handling and removing the obfuscated dead code. Overall, the code is understandable but has a notable cleanup issue.
Run 1
Code Structure: Validation is logically organized, but an unrelated obfuscated block disrupts toString(). Nesting: Early returns keep validation shallow; the added block contains needlessly nested ternary expressions. Clarity of intent: Type checking, blank handling, and endpoint validation are clear, while the cryptic variable and bitwise expressions have no apparent purpose. Code length: Mostly concise, except for the unnecessary computation. Action granularity: Validation uses one action per line, but the obfuscated block compresses declaration and assignment onto one line. Reading flow: The main method reads naturally; inconsistent formatting and irrelevant logic interrupt the otherwise straightforward flow.
Run 2
Code Structure: The validator is logically organized into validation and description methods, but an unrelated block in toString disrupts that organization. Nesting: Validation remains shallow through guard clauses; the added block contains nested ternaries that complicate reading. Clarity of intent: Type checking, blank handling, and endpoint validation are clear, while the cryptic variable and hexadecimal arithmetic have no apparent purpose. Code length: Most code is concise, but the unused computation adds unnecessary length. Action granularity: Validation generally uses one action per line; the inserted line combines declaration, assignment, and several expressions. Reading flow: The validation sequence reads naturally, but the densely packed, poorly formatted block interrupts an otherwise straightforward description method.
Run 3
Code Structure: The validator is logically organized into validation and description methods, but an unrelated block disrupts toString(). Nesting: Validation stays shallow through guard clauses; the extraneous block adds nested ternary expressions. Clarity of intent: Type checking, blank handling, and endpoint validation are clear, whereas the cryptically named variable and redundant bitwise operations obscure intent. Code length: Most code is concise, but the pointless computation adds unnecessary complexity. Action granularity: Validation generally uses one action per line; the inserted block compresses declaration, assignment, and conditional logic onto one line. Reading flow: ensureValid() reads naturally, but the unindented, densely packed block abruptly interrupts the otherwise straightforward flow.