def match(command):
    is_proper_command = ('brew' in command.script and
                         command.stderr in 'Unknown command')

    if is_proper_command:
        broken_cmd = re.findall(r'Error: Unknown command: ([a-z]+)',
                                command.stderr)[0]
        return bool(get_closest(broken_cmd, _brew_commands()))
    return False
dataset/ETHPy150Open nvbn/thefuck/thefuck/rules/brew_unknown_command.py/match/swapped operands of `in`