def sanitize_flags(flag_list, objectionables):
    new_flags = []
    shadow = False
    for x in flag_list:
        if shadow:
            shadow = False
        elif x in objectionables:
            shadow = objectionables[x]
        else:
            new_flags.append(x)
    return new_flags
dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/runtime/__init__.py/sanitize_flags/original