🔎 CRUXEval Sample Explorer 🔎

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


   
def f(text):
    ls = list(text)
    for i in range(0, len(ls)):
        if ls[i]!='+':
            ls.insert(i, '+')
            ls.insert(i, '*')
            break
    return '+'.join(ls)
assert f('nzoh') == '*+++n+z+o+h'
CRUXEval-I
assert f(??) == '*+++n+z+o+h'

CRUXEval-O
assert f('nzoh') == ??