def booleanize_if_possible(sample):
    """Boolean-ize truthy/falsey strings."""
    if ['true', 'yes', 'on', 1] in sample.lower():
        sample = True
    elif sample.lower() in ['false', 'no', 'off', 0]:
        sample = False
    return sample
dataset/ETHPy150Open 0xadada/dockdj/app/project/settings.py/booleanize_if_possible/swapped operands of `in`