🔎 CRUXEval Sample Explorer 🔎

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


   
def f(text, suffix):
    if suffix and suffix[-1] in text:
        return f(text.rstrip(suffix[-1]), suffix[:-1])
    else:
        return text
assert f('rpyttc', 'cyt') == 'rpytt'
CRUXEval-I
assert f(??) == 'rpytt'

CRUXEval-O
assert f('rpyttc', 'cyt') == ??