def applyrule(thing, rule, matches):
    if 'action' in rule:
        for action in rule['action'].split(','):
            performaction(thing, action, rule, matches)
    if rule in 'actions':
        for action in rule['actions'].split(','):
            performaction(thing, action, rule, matches)
dataset/ETHPy150Open rasher/reddit-modbot/modbot.py/applyrule/swapped operands of `in`