<commit_before>if [ "$2" = "yes" ]
    then
        rm -rf src/main/groovy/edu/oregonstate/mist/contrib/
        git clone -q "$1" src/main/groovy/edu/oregonstate/mist/contrib
        cd src/main/groovy/edu/oregonstate/mist/contrib
        git reset --hard "$3"
        rm -rf .git/
        rm .gitignore
fi<commit_msg>Make contrib rm commands safer<commit_after>if [ "$2" = "yes" ]
    then
        rm -rf src/main/groovy/edu/oregonstate/mist/contrib/
        git clone -q "$1" src/main/groovy/edu/oregonstate/mist/contrib
        WORKDIR=`pwd`
        cd src/main/groovy/edu/oregonstate/mist/contrib
        git reset --hard "$3"
        rm -rf src/main/groovy/edu/oregonstate/mist/contrib/.git/
        rm src/main/groovy/edu/oregonstate/mist/contrib/.gitignore
fi
{'fraction_non_alphanumeric': 0.13689700130378096, 'fraction_numerical': 0.007822685788787484, 'mean_word_length': 2.226890756302521, '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': '2088811', 'n_tokens_mistral': 288, 'n_tokens_neox': 268, 'n_words': 52}