🔎 CRUXEval Sample Explorer 🔎

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


   
def f(nums):
    count = len(nums)
    for i in range(-count+1, 0):
        nums.extend([nums[i], nums[i]])
    return nums
assert f([0, 6, 2, -1, -2]) == [0, 6, 2, -1, -2, 6, 6, -2, -2, -2, -2, -2, -2]
CRUXEval-I
assert f(??) == [0, 6, 2, -1, -2, 6, 6, -2, -2, -2, -2, -2, -2]

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