Sample

Dorn/python/118

Human rating uses the original dataset scale.

DatasetDorn
Human3.35
Lines10

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.4360–1; higher is more readable
79.9Δ 28.6
Scalabrino0.6660–1; higher is more readable
71.3Δ 19.9
Dorn0.7330–1; higher is more readable
69.1Δ 17.7
Mi0.6390–1; higher is more readable
69.9Δ 18.5
LLOC3Logical lines; fewer is more readable
88.6Δ 37.2
DeepSeek V4 Pro170–20; mean of three runs
93.5Δ 42.1
GPT-6.1 Sol17.670–20; mean of three runs
88.9Δ 37.5
BTTF0.5080–1; higher is more readable
47.4Δ 4.0
Human3.351–5; original rating
51.4

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)
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.584−6.876
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.189.461−6.252
Source linesThe number of non-empty source lines.10+4

Intercept 8.87 + feature contributions = -0.258 (log-odds).
Score = sigmoid(-0.258) = 0.436.

Score0.666

Feature contributions

FeatureValueContribution
(log-odds)
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.022+0.727
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.11+0.647
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.13.273−0.59
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
Indentation frequencyHow rapidly indentation changes from line to line.8−0.46
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.961−0.271

Intercept 0.07 + feature contributions = 1.009 (log-odds).
Score = sigmoid(1.009) = 0.733.

Score0.639
Score3
Run 1

The code is generally readable but has some issues. Structure is logical: module docstring-style comments, __all__ declaration, imports. Clarity of intent is good—the comments explain the converters and external dependency. Nesting is nonexistent (flat). Length is concise. However, the trailing comma and odd indentation in the __all__ tuple suggests formatting artifacts. The comment about 'kinterbasdb-native fixed point converters' references an obsolete style, and the code only defines names—no actual functions—so intent is partially ambiguous. Action granularity is one per line, but the tuple formatting breaks natural reading flow. Minor inconsistency: no space between comment and import. Overall readable but with minor cleanliness issues.

Run 2

The code is highly readable. It has a clear logical structure: module exports are declared first, then imports. The __all__ list is well-organized with a comment explaining the converters' purpose. Nesting is nonexistent, and each line expresses a single action. Intent is clear thanks to the descriptive comment about the fixedpoint module's source. The code is concise and avoids unnecessary verbosity. Reading flow is natural, with a logical progression from exports to imports. Minor deductions for the slightly long import path comment, but overall this is exemplary readable code.

Run 3

The code is clean, flat, and well-organized. It defines a clear public API via __all__, with a helpful comment explaining the style of converters. The import is logically placed and followed by a comment referencing the external dependency. Each line expresses a single intent, and the overall structure is easy to scan. Minor deductions: the __all__ grouping is slightly non-standard with a trailing comma inside the parentheses and no blank line between __all__ and import, but this does not meaningfully hurt readability.

Run 1

Code Structure: Clearly separates public exports from imports, though imports conventionally precede __all__. Nesting: Flat, with no nested control flow. Clarity of intent: Descriptive export names and comments explain the module interface and dependency, although the 'precison_mode' typo slightly reduces polish. Code length: Short and concise, with little overhead. Action granularity: Each statement has a single purpose; grouping related export names on one line remains readable. Reading flow: Easy to follow, with minor distractions from inconsistent indentation, extra blank lines, and the unused sys import in this snippet.

Run 2

Code Structure: Simple, organized public-export declaration followed by imports, although imports conventionally precede __all__. Nesting: No nested logic; only a shallow tuple declaration. Clarity of intent: Descriptive converter names and comments explain the exports and FixedPoint dependency, but the exported functions are not defined in this snippet, and 'precison_mode' contains a typo. Code length: Concise, with little unnecessary content; sys is unused in the shown code. Action granularity: Imports each occupy their own line; grouping two export names per line remains easy to scan. Reading flow: Straightforward overall, though inconsistent indentation and the placement of imports slightly detract from polish.

Run 3

Code Structure: Simple and logically organized, though placing imports before __all__ would follow a more familiar convention. Nesting: No nested logic; only a shallow tuple declaration. Clarity of intent: Export names and comments clearly indicate fixed-point conversion functionality, although the 'precison_mode' typo slightly reduces polish. Code length: Concise, with no unnecessary complexity. Action granularity: Each statement performs one action; grouping related export names on a line is easy to scan. Reading flow: Natural overall, with minor distractions from inconsistent indentation and the separation of imports by a comment.