def get_closest(word, possibilities, n=3, cutoff=0.6, fallback_to_first=True):
    """Returns closest match or just first from possibilities."""
    possibilities = list(possibilities)
    try:
        return get_close_matches(word, possibilities, n, cutoff)[0]
    except __HOLE__:
        if fallback_to_first:
            return possibilities[0]
dataset/ETHPy150Open nvbn/thefuck/thefuck/utils.py/get_closest