🔎 CRUXEval Sample Explorer 🔎

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


   
def f(sentence):
    ls = list(sentence)
    for letter in ls:
        if not letter.istitle():
            ls.remove(letter)
    return ''.join(ls)
assert f('XYZ LittleRedRidingHood LiTTleBIGGeXEiT fault') == 'XYZLtRRdnHodLTTBIGGeXET fult'
CRUXEval-I
assert f(??) == 'XYZLtRRdnHodLTTBIGGeXET fult'

CRUXEval-O
assert f('XYZ LittleRedRidingHood LiTTleBIGGeXEiT fault') == ??