RaindropA practical guide to choosing decision modelsGitHub ↗

Rule application · question 22

Back to Rule application · All capabilities

Question ID: cruxeval/dac9a78a4a34555b5ff0
Source: CRUXEval
Input format: adapted choices

Explore this question’s altered versions

Context

def f(text):
    text = text.upper()
    count_upper = 0
    for char in text:
        if char.isupper():
            count_upper += 1
        else:
            return 'no'
    return count_upper // 2

Question

What does f('ax') return?

Answer choices

  • A: 1
  • B: 0
  • C: -1
  • D: 3

Reference answer: 1 (A)

Exact evaluated input as JSON
{
  "state": "def f(text):\n    text = text.upper()\n    count_upper = 0\n    for char in text:\n        if char.isupper():\n            count_upper += 1\n        else:\n            return 'no'\n    return count_upper // 2",
  "question": "What does f('ax') return?",
  "choices": {
    "A": "1",
    "B": "0",
    "C": "-1",
    "D": "3"
  }
}

Recorded model answers

Model Answer Outcome
Astra 1 Correct
Opus 5.5 1 Correct
GLiDE v1.2 1 Correct
Decider v1.1 0 Incorrect
Jev 1 Correct
Microsoft Decision-1 0 Incorrect
Clef 0 Incorrect
Luna Decisions 0 Incorrect
Clef Flash 0 Incorrect
Strands Decider 0 Incorrect
GLiNER2.5 Decide 1 Correct
Laya 1 Correct
CalDec v1 1 Correct

Source and sharing

Attribution: Meta; CRUXEval authors.
Terms: MIT. Source sharing decision.
The capability assignment and choice-format normalization are part of this experiment. Source data retain their own terms.

Exact source locator and input fingerprint
{
  "source_locator": {
    "path": "data/cruxeval.jsonl",
    "record": "57",
    "kind": "source_file_record"
  },
  "source_revision": "190faf16d175b5847b0af05d937872b1fb395942",
  "input_hash": "1e5e47d1c81202486a6c2a447d8a985444c48e8cfd92d1fdc8ff67f2d38a9f4e"
}

Type to search questions, variants and documentation.