<commit_before>#!/usr/bin/env bash
# pyenv root
export PYENV_ROOT="$HOME/.pyenv"

# Install pyenv if it's missing
if [[ ! -d $PYENV_ROOT ]]; then
    git clone git://github.com/yyuu/pyenv.git ${PYENV_ROOT}
    cd ${PYENV_ROOT}
    # Get the latest tagged version
    git checkout `git tag | tail -1`
    git clone https://github.com/yyuu/pyenv-virtualenv.git ${PYENV_ROOT}/plugins/pyenv-virtualenv
    cd plugins/pyenv-virtualenv
    git checkout `git tag | tail -1`
    git clone https://github.com/s1341/pyenv-alias.git ${PYENV_ROOT}/plugins/pyenv-alias

    # Add pyenv root to PATH
    # and initialize pyenv
    PATH="$PYENV_ROOT/bin:$PATH"
    # initialize pyenv
    eval "$(pyenv init -)"
    # initialize pyenv virtualenv
    eval "$(pyenv virtualenv-init -)"

    # Now load up (allthethings)
    VERSION_ALIAS="riak_2.6.9" pyenv install 2.6.9
    VERSION_ALIAS="riak_2.7.9" pyenv install 2.7.9
    VERSION_ALIAS="riak_3.3.6" pyenv install 3.3.6
    VERSION_ALIAS="riak_3.4.2" pyenv install 3.4.2

    pyenv virtualenv riak_2.6.9 riak-py26
    pyenv virtualenv riak_2.7.9 riak-py27
    pyenv virtualenv riak_3.3.6 riak-py33
    pyenv virtualenv riak_3.4.2 riak-py34
    pyenv global riak-py26 riak-py27 riak-py33 riak-py34
    pyenv versions
fi

# Now install tox
if [ -z "`pip show tox`" ]; then
    pip install tox
    if [ -z "`pip show tox`" ]; then
        echo "ERROR: Install of tox failed"
        exit 1
    fi
    pyenv rehash
fi<commit_msg>Limit the version of tox to be < 2.0 and neuter test_index_timeout since it's racy<commit_after>#!/usr/bin/env bash
# pyenv root
export PYENV_ROOT="$HOME/.pyenv"

# Install pyenv if it's missing
if [[ ! -d $PYENV_ROOT ]]; then
    git clone git://github.com/yyuu/pyenv.git ${PYENV_ROOT}
    cd ${PYENV_ROOT}
    # Get the latest tagged version
    git checkout `git tag | tail -1`
    git clone https://github.com/yyuu/pyenv-virtualenv.git ${PYENV_ROOT}/plugins/pyenv-virtualenv
    cd plugins/pyenv-virtualenv
    git checkout `git tag | tail -1`
    git clone https://github.com/s1341/pyenv-alias.git ${PYENV_ROOT}/plugins/pyenv-alias

    # Add pyenv root to PATH
    # and initialize pyenv
    PATH="$PYENV_ROOT/bin:$PATH"
    # initialize pyenv
    eval "$(pyenv init -)"
    # initialize pyenv virtualenv
    eval "$(pyenv virtualenv-init -)"

    # Now load up (allthethings)
    VERSION_ALIAS="riak_2.6.9" pyenv install 2.6.9
    VERSION_ALIAS="riak_2.7.9" pyenv install 2.7.9
    VERSION_ALIAS="riak_3.3.6" pyenv install 3.3.6
    VERSION_ALIAS="riak_3.4.2" pyenv install 3.4.2

    pyenv virtualenv riak_2.6.9 riak-py26
    pyenv virtualenv riak_2.7.9 riak-py27
    pyenv virtualenv riak_3.3.6 riak-py33
    pyenv virtualenv riak_3.4.2 riak-py34
    pyenv global riak-py26 riak-py27 riak-py33 riak-py34
    pyenv versions
fi

# Now install tox
if [ -z "`pip show tox`" ]; then
    pip install -Iv tox=1.9.0
    if [ -z "`pip show tox`" ]; then
        echo "ERROR: Install of tox failed"
        exit 1
    fi
    pyenv rehash
fi
{'fraction_non_alphanumeric': 0.11437145715238413, 'fraction_numerical': 0.04101367122374125, 'mean_word_length': 2.875968992248062, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4971701', 'n_tokens_mistral': 1210, 'n_tokens_neox': 1120, 'n_words': 299}