Sample
int-3bb0a741c5f2-I08
Select one of ten high-readability unrelated code templates per class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.619 | 0–1; higher is more readable |
| Dorn | 0.299 | 0–1; higher is more readable |
| Mi | 0.034 | 0–1; higher is more readable |
| LLOC | 57 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 11.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13 | 0–20; mean of three runs |
| BTTF | 0.297 | 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. | 3570.553 | −117.828 |
| Source linesThe number of non-empty source lines. | 109 | +43.6 |
| 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.677 | −7.016 |
Intercept 8.87 + feature contributions = -72.374 (log-odds).
Score = sigmoid(-72.374) = 0.
| Score | 0.619 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 107 | +2.964 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 110 | −2.858 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 107 | −2.034 |
| 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. | 115.982 | −1.247 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 108.889 | +1.112 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 116 | +1.067 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.089 | +0.075 |
Intercept 0.07 + feature contributions = -0.852 (log-odds).
Score = sigmoid(-0.852) = 0.299.
| Score | 0.034 |
|---|
| Score | 57 |
|---|
Run 1
The code is generally readable but has a critical structural flaw: a random, unrelated code block (comparing two scores) is inserted inside the bndAddrType() method body, completely breaking logical organization and intent. This appears to be an accidental paste or corruption. Ignoring that block, the constructor has nested validation logic (three levels deep) that could be flattened or extracted into helper methods for better clarity. The code length is moderate, but the constructor mixes validation, normalization, and assignment into one long method. Action granularity is mostly one action per line, and the toString() method is reasonably clean. However, the presence of the unrelated code block and the deeply nested address validation significantly reduce readability. A score of 8 reflects the code being understandable despite the structural anomaly, but not clean or well-organized.
Run 2
The code is generally structured and readable, with clear naming, proper constants, and a logical constructor flow. However, it contains a strange, unrelated nested block (comparing integers) that appears to be leftover debug or accidental code, which disrupts the reading flow and clarity of intent. The constructor uses nested if-else for address validation, which is acceptable but could be flattened with helper methods. The toString method is clean and linear. Action granularity is mostly one action per line, though the misplaced block violates this. Overall, the code is maintainable but the stray block and some nesting reduce its score.
Run 3
The code is generally well-structured with clear field declarations, a sensible constructor flow, and straightforward getter methods. However, readability is significantly undermined by two major issues. First, there is an extraneous block of unrelated code (a score comparison snippet) inserted inside the bndAddrType() method, which is confusing and looks accidental. Second, the address validation logic in the constructor is a multi-level nested if-else chain that could be flattened for better flow. The toString() method is reasonably clear but somewhat verbose without a helper. Naming is clear and the code follows a consistent style, but these defects disrupt the natural reading flow and clarity of intent.
Run 1
Code Structure: Fields, constructors, accessors, and formatting are logically organized, but an unrelated score-comparison block inside bndAddrType() breaks cohesion. Nesting: Address validation reaches three conditional levels; the extraneous accessor block adds avoidable nesting. Clarity of intent: Validation, immutable fields, and descriptive exceptions convey purpose clearly, while abbreviated names and the unused higherScore calculation reduce clarity. Code length: Most code is reasonably concise, although the irrelevant block and repetitive string-building statements add bulk. Action granularity: Statements generally perform one action per line, making operations easy to follow. Reading flow: Conventional method ordering supports natural reading, but the poorly indented comparison block abruptly interrupts an otherwise straightforward getter.
Run 2
Code Structure: Fields, constructors, accessors, and formatting are logically organized, but an unrelated score-comparison block disrupts bndAddrType(). Nesting: Address validation reaches three conditional levels; the unnecessary block in the accessor adds further visual nesting. Clarity of intent: Validation and response representation are clear, supported by descriptive exception messages, but the unused higherScore calculation has no apparent purpose. Code length: Most methods are concise; the irrelevant calculation and repetitive string-building statements add avoidable length. Action granularity: Statements generally perform one action per line, making individual operations easy to follow. Reading flow: Constructor delegation and consistent accessor patterns provide a natural progression, but inconsistent indentation and unrelated logic in an otherwise trivial getter interrupt that flow.
Run 3
Code Structure: Fields, constructors, accessors, and string formatting are logically organized, but an unrelated score-comparison block disrupts the bndAddrType accessor. Nesting: Address validation reaches three conditional levels; the extraneous accessor block adds unnecessary nesting. Clarity of intent: Most methods and validation messages clearly communicate their purpose, but abbreviated field names and unused higherScore computation reduce clarity. Code length: Generally reasonable for a response model, though the irrelevant computation and repetitive string-building statements add bulk. Action granularity: Statements generally perform one action per line, making validation and assignments easy to follow. Reading flow: Consistent ordering and straightforward accessors support natural reading, but the poorly indented, unrelated block sharply interrupts that flow.