Sample
Scalabrio167
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0 | 0–1; higher is more readable | 8.0Δ 0.3 |
| Scalabrino | 0.035 | 0–1; higher is more readable | 1.0Δ 6.8 |
| Dorn | 0.027 | 0–1; higher is more readable | 5.5Δ 2.3 |
| Mi | 0.032 | 0–1; higher is more readable | 15.6Δ 7.8 |
| LLOC | 17 | Logical lines; fewer is more readable | 35.7Δ 27.9 |
| DeepSeek V4 Pro | 14 | 0–20; mean of three runs | 49.2Δ 41.5 |
| GPT-6.1 Sol | 16 | 0–20; mean of three runs | 34.7Δ 26.9 |
| BTTF | 0.22 | 0–1; higher is more readable | 3.0Δ 4.8 |
| Human | 2.78 | 1–5; original rating | 7.8 |
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) |
|---|---|---|
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 1719.914 | −56.757 |
| Source linesThe number of non-empty source lines. | 30 | +12 |
| 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.865 | −7.297 |
Intercept 8.87 + feature contributions = -43.184 (log-odds).
Score = sigmoid(-43.184) = 0.
| Score | 0.035 |
|---|
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. | 141.967 | −2.348 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.145 | −0.469 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 29 | +0.266 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 29 | −0.245 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 30 | −0.026 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 28.58 | −0.01 |
Intercept 0.07 + feature contributions = -3.566 (log-odds).
Score = sigmoid(-3.566) = 0.027.
| Score | 0.032 |
|---|
| Score | 17 |
|---|
Run 1
The code is moderately readable but has mixed quality. Structure is logical and linear, following a test setup-action-assert flow. However, nesting is minimal and action granularity is mostly one action per line, which is good. Clarity of intent suffers from verbose and inconsistent formatting: long chained query building, multiple actions packed into single lines, and unclear magic numbers (15, 16, 17) for revisions. Reading flow is natural but interrupted by unnecessary spaces inside method parentheses and long lines. Code length is reasonable but some lines are overly dense. Overall, it is understandable but would benefit from consistent formatting, extracted variables for revision numbers, and breaking up the query builder into clearer steps.
Run 2
The test method is somewhat readable but has several issues. The structure is logical and follows a sequential test flow, but the action granularity is inconsistent - some lines perform multiple actions (e.g., creating and putting entities in map). The nesting is flat, which is good. However, the method is quite long and mixes setup, assertions, and query logic without clear separation. Variable naming like 'objArray' is vague, and magic numbers (15, 16, 17) reduce clarity of intent. The reading flow is natural but disrupted by long lines and inconsistent formatting/spacing. Overall, it's functional but could be improved with better naming, line breaks, and separation of concerns.
Run 3
The code is moderately readable but has several issues. Structure is logical, progressing through test setup, assertions, and query verification. Action granularity is mostly one action per line, improving clarity. However, nesting is minimal, and reading flow is reasonable. The main problems are: long, dense lines with inline object construction ('new IntTestPrivSeqEntity(...)') that obscure intent; inconsistent spacing around parentheses; and a somewhat ambiguous final assertion block. The test name 'testTernaryMap' is vague. The code could be improved by extracting helper variables for the constructed entities, using consistent formatting, and clarifying the purpose of the revision query assertions. Overall, the test is understandable but not immediately self-explanatory.
Run 1
Code Structure: Logically groups map setup, revision checks, and deletion-query verification, though explicit section labels would help. Nesting: Flat control flow makes the test easy to scan. Clarity of intent: Assertions clearly compare audited maps, but the generic test name, unexplained revision numbers, raw List, and positional Object[] access obscure some meaning. Code length: Reasonably concise, with minor repetition in rebuilding the expected map. Action granularity: Most statements perform one action, although the long put call combines insertion with construction of two entities. Reading flow: Sequential setup, retrieval, and assertions provide a natural progression; entity reuse and the shift to deletion-query results require some additional attention.
Run 2
Code Structure: Logically organized into setup, checks for two revisions, and a deletion-revision query, with blank lines separating phases. Nesting: Flat execution with no nested control flow. Clarity of intent: Assertions and audit calls make the test purpose apparent, but hard-coded revision numbers, generic names such as entity and objArray, and positional array access obscure details. Code length: Reasonably concise, although repeated map setup adds some duplication. Action granularity: Most statements perform one action; one long map insertion combines object construction and insertion, increasing reading effort. Reading flow: Generally natural and sequential, but reassignment of entity, raw List usage, casts, and the lengthy insertion interrupt an otherwise straightforward flow.
Run 3
Code Structure: The test is logically organized into map setup, checks at two revisions, and a deletion-revision query, with blank lines separating stages. Nesting: The method is flat, with no nested control flow. Clarity of intent: Entity names and assertions communicate the purpose, but unexplained revision numbers, positional array access, and generic names such as entity and objArray obscure details. Code length: It is reasonably concise, though repeated map setup could be clearer with a small helper if reused elsewhere. Action granularity: Most statements perform one action; one long put statement embeds two constructors and is harder to scan. Reading flow: Execution follows a natural sequence, and the query chain is formatted clearly, but reassigning entity and using a raw List with casts slightly disrupt readability.