🔎 CRUXEval Sample Explorer 🔎

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


   
def f(numbers, index):
    for n in numbers[index:]:
        numbers.insert(index, n)
        index += 1
    return numbers[:index]
assert f([-2, 4, -4], 0) == [-2, 4, -4]
CRUXEval-I
assert f(??) == [-2, 4, -4]

CRUXEval-O
assert f([-2, 4, -4], 0) == ??