Sample
JetBrains/b42
Human rating uses the original dataset scale.
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| Posnett | 0 | 0–1; higher is more readable | 50.0Δ 19.5 |
| Scalabrino | 0.44 | 0–1; higher is more readable | 28.0Δ 2.5 |
| Dorn | 0.511 | 0–1; higher is more readable | 48.3Δ 17.8 |
| Mi | 0.364 | 0–1; higher is more readable | 32.2Δ 1.7 |
| LLOC | 11 | Logical lines; fewer is more readable | 63.6Δ 33.1 |
| DeepSeek V4 Pro | 16.67 | 0–20; mean of three runs | 62.3Δ 31.8 |
| GPT-6.1 Sol | 16.33 | 0–20; mean of three runs | 34.3Δ 3.8 |
| BTTF | 0.327 | 0–1; higher is more readable | 16.1Δ 14.4 |
| Human | 0.62 | 0–1; original rating | 30.5 |
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. | 655.132 | −21.619 |
| Source linesThe number of non-empty source lines. | 16 | +6.4 |
| Byte entropyHow varied the bytes in the source text are. Repeated bytes give a lower value; a more even mixture gives a higher value. | 3.779 | −5.669 |
Intercept 8.87 + feature contributions = -12.018 (log-odds).
Score = sigmoid(-12.018) = 0.
| Score | 0.44 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 1 | +1.001 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| 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. | 75 | +0.489 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.136 | −0.378 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 14.816 | −0.203 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 16 | −0.184 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 16 | +0.054 |
Intercept 0.07 + feature contributions = 0.044 (log-odds).
Score = sigmoid(0.044) = 0.511.
| Score | 0.364 |
|---|
| Score | 11 |
|---|
Run 1
The code is well-structured with clear intent: printing a hex-to-ASCII table. It uses two loops, keeping nesting at a reasonable level, and each line performs a single action, giving good action granularity. The flow is natural: outer loop for rows, inner loop for columns, then a newline. The length is concise and appropriate for the task. Minor readability improvements could include defining magic numbers (16, 8, 127) as named constants, and adding a brief comment explaining the mapping logic, especially the handling of DEL for values above 127. These small enhancements would make the purpose even clearer, but overall the code is highly readable.
Run 2
The code is well-structured with a clear, logical flow. It uses a simple nested loop to generate a hex-ASCII table, which is easy to follow. Nesting is shallow (two levels), and each line generally performs a single action, enhancing readability. The intent is evident: print a formatted table of characters grouped by high nibble. The length is concise without sacrificing clarity. Minor improvements could include a named constant for 16 or a comment explaining the 'DEL' mapping for control characters, but overall the code is highly readable.
Run 3
The code is well-structured with a clear main method and two nested loops. Nesting is only two levels deep, which is acceptable. The intent is straightforward: generate a hex-to-ASCII table. Variable names are concise and meaningful (i, j, c). Action granularity is good, with one main operation per line inside loops. Reading flow is logical, moving from row generation to column entries. Minor deductions: the magic numbers 16, 8, and 127 lack named constants, and the DEL handling is slightly awkward inside the loop, but overall readability is high.
Run 1
Code Structure: A single main method organizes table generation logically with row and column loops. Nesting: Two loops and an if/else introduce moderate, manageable nesting. Clarity of intent: The class name and hexadecimal formatting indicate an ASCII table, but terse variable names and unexplained constants reduce clarity. The c > 127 condition is unreachable because c ranges from 0 to 127, making the DEL handling misleading; control characters also obscure the intended output. Code length: Compact without unnecessary verbosity. Action granularity: Statements generally perform one action per line, with straightforward inline calculations and formatting. Reading flow: Execution proceeds naturally from row labels to character output to line breaks, supported by consistent indentation.
Run 2
Code Structure: A single method logically organizes table generation into rows and columns. Nesting: Two loops and an if/else create moderate, manageable nesting. Clarity of intent: The class name and hexadecimal row labels suggest an ASCII table, but terse variables and unexplained constants reduce clarity. The c > 127 condition is unreachable because c ranges from 0 to 127, making the intended DEL handling confusing. Code length: Compact without unnecessary scaffolding. Action granularity: Each statement performs one main action, although formatting expressions combine conversion and concatenation. Reading flow: Consistent indentation and sequential row generation make the code easy to follow.
Run 3
Code Structure: Logically organized as a row loop containing a character loop. Nesting: Moderate nesting from two loops and an if/else, but easy to follow. Clarity of intent: The class name and hexadecimal row labels suggest an ASCII table, although terse variables and unexplained constants reduce clarity. The c > 127 condition is unreachable because c ranges from 0 to 127, making the DEL handling misleading; control characters are also printed directly. Code length: Compact without unnecessary repetition. Action granularity: Each statement performs one main action, with straightforward inline calculations and formatting. Reading flow: Consistent indentation and sequential output provide a natural flow, though clearer names and explicit handling of nonprintable characters would improve readability.