<commit_before>#/usr/bin/env sh
# Inspired from https://github.com/NazBen/scikit-optimize/blob/master/build_tools/travis/install.sh
# Skip Travis related code on circle ci.
if [ -z $CIRCLECI ]; then
    # Deactivate the travis-provided virtual environment and setup a
    # conda-based environment instead
    deactivate
    PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
    echo "non"
else
	PYTHON_VERSION="2.7.12"
	echo "oui"
fi

# Install conda using miniconda
pushd .
cd
mkdir -p download
cd download
echo "Cached in $HOME/download :"
ls -l
echo
if [[ ! -f miniconda.sh ]]; then
	if [[ "$PYTHON_VERSION" == "2.7" ]]; then
		wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
	else
		wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
	fi
fi
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda update --yes conda
conda info -a
popd

# Create a conda env and install packages
echo python=$TRAVIS_PYTHON_VERSION
conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION R nose numpy \
	scipy scikit-learn matplotlib pandas h5py scikit-learn rpy2

source activate testenv

pip install pyDOE scikit-optimize
conda install --yes -c conda-forge openturns

R -e 'install.packages("VineCopula", repos="https://cloud.r-project.org")'

python setup.py install

python -c "import matplotlib.pyplot as plt"<commit_msg>Debugging3<commit_after>#/usr/bin/env sh
# Inspired from https://github.com/NazBen/scikit-optimize/blob/master/build_tools/travis/install.sh
# Skip Travis related code on circle ci.
if [ -z $CIRCLECI ]; then
    # Deactivate the travis-provided virtual environment and setup a
    # conda-based environment instead
    deactivate
    PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
    echo "non"
else
	PYTHON_VERSION="2.7.12"
	echo "oui"
fi

# Install conda using miniconda
pushd .
cd
mkdir -p download
cd download
echo "Cached in $HOME/download :"
ls -l
echo
if [[ ! -f miniconda.sh ]]; then
	if [[ "$PYTHON_VERSION" == "2.7" ]]; then
		wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
	else
		wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
	fi
fi
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda update --yes conda
conda info -a
popd

# Create a conda env and install packages
echo python=$PYTHON_VERSION
conda create -n testenv --yes python=$PYTHON_VERSION R nose numpy \
	scipy scikit-learn matplotlib pandas h5py scikit-learn rpy2

source activate testenv

pip install pyDOE scikit-optimize
conda install --yes -c conda-forge openturns

R -e 'install.packages("VineCopula", repos="https://cloud.r-project.org")'

python setup.py install

python -c "import matplotlib.pyplot as plt"
{'fraction_non_alphanumeric': 0.11059907834101383, 'fraction_numerical': 0.013115916341722794, 'mean_word_length': 4.140255009107468, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5486673', 'n_tokens_mistral': 1079, 'n_tokens_neox': 1040, 'n_words': 277}