Sample
Dorn/java/179
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0.308 | 0–1; higher is more readable | 78.0Δ 9.5 |
| Dorn | 0.78 | 0–1; higher is more readable | 74.9Δ 6.4 |
| Mi | 0.376 | 0–1; higher is more readable | 36.8Δ 31.8 |
| LLOC | 1 | Logical lines; fewer is more readable | 97.9Δ 29.4 |
| DeepSeek V4 Pro | 6.33 | 0–20; mean of three runs | 18.1Δ 50.4 |
| GPT-6.1 Sol | 15 | 0–20; mean of three runs | 52.8Δ 15.7 |
| BTTF | 0.593 | 0–1; higher is more readable | 71.9Δ 3.3 |
| Human | 3.56 | 1–5; original rating | 68.5 |
Views
Select the downloaded ZIP or its extracted folder. Files stay in your browser.
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| 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.634 | −6.95 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 203.901 | −6.729 |
| Source linesThe number of non-empty source lines. | 10 | +4 |
Intercept 8.87 + feature contributions = -0.809 (log-odds).
Score = sigmoid(-0.809) = 0.308.
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 1 | −0.703 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 11 | +0.647 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 77 | +0.438 |
| 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.727 | +0.415 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 9.949 | −0.271 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.069 | +0.268 |
Intercept 0.07 + feature contributions = 1.263 (log-odds).
Score = sigmoid(1.263) = 0.78.
| Score | 0.376 |
|---|
| Score | 1 |
|---|
Run 1
The provided code snippet is incomplete, consisting only of import statements, a Javadoc comment, and an interface declaration with no methods or body. Because the code is truncated, it is impossible to evaluate most criteria meaningfully. However, what is visible shows no structure beyond the package declaration, no nesting, no clear intent (the interface name is ambiguous without context), and no action granularity or reading flow beyond the imports. The annotations suggest a domain-specific framework (Sapphire), which may be clear to experts but not generally. Overall, the fragment is essentially unreadable due to incompleteness and lack of substantive content.
Run 2
The code is highly readable: it has a clear import section, a concise Javadoc author tag, and a simple interface declaration with annotations. It is flat, well-structured, and each line serves a single purpose. The intent (a Sapphire model element representing a portal properties file) is evident from the naming and annotations. Minor deduction for not showing the full interface body and for having no descriptive Javadoc beyond the author tag, which only slightly limits immediate context.
Run 3
The provided code snippet is incomplete and cut off mid-declaration, making it impossible to evaluate on the given criteria such as code structure, nesting, clarity of intent, or reading flow. It appears to be only a fragment of a Java interface definition, with no visible methods, logic, or implementation details. Without the full context, the code cannot be assessed for readability or maintainability. The snippet ends abruptly after the interface declaration, so no meaningful evaluation can be provided.
Run 1
Code Structure: Imports, documentation, annotation, and interface declaration follow conventional Java organization, but the snippet is incomplete and lacks a closing brace. Nesting: Flat, with no complex nesting. Clarity of intent: The interface name and inheritance suggest a model for a portal properties file, though no members or descriptive documentation establish its behavior. Code length: Concise, but the shown imports are unused in this fragment. Action granularity: Each import and declaration occupies a separate line. Reading flow: Natural top-to-bottom progression with clear spacing; the abrupt ending prevents a complete reading.
Run 2
Code Structure: Imports, documentation, annotation, and interface declaration follow a logical order, but the snippet ends without a closing brace. Nesting: Flat and easy to scan. Clarity of intent: The interface name suggests a portal properties file model, although no members are shown and the annotation's purpose requires framework knowledge. Code length: Concise, with minor overhead from author-only documentation and imports unused in the visible snippet. Action granularity: Each import and declaration occupies its own line. Reading flow: Natural top-to-bottom progression, interrupted by the incomplete interface body.
Run 3
Code Structure: Imports, documentation, annotation, and interface declaration follow a conventional order, but the snippet ends without a closing brace. Nesting: Minimal nesting makes it easy to scan. Clarity of intent: IPortalPropertiesFile and IModelElement suggest a portal-properties model interface, although no members reveal its behavior. Code length: Very concise, with no unnecessary implementation detail; the author-only comment adds little explanatory value. Action granularity: Each import and declaration occupies its own line. Reading flow: Natural top-to-bottom flow and consistent spacing aid readability, but the incomplete interface body interrupts comprehension.