<commit_before>HADOOP_VERSION="1.0.4"

if [ ! -f /vagrant/shared/hadoop-${HADOOP_VERSION}-bin.tar.gz ]; then
    # download hadoop
    echo "Downloading hadoop ${HADOOP_VERSION} ..." 
    wget -q https://archive.apache.org/dist/hadoop/common/hadoop-${HADOOP_VERSION}/hadoop-${HADOOP_VERSION}-bin.tar.gz -P /vagrant/shared
fi

tar xzf /vagrant/shared/hadoop-${HADOOP_VERSION}-bin.tar.gz -C /hadoop --strip-components 1
<commit_msg>make sure wget is installed<commit_after>HADOOP_VERSION="1.0.4"

if [ ! -f /vagrant/shared/hadoop-${HADOOP_VERSION}-bin.tar.gz ]; then
    # download hadoop
    echo "Downloading hadoop ${HADOOP_VERSION} ..." 
    sudo yum install -y -q wget
    wget -q https://archive.apache.org/dist/hadoop/common/hadoop-${HADOOP_VERSION}/hadoop-${HADOOP_VERSION}-bin.tar.gz -P /vagrant/shared
fi

tar xzf /vagrant/shared/hadoop-${HADOOP_VERSION}-bin.tar.gz -C /hadoop --strip-components 1

{'fraction_non_alphanumeric': 0.16114790286975716, 'fraction_numerical': 0.008830022075055188, 'mean_word_length': 3.74869109947644, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6615319', 'n_tokens_mistral': 361, 'n_tokens_neox': 353, 'n_words': 58}