@memoize
def get_package(command):
    try:
        c = CommandNotFound.CommandNotFound()
        cmd = command.split(' ')
        pkgs = c.getPackages(cmd[0] if cmd[0] != 'sudo' else cmd[1])
        name, _ = pkgs[0]
        return name
    except __HOLE__:
        # IndexError is thrown when no matching package is found
        return None
dataset/ETHPy150Open nvbn/thefuck/thefuck/rules/apt_get.py/get_package