E17 · Dorn/python/51

Full sample results

Scores

MethodScoreScaleDataset rank
(0–100)
GPT-6.1 Sol160–20; mean of three runs
66.0Δ 7.5
DeepSeek V4 Pro130–20; mean of three runs
59.3Δ 14.2
BTTF0.5170–1; higher is more readable
49.3Δ 24.2
Human3.651–5; original rating
73.5

Loading feature diagnosis…

Source code

GPT-6.1 Sol explanations

Run 1 · 16/20

Code Structure: The methods are logically separated by event type, though the opening fragment lacks context.

Nesting: A single conditional level keeps the code easy to follow.

Clarity of intent: Dynamic handler dispatch is recognizable, but handler naming conventions and the relationship between elements and callbacks are implicit; mixed method naming styles reduce consistency.

Code length: The snippet is concise without unnecessary statements.

Action granularity: Each line performs one primary action, although getattr followed by invocation combines lookup and execution clearly.

Reading flow: Straightforward within each method, but the incomplete opening block and unexplained state such as self.elements and self.charid slightly interrupt comprehension.

Run 2 · 16/20

Code Structure: Handler methods are logically separated, though the opening lines are an incomplete fragment.

Nesting: Shallow conditionals make the code easy to scan.

Clarity of intent: Event dispatch and character ID assignment are understandable, but dynamically constructed handler names, unexplained element state, and inconsistent method naming reduce clarity.

Code length: Concise, with little unnecessary code.

Action granularity: Each line performs a focused operation; the combined lookup and invocation is still readable.

Reading flow: Straightforward within each method, but the truncated beginning and implicit naming conventions interrupt the overall flow.

Run 3 · 16/20

Code Structure: Small, logically separated handler methods, though the opening fragment lacks its enclosing method.

Nesting: Shallow conditionals keep complexity low.

Clarity of intent: Event dispatch and character ID assignment are understandable, but dynamically constructed handler names and reliance on self.elements require surrounding context.

Code length: Concise with no obvious unnecessary code.

Action granularity: Each line performs one primary action; the getattr invocation is compact and idiomatic.

Reading flow: Straightforward within each method, but the truncated opening and inconsistent method naming styles slightly interrupt readability.

BTTF feature contributions

Score 0.517 / 1