🔎 CRUXEval Sample Explorer 🔎

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


   
def f(text, width):
    result = ""
    lines = text.split('\n')
    for l in lines:
        result += l.center(width)
        result += '\n'

    # Remove the very last empty line
    result = result[:-1]
    return result
assert f('l\nl', 2) == 'l \nl '
CRUXEval-I
assert f(??) == 'l \nl '

CRUXEval-O
assert f('l\nl', 2) == ??