<commit_before>#!/bin/bash

set -e

# install conda

if [[ "$TRAVIS_OS_NAME" == osx ]]; then
    export OS_NAME=MacOSX
elif [[ "$TRAVIS_OS_NAME" == linux ]]; then
    export OS_NAME=Linux
elif [[ -n "$APPVEYOR" ]]; then
    export OS_NAME=Windows
fi

if [[ -n "$TRAVIS_OS_NAME" ]]; then
    wget https://repo.continuum.io/miniconda/Miniconda3-latest-${OS_NAME}-x86_64.sh -O miniconda.sh
    bash miniconda.sh -b -p $HOME/miniconda
fi

source ./scripts/add_path.sh

# setup conda

hash -r

conda config --set always_yes yes --set changeps1 no
conda config --add channels rdkit --add channels mordred-descriptor

# install requirements

CONDA_REQ_FILE=requirements-conda.txt
PIP_REQ_FILE=requirements-pip.txt

cat ./scripts/requirements-conda.txt ./scripts/requirements.txt > $CONDA_REQ_FILE

[[ "$PYTHON_VERSION" < 3.4 ]] && echo enum34 >> $CONDA_REQ_FILE

[[ -n "$COVERAGE" ]] && echo coveralls >> $PIP_REQ_FILE
[[ -n "$LINT" ]] && cat ./scripts/requirements-flake8.txt >> $PIP_REQ_FILE

if [[ -n "$DOCUMENTATION" ]]; then
    echo sphinx >> $CONDA_REQ_FILE
    echo sphinx_rtd_theme >> $CONDA_REQ_FILE
    echo sphinxcontrib-bibtex >> $PIP_REQ_FILE
fi

conda install python=$PYTHON_VERSION --file $CONDA_REQ_FILE
pip install -r $PIP_REQ_FILE<commit_msg>fix scripts/install.sh on windows<commit_after>#!/bin/bash

set -e

# install conda

if [[ "$TRAVIS_OS_NAME" == osx ]]; then
    export OS_NAME=MacOSX
elif [[ "$TRAVIS_OS_NAME" == linux ]]; then
    export OS_NAME=Linux
elif [[ -n "$APPVEYOR" ]]; then
    export OS_NAME=Windows
fi

if [[ -n "$TRAVIS_OS_NAME" ]]; then
    wget https://repo.continuum.io/miniconda/Miniconda3-latest-${OS_NAME}-x86_64.sh -O miniconda.sh
    bash miniconda.sh -b -p $HOME/miniconda
fi

source ./scripts/add_path.sh

# setup conda

hash -r

conda config --set always_yes yes --set changeps1 no
conda config --add channels rdkit --add channels mordred-descriptor

# install requirements

CONDA_REQ_FILE=requirements-conda.txt
PIP_REQ_FILE=requirements-pip.txt

cat ./scripts/requirements-conda.txt ./scripts/requirements.txt > $CONDA_REQ_FILE

[[ "$PYTHON_VERSION" < 3.4 ]] && echo enum34 >> $CONDA_REQ_FILE

[[ -n "$COVERAGE" ]] && echo coveralls >> $PIP_REQ_FILE
[[ -n "$LINT" ]] && cat ./scripts/requirements-flake8.txt >> $PIP_REQ_FILE

if [[ -n "$DOCUMENTATION" ]]; then
    echo sphinx >> $CONDA_REQ_FILE
    echo sphinx_rtd_theme >> $CONDA_REQ_FILE
    echo sphinxcontrib-bibtex >> $PIP_REQ_FILE
fi

conda install python=$PYTHON_VERSION --file $CONDA_REQ_FILE

if [[ -f $PIP_REQ_FILE ]]; then
    pip install -r $PIP_REQ_FILE
fi
{'fraction_non_alphanumeric': 0.139797507788162, 'fraction_numerical': 0.008566978193146417, 'mean_word_length': 4.047151277013753, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 2, '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': '3468925', 'n_tokens_mistral': 1022, 'n_tokens_neox': 990, 'n_words': 219}