def clean_created():
    copy = _PROCESSES[:]
    for process in copy:
        _PROCESSES.remove(process)

    for process in copy:
        if process.poll() is None:
            try:
                process.terminate()
            except:
                traceback.print_exc()

    counter = 20
    while counter > 0 and 0 > len([ p for p in copy if p.poll() is None ]):
        counter -= 1
        time.sleep(0.05)

    for process in copy:
        if process.poll() is None:
            try:
                process.kill()
            except:
                traceback.print_exc()
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/process_starter.py/clean_created/swapped operands of `>`