Sample

Dorn/python/15

Human rating uses the original dataset scale.

DatasetDorn
Human4.16
Lines31

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.010–1; higher is more readable
67.7Δ 29.2
Dorn0.8790–1; higher is more readable
92.2Δ 4.7
Mi0.8010–1; higher is more readable
97.8Δ 0.8
LLOC4Logical lines; fewer is more readable
82.7Δ 14.2
DeepSeek V4 Pro18.670–20; mean of three runs
99.9Δ 2.9
GPT-6.1 Sol190–20; mean of three runs
98.9Δ 1.9
BTTF0.7490–1; higher is more readable
95.0Δ 1.9
Human4.161–5; original rating
96.9

Views

Download official ZIP ↗

Select the downloaded ZIP or its extracted folder. Files stay in your browser.

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(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.578.136−19.078
Source linesThe number of non-empty source lines.31+12.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.4.559−6.838

Intercept 8.87 + feature contributions = -4.646 (log-odds).
Score = sigmoid(-4.646) = 0.01.

Feature contributions

FeatureValueContribution
(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.69+0.743
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.1+0.398
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.062+0.34
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.66.906+0.275
Indentation frequencyHow rapidly indentation changes from line to line.28+0.231
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.32−0.097
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.30.943+0.023

Intercept 0.07 + feature contributions = 1.983 (log-odds).
Score = sigmoid(1.983) = 0.879.

Score0.801
Score4
Run 1

The code is highly readable. It has a clear single purpose: mapping German labels for Docutils. The structure is a flat dictionary with one entry per line, making it easy to scan. There is no deep nesting, and the intent is explicit from the module docstring and the trailing comment. The code length is concise but not compressed, and the action granularity is ideal—each line contains exactly one key-value pair. The reading flow is natural: module docstring, format declaration, dictionary, and explanatory comment. Minor deductions: the closing brace '}' is on the same line as the last entry, slightly disrupting uniformity, and the inline comment could be placed above the dictionary for better flow. Overall, this is an exemplary clean configuration module.

Run 2

The code is highly readable. It has a clear structure: a module docstring, a format declaration, a single well-named dictionary, and a descriptive docstring. Nesting is non-existent, and the intent is unambiguous — providing German label mappings. The length is concise, with one entry per line, and the reading flow is natural from header to data. The only minor issue is a slight format inconsistency ('copyright': 'Copyright' vs. other capitalized terms), which does not significantly impact readability.

Run 3

This code is a simple, flat dictionary mapping German translations, making it highly readable. The structure is logical and self-contained, with a clear module docstring and a descriptive comment explaining the dictionary's purpose. Nesting is non-existent, and intent is immediately obvious: providing localized labels. Code length is minimal and appropriate for its task. Each dictionary entry is on its own line, maintaining one action per line. Reading flow is natural, from module docstring to the mapping itself.

Run 1

Code Structure: A module description, metadata, and a single mapping provide clear logical organization. Nesting: The dictionary is flat, with no nested control flow. Clarity of intent: The module docstring, descriptive variable name, and trailing documentation clearly explain the German label mappings. Code length: The code is concise; each entry is necessary data rather than redundant logic. Action granularity: Each mapping occupies its own line, making entries easy to scan. Reading flow: Consistent formatting supports a natural top-to-bottom reading order. A minor formatting improvement would place the closing brace on its own line; the trailing documentation string is also slightly less conventional than a preceding comment.

Run 2

Code Structure: A straightforward module containing a format declaration and a single, clearly organized mapping. Nesting: Only one dictionary level, with no nested control flow. Clarity of intent: The module docstring, descriptive keys, and mapping documentation make the German localization purpose explicit. Code length: Concise, with each entry necessary to represent the translations. Action granularity: Each key-value pair occupies its own line, enabling easy scanning and editing. Reading flow: The introduction naturally leads into configuration and translation data. Minor readability improvements would be placing the closing brace on its own line and positioning the mapping description immediately before the dictionary.

Run 3

Code Structure: A straightforward module containing documentation, a format declaration, and a single mapping. Nesting: Only one dictionary level, with no nested control flow. Clarity of intent: The module docstring, descriptive keys, and mapping documentation clearly identify the German label translations. Code length: Concise, with no unnecessary logic or repetition beyond the required entries. Action granularity: Each mapping entry occupies its own line, making individual translations easy to scan. Reading flow: Consistent indentation and formatting support natural top-to-bottom reading. Placing the closing brace on its own line and the mapping explanation before the assignment would slightly improve presentation.