<commit_before>function pip-uninstall-all -d "Uninstall all pip packages"
    set -l read_prompt ""
    if test "$VIRTUAL_ENV" = ""
        set read_prompt "We are NOT in a virtualenv, proceed (y/N)? "
    else
        set read_prompt "We are in "(basename $VIRTUAL_ENV)", proceed (y/N)? "
    end
    read -l -p "echo '$read_prompt'" doit
    if test "$doit" = "y"
        for package in (pip list | egrep -iv "pip" | awk '{print $1}')
            echo -n "uninstalling $package... "
            pip uninstall -q $package -y
            echo " ...done!"
        end
        pip install -U pip
        pip install -U setuptools
    end
end<commit_msg>refact(pip-uninstall-all): colorize prompt<commit_after>function pip-uninstall-all -d "Uninstall all pip packages"
    set -l read_prompt ""
    if test "$VIRTUAL_ENV" = ""
        set read_prompt (omf::err)"We are NOT in a virtualenv, proceed (y/N)? "(omf::off)
    else
        set read_prompt (omf::em)"We are in "(basename $VIRTUAL_ENV)", proceed (y/N)? "(omf::off)
    end
    read -l -p "echo '$read_prompt'" doit
    if test "$doit" = "y"
        for package in (pip list | egrep -iv "pip" | awk '{print $1}')
            echo -n "uninstalling $package... "
            pip uninstall -q $package -y
            echo " ...done!"
        end
        pip install -U pip
        pip install -U setuptools
    end
end
{'fraction_non_alphanumeric': 0.13065693430656936, 'fraction_numerical': 0.00145985401459854, 'mean_word_length': 2.108843537414966, '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': '4295843', 'n_tokens_mistral': 464, 'n_tokens_neox': 446, 'n_words': 157}