🔎 CRUXEval Sample Explorer 🔎

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


   
def f(text):
    for i in range(len(text)):
        if text[i] == ' ':
            text = text.replace(' ', '\t', 1)
    return text.expandtabs(4)
assert f('\n\n\t\tz\td\ng\n\t\t\te') == '\n\n        z   d\ng\n            e'
CRUXEval-I
assert f(??) == '\n\n        z   d\ng\n            e'

CRUXEval-O
assert f('\n\n\t\tz\td\ng\n\t\t\te') == ??