<commit_before>_brew_to_completion()
{
    local actions cur prev
    local cellar_contents formulae which_cellar brew_base

    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    
    actions="install rm list info ln edit"
    
    # Command list
    if [[ ( ${COMP_CWORD} -eq 1 ) && ( ${COMP_WORDS[0]} == brew )  ]] ; then
        COMPREPLY=( $(compgen -W "${actions}" -- ${cur}) )
        return 0
    # Handle subcommands
    else
        brew_base=`which brew`
        brew_base=`dirname ${brew_base}`/..
        
        # Commands that take an existing brew...
        if [[ ($prev == "list") || ($prev == "ln") || ($prev == "rm") ]] ; then
            cellar_contents=`ls ${brew_base}/Cellar/`
            COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) )
            return 0
        # Commands that take a formula...
        elif [[ ($prev == "install") ]] ; then<commit_msg>Info also takes installed brews<commit_after>_brew_to_completion()
{
    local actions cur prev
    local cellar_contents formulae which_cellar brew_base

    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    
    actions="install rm list info ln edit"
    
    # Command list
    if [[ ( ${COMP_CWORD} -eq 1 ) && ( ${COMP_WORDS[0]} == brew )  ]] ; then
        COMPREPLY=( $(compgen -W "${actions}" -- ${cur}) )
        return 0
    # Handle subcommands
    else
        brew_base=`which brew`
        brew_base=`dirname ${brew_base}`/..
        
        # Commands that take an existing brew...
        if [[ ($prev == "list") || ($prev == "ln") || ($prev == "rm") || ($prev == "info") ]] ; then
            cellar_contents=`ls ${brew_base}/Cellar/`
            COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) )
            return 0
        # Commands that take a formula...
        elif [[ ($prev == "install") ]] ; then
{'fraction_non_alphanumeric': 0.16919853326348874, 'fraction_numerical': 0.005238344683080147, 'mean_word_length': 2.3217391304347825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7579997', 'n_tokens_mistral': 619, 'n_tokens_neox': 602, 'n_words': 153}