🔎 CRUXEval Sample Explorer 🔎

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


   
def f(a, b):
    a = b.join(a)
    lst = []
    for i in range(1, len(a)+1, 2):
        lst.append(a[i-1:][:i])
        lst.append(a[i-1:][i:])
    return lst
assert f(["a", "b", "c"], " ") == ['a', ' b c', 'b c', '', 'c', '']
CRUXEval-I
assert f(??) == ['a', ' b c', 'b c', '', 'c', '']

CRUXEval-O
assert f(["a", "b", "c"], " ") == ??