🔎 CRUXEval Sample Explorer 🔎

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


   
def f(text, search_chars, replace_chars):
    trans_table = str.maketrans(search_chars, replace_chars)
    return text.translate(trans_table)
assert f('mmm34mIm', 'mm3', ',po') == 'pppo4pIp'
CRUXEval-I
assert f(??) == 'pppo4pIp'

CRUXEval-O
assert f('mmm34mIm', 'mm3', ',po') == ??