Sample
Buse/37
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0 | 0–1; higher is more readable | 3.0Δ 11.1 |
| Dorn | 0.171 | 0–1; higher is more readable | 8.1Δ 6.1 |
| Mi | 0.238 | 0–1; higher is more readable | 12.1Δ 2.0 |
| LLOC | 6 | Logical lines; fewer is more readable | 11.6Δ 2.5 |
| DeepSeek V4 Pro | 13 | 0–20; mean of three runs | 38.4Δ 24.2 |
| GPT-6.1 Sol | 17.33 | 0–20; mean of three runs | 71.7Δ 57.6 |
| BTTF | 0.404 | 0–1; higher is more readable | 21.2Δ 7.1 |
| Human | 2.58 | 1–5; original rating | 14.1 |
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. | 432.36 | −14.268 |
| 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.896 | −7.344 |
| Source linesThe number of non-empty source lines. | 9 | +3.6 |
Intercept 8.87 + feature contributions = -9.142 (log-odds).
Score = sigmoid(-9.142) = 0.
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| 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. | 1 | −0.703 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 10 | +0.682 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.148 | −0.492 |
| 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. | 97 | −0.443 |
| 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. | 8.786 | −0.287 |
Intercept 0.07 + feature contributions = -1.579 (log-odds).
Score = sigmoid(-1.579) = 0.171.
| Score | 0.238 |
|---|
| Score | 6 |
|---|
Run 1
The code is generally readable with a clear purpose: populate a list of ProgramReceiveTarget objects from configurations and provide a fallback. The structure is logical and concise. However, the first for-loop lacks braces and indentation, which slightly hurts readability and could lead to errors if extended. The nesting is minimal and flat. Intent is clear despite the lack of comments. Action granularity is reasonable, one operation per line within the loop. The reading flow is natural, with a straightforward guard condition and return.
Run 2
The code is simple but lacks structure and clarity. The first for loop without braces is risky and reduces readability, especially when containing a multi-condition if statement and a compound action. Nesting is minimal but the intent is not immediately clear due to compact formatting. Variable names like 'mConfigs' and 'list' are vague, and the purpose of filtering valid configs into targets is only partially clear. The action granularity in the loop is acceptable but the one-line if block obscures the two distinct constructor arguments. The reading flow is natural for small snippets, but the lack of whitespace and consistent bracing makes it harder to scan. The fallback to DEFAULT_CONFIG is understandable, but the overall code could benefit from better naming, braces, and line breaks.
Run 3
The code is fairly readable with a clear intent: build a list of valid configs, fallback to a default if empty, then return an array. The structure is logical and action granularity is mostly one action per line. However, there are minor issues: the for-loop without braces slightly hurts clarity and can be error-prone during maintenance. The `DEFAULT_CONFIG` null-safety isn’t handled, though not strictly a readability issue. The nesting is flat and good. Overall, it’s concise but could be improved with braces and a helper variable for readability.
Run 1
Code Structure: Logically organized into collecting valid configurations, adding a fallback, and returning an array. Nesting: Shallow, though omitted braces make the loop and conditional boundaries less explicit. Clarity of intent: Filtering valid configurations and ensuring a default target are clear; the generic name 'list' provides limited context. Code length: Concise without unnecessary statements. Action granularity: Each statement performs one main action, although target construction includes several arguments and method calls. Reading flow: Natural top-to-bottom progression, with blank lines separating the main stages. Consistent braces and a more descriptive list name would improve readability.
Run 2
Code Structure: Logically organized into collecting valid configurations, providing a fallback, and returning an array. Nesting: Shallow, with only an if inside a loop; omitted braces slightly weaken visual boundaries. Clarity of intent: Filtering and fallback behavior are clear, though list and mConfigs are generic names and AbstractPluginProgramFormating is cumbersome. Code length: Concise without unnecessary statements. Action granularity: Each line performs one primary action, although target construction includes several arguments and method calls. Reading flow: Natural top-to-bottom progression, with blank lines separating the main steps. Consistent spacing and explicit braces would improve readability.
Run 3
Code Structure: Logically organized into collecting valid configurations, adding a fallback, and returning an array. Nesting: Shallow, with only an if inside the loop; omitted braces slightly weaken visual boundaries. Clarity of intent: Filtering and fallback behavior are clear, though names such as list and mConfigs provide limited context. Code length: Concise without unnecessary statements. Action granularity: Each statement performs one primary action; constructor arguments remain easy to follow. Reading flow: Natural top-to-bottom progression, with blank lines separating the three stages. Consistent indentation helps readability, while braces and slightly more descriptive collection names would improve it.