🔎 CRUXEval Sample Explorer 🔎

CRUXEval is a benchmark complementary to HumanEval and MBPP measuring code reasoning, understanding, and execution capabilities!


   
field = 0

def f(text):
    global g, field
    field = text.replace(' ', '')
    g = text.replace('0', ' ')
    text = text.replace('1', 'i')

    return text
assert f('00000000 00000000 01101100 01100101 01101110') == '00000000 00000000 0ii0ii00 0ii00i0i 0ii0iii0'
CRUXEval-I
assert f(??) == '00000000 00000000 0ii0ii00 0ii00i0i 0ii0iii0'

CRUXEval-O
assert f('00000000 00000000 01101100 01100101 01101110') == ??