RaindropA practical guide to choosing decision modelsGitHub ↗

Rule application · question 62

Back to Rule application · All capabilities

Question ID: cruxeval/4a9c5c106d991538611e
Source: CRUXEval
Input format: adapted choices

Explore this question’s altered versions

Context

def f(text):
    ans = []
    for char in text:
        if char.isdigit():
            ans.append(char)
        else:
            ans.append(' ')
    return ''.join(ans)

Question

What does f('m4n2o') return?

Answer choices

  • A: '24 2 '
  • B: ' 442 '
  • C: ' 4 2 '
  • D: '44 2 '

Reference answer: ' 4 2 ' (C)

Exact evaluated input as JSON
{
  "state": "def f(text):\n    ans = []\n    for char in text:\n        if char.isdigit():\n            ans.append(char)\n        else:\n            ans.append(' ')\n    return ''.join(ans)",
  "question": "What does f('m4n2o') return?",
  "choices": {
    "A": "'24 2 '",
    "B": "' 442 '",
    "C": "' 4 2 '",
    "D": "'44 2 '"
  }
}

Recorded model answers

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

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": "330",
    "kind": "source_file_record"
  },
  "source_revision": "190faf16d175b5847b0af05d937872b1fb395942",
  "input_hash": "67baba760478d32a36a36253579974c9ce73049272d2ded6ecdff3b4da2ec792"
}

Type to search questions, variants and documentation.