Sample
Dorn/java/132
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0.256 | 0–1; higher is more readable | 76.9Δ 0.0 |
| Scalabrino | 0.796 | 0–1; higher is more readable | 86.4Δ 9.6 |
| Dorn | 0.737 | 0–1; higher is more readable | 69.9Δ 7.0 |
| Mi | 0.696 | 0–1; higher is more readable | 83.3Δ 6.4 |
| LLOC | 5 | Logical lines; fewer is more readable | 78.0Δ 1.1 |
| DeepSeek V4 Pro | 2.67 | 0–20; mean of three runs | 2.1Δ 74.8 |
| GPT-6.1 Sol | 9 | 0–20; mean of three runs | 6.4Δ 70.5 |
| BTTF | 0.651 | 0–1; higher is more readable | 86.4Δ 9.5 |
| Human | 3.71 | 1–5; original rating | 76.9 |
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.693 | −7.039 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 208.974 | −6.896 |
| Source linesThe number of non-empty source lines. | 10 | +4 |
Intercept 8.87 + feature contributions = -1.065 (log-odds).
Score = sigmoid(-1.065) = 0.256.
| Score | 0.796 |
|---|
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. | 49 | +1.59 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 9 | +0.718 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 9 | −0.426 |
| 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.72 | −0.274 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.122 | −0.239 |
Intercept 0.07 + feature contributions = 1.032 (log-odds).
Score = sigmoid(1.032) = 0.737.
| Score | 0.696 |
|---|
| Score | 5 |
|---|
Run 1
The code is a fragmented snippet with no surrounding context, making it impossible to understand the class structure or logical flow. It shows multiple issues: an apparently orphaned method call, unclear purpose for static methods, an Observable update method whose relation to the rest is unclear, and inconsistent indentation. There is no visible method declaration for the first line, so action granularity and nesting cannot be assessed meaningfully. The clarity of intent is very low because variable names like _instance, _connecting, and obj are generic, and the methods send and update seem disconnected. The reading flow is broken due to missing braces or method boundaries. Overall, this fragment cannot stand alone as readable code.
Run 2
The code snippet is incomplete and lacks context, making it impossible to evaluate on the given criteria. It starts mid-method, contains disconnected statements, and ends abruptly. The indentation is inconsistent, and the purpose of methods like `_disconnect()`, `_send()`, and `update()` is unclear due to missing surrounding code. There is no logical structure or clarity of intent visible, and the fragment is too short and disorganized to assess nesting, length, granularity, or reading flow.
Run 3
The code snippet is difficult to evaluate fully because it is incomplete and lacks context. It appears to be fragments of a networking or connection class with poor formatting (stray leading tabs, unmatched braces). The structure is tangled with no surrounding class or method definitions, and nesting is unclear. Intent is ambiguous: `update(Observable, Object)` seems to be an observer callback, but it only sets a flag, which makes its purpose unclear. Code length is minimal but incomplete, and action granularity is acceptable (one action per line). Reading flow is broken due to indentation and missing context, making it hard to follow. Overall, the snippet is not readable on its own, and would require surrounding code and consistent formatting to score higher.
Run 1
Code Structure: The send method is logically organized, but the fragment begins with unmatched closing braces and ends inside an unfinished update method. Nesting: Visible methods are shallow, although the initial nesting cannot be assessed. Clarity of intent: send clearly delegates message delivery; update resets a connection flag, but its broader purpose is unclear. Code length: The snippet is concise with no obvious redundancy. Action granularity: Each executable line performs one action. Reading flow: Blank lines separate methods naturally, but missing surrounding code and inconsistent visible indentation interrupt comprehension.
Run 2
Code Structure: The fragment shows distinct methods, but missing surrounding code and unmatched closing braces obscure its organization. Nesting: Visible method bodies are shallow, though the opening indentation suggests omitted nested context. Clarity of intent: send clearly delegates message delivery, while update's purpose and the preceding disconnect call lack context. Code length: Concise, with no visible unnecessary statements. Action granularity: Each statement performs one action. Reading flow: Blank lines separate methods naturally, but the fragment starts and ends mid-block, substantially interrupting comprehension.
Run 3
Code Structure: The send method is clearly separated, but the fragment begins with unmatched closing braces and ends in an incomplete update method. Nesting: Visible method bodies are shallow, though preceding nesting is unclear. Clarity of intent: send clearly delegates message sending; disconnect and the connecting flag suggest connection management, but surrounding context is missing. Code length: Concise, with no visible redundancy. Action granularity: Each statement performs one action on its own line. Reading flow: Blank lines separate methods naturally, but the abrupt beginning and truncated ending disrupt comprehension.