<commit_before>#!/bin/sh

ENV_NAME="test-environment"
set -e

conda_create ()
{

    hash -r
    conda config --set always_yes yes --set changeps1 no
    conda update -q conda
    conda config --add channels pypi
    conda info -a
    deps='six coverage numpy scipy pandas decorator sphinx matplotlib'

    conda create -q -n $ENV_NAME "python=$TRAVIS_PYTHON_VERSION" $deps
}

src="$HOME/env/miniconda$TRAVIS_PYTHON_VERSION"
if [ ! -d "$src" ]; then
    mkdir -p $HOME/env
    pushd $HOME/env
    
        # Download miniconda packages
        wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh;

        # Install both environments
        bash miniconda.sh -b -p $src

        export PATH="$src/bin:$PATH"
        conda_create 
        source activate $ENV_NAME
        pip install python-coveralls
        source deactivate
    popd
else
    echo "Using cached dependencies"
fi<commit_msg>CI for Python 3.4 fails, because the current version of pyyaml (5.3.x) does not support Python 3.4 anymore. The change fixes the pyyaml version to 5.2 for Python 3.4.<commit_after>#!/bin/sh

ENV_NAME="test-environment"
set -e

conda_create ()
{

    hash -r
    conda config --set always_yes yes --set changeps1 no
    conda update -q conda
    conda config --add channels pypi
    conda info -a
    deps='six coverage numpy scipy pandas decorator sphinx matplotlib'

    conda create -q -n $ENV_NAME "python=$TRAVIS_PYTHON_VERSION" $deps
}

src="$HOME/env/miniconda$TRAVIS_PYTHON_VERSION"
if [ ! -d "$src" ]; then
    mkdir -p $HOME/env
    pushd $HOME/env
    
        # Download miniconda packages
        wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh;

        # Install both environments
        bash miniconda.sh -b -p $src

        export PATH="$src/bin:$PATH"
        conda_create 
        source activate $ENV_NAME
        # later versions than 5.2 do not support python 3.4 anymore
        pip install PyYAML==5.2; python_version==3.4
        pip install python-coveralls
        source deactivate
    popd
else
    echo "Using cached dependencies"
fi
{'fraction_non_alphanumeric': 0.09325210871602624, 'fraction_numerical': 0.016869728209934397, 'mean_word_length': 2.5942760942760943, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1841142', 'n_tokens_mistral': 749, 'n_tokens_neox': 706, 'n_words': 211}