E01 · Dorn/java/109
Scores
| Method | Score | Scale | Dataset rank (0–100) |
|---|---|---|---|
| GPT-6.1 Sol | 16.33 | 0–20; mean of three runs | 70.8Δ 21.4 |
| DeepSeek V4 Pro | 15 | 0–20; mean of three runs | 77.3Δ 14.9 |
| BTTF | 0.642 | 0–1; higher is more readable | 83.8Δ 8.4 |
| Human | 3.99 | 1–5; original rating | 92.2 |
Loading feature diagnosis…
GPT-6.1 Sol explanations
Run 1 · 17/20
Code Structure: The visible branch, exception fallback, and getter are logically organized, though the fragment lacks its opening context.
Nesting: Shallow nesting makes it easy to follow.
Clarity of intent: Matching a value to RUBY, rejecting invalid values, and exposing the stored value are clear.
Code length: Concise, with no unnecessary statements.
Action granularity: Each statement performs a single action.
Reading flow: Conventional formatting and spacing support natural reading, but starting with an else-if and unmatched surrounding context slightly disrupts comprehension.
Run 2 · 16/20
Code Structure: The visible conditional, exception, and getter are logically organized, although the fragment begins mid-method.
Nesting: Shallow nesting makes the code easy to scan.
Clarity of intent: Matching a value to RUBY, rejecting invalid values, and exposing the stored value are clear; missing surrounding code limits context.
Code length: Concise, with no visible unnecessary statements.
Action granularity: Each statement performs one action.
Reading flow: Formatting and spacing support natural reading, but the initial else-if and unmatched surrounding context make the snippet less self-contained.
Run 3 · 16/20
Code Structure: The conditional return, exception fallback, and getter are logically organized, although the snippet begins mid-method.
Nesting: Shallow nesting makes the visible logic easy to follow.
Clarity of intent: Matching a value to RUBY, rejecting invalid values, and exposing the stored value are clear; the missing method context limits full understanding.
Code length: Concise, with no obvious redundancy.
Action granularity: Each statement performs a single action on its own line.
Reading flow: Consistent indentation and spacing support natural reading, but the opening else-if and unmatched surrounding context interrupt standalone comprehension.
DeepSeek V4 Pro explanations
Run 1 · 16/20
The code is clear and logically structured, with an else-if returning a constant if a condition matches and an exception for invalid input. It is flat, uses clear intent, and maintains concise length. Each line performs a single action, and the reading flow is natural. The snippet appears to be part of a larger method, slightly limiting full context, but within itself it is quite readable.
Run 2 · 15/20
The code snippet is mostly clear and readable, but it's incomplete and lacks context. The else-if structure is flat and straightforward, returning a constant based on a value comparison. The throw statement is concise and the getValue method is a simple, well-named accessor. However, without seeing the full enum/class definition, the intent is slightly ambiguous—what are the possible values? The leading 'else if' suggests there is a preceding if block, so the logical flow is not fully visible. Action granularity is good, with one action per line. Code length is minimal where it can be. The reading flow is natural within the snippet, but the missing context and lack of comments explaining the value mapping reduce clarity. Overall, it's readable but not exemplary due to incomplete structure and ambiguous intent.
Run 3 · 14/20
The code snippet is short but lacks surrounding context, making it difficult to assess fully. The else-if logic and exception throwing are clear and follow a logical structure with minimal nesting. However, the use of RUBY.getValue().equals(value) implies a possible enum pattern but is acceptable. Naming conventions like _value with an underscore are inconsistent with typical Java style, slightly reducing clarity. The method getValue() is straightforward but the snippet starts mid-method, affecting reading flow. Overall, readable but context-dependent.
BTTF feature contributions
Score 0.642 / 1