def clean_directory(directory):

    for filename in os.listdir(directory):
        f = os.path.join(directory, filename)
        if os.path.isfile(f):
            sh.rm(f)
Replace items with different (or not) items.
dataset/ETHPy150Open datastax/cstar_perf/tool/cstar_perf/tool/scripts/utils.py/clean_directory--crossover with--dataset/ETHPy150Open edgewall/trac/trac/ticket/tests/batch.py/BatchModifyTestCase.test_change_list_replace_items_partial