<commit_before>#!/bin/bash -x
GH_USER=bjodah
GH_REPO=chemreac
WORKDIR=`pwd`

if [ "$TRAVIS_PYTHON_VERSION" == "3.4" ] && [ "$TRAVIS_REPO_SLUG" == "${GH_USER}/${GH_REPO}" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
    echo -e "Building docs...\n"
    ./scripts/build_docs.sh

    echo -e "Publishing docs...\n"
    cd $HOME
    git config --global user.email "<EMAIL>"
    git config --global user.name "travis-ci"
    git clone --quiet https://${GH_TOKEN}@github.com/${GH_USER}/${GH_REPO} ${GH_REPO} > /dev/null
    cd ${GH_REPO}
    git branch -D gh-pages
    git checkout --orphan gh-pages
    git rm -rf .
    cp -R ${WORKDIR}/gh-pages-skeleton/* .
    cp -R ${WORKDIR}/docs/_build/html ./docs
    cp -R ${WORKDIR}/htmlcov .
    git add -f .
    git commit -m "Lastest docs on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
    git push -fq origin gh-pages > /dev/null
    echo -e "Published docs to gh-pages.\n"
fi<commit_msg>Don't suppress output from git push [skip ci]<commit_after>#!/bin/bash -x
GH_USER=bjodah
GH_REPO=chemreac
WORKDIR=`pwd`

if [ "$TRAVIS_PYTHON_VERSION" == "3.4" ] && [ "$TRAVIS_REPO_SLUG" == "${GH_USER}/${GH_REPO}" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
    echo -e "Building docs...\n"
    ./scripts/build_docs.sh

    echo -e "Publishing docs...\n"
    cd $HOME
    git config --global user.email "<EMAIL>"
    git config --global user.name "travis-ci"
    git clone --quiet https://${GH_TOKEN}@github.com/${GH_USER}/${GH_REPO} ${GH_REPO} > /dev/null
    cd ${GH_REPO}
    git branch -D gh-pages
    git checkout --orphan gh-pages
    git rm -rf .
    cp -R ${WORKDIR}/gh-pages-skeleton/* .
    cp -R ${WORKDIR}/docs/_build/html ./docs
    cp -R ${WORKDIR}/htmlcov .
    git add -f .
    git commit -m "Lastest docs on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
    git push -f origin gh-pages
    echo -e "Published docs to gh-pages.\n"
fi
{'fraction_non_alphanumeric': 0.17322050771528125, 'fraction_numerical': 0.001991040318566451, 'mean_word_length': 2.8653846153846154, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '5496261', 'n_tokens_mistral': 821, 'n_tokens_neox': 765, 'n_words': 193}