🔎 CRUXEval Sample Explorer 🔎

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


   
def f(text):
    uppercase_index = text.find('A')
    if uppercase_index >= 0:
        return text[:uppercase_index] + text[text.find('a') + 1 :]
    else:
        return ''.join(sorted(text))
assert f('E jIkx HtDpV G') == '   DEGHIVjkptx'
CRUXEval-I
assert f(??) == '   DEGHIVjkptx'

CRUXEval-O
assert f('E jIkx HtDpV G') == ??