🔎 CRUXEval Sample Explorer 🔎

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


   
def f(text, m, n):
    text = "{}{}{}".format(text, text[:m], text[n:])
    result = ""
    for i in range(n, len(text)-m):
        result = text[i] + result
    return result
assert f("abcdefgabc", 1, 2) == 'bagfedcacbagfedc'
CRUXEval-I
assert f(??) == 'bagfedcacbagfedc'

CRUXEval-O
assert f("abcdefgabc", 1, 2) == ??