<commit_before>#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o xtrace
set -o pipefail

# exit if not on master branch
[ $TRAVIS_BRANCH = master ]

AUTOMATED_AUTHOR_EMAIL=_@_._
AUTOMATED_AUTHOR_NAME=_
LEIN_RELEASE_COMMAND=$(git log --format=%B --no-merges -n 1 | grep -o 'lein release :[a-z]*')

# exit if no lein release
[ -n "$LEIN_RELEASE_COMMAND" ]

git remote set-url origin https://$GITHUB_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
git branch --set-upstream-to origin/master master
git config user.name "$AUTOMATED_AUTHOR_NAME"
git config user.email "$AUTOMATED_AUTHOR_EMAIL"
git config push.default simple
# dont output all of lein doc, because its overly long because it tries
# to run experiments
lein codox 2>&1 | head -n 100
git pull origin gh-pages
./scripts/deploy-docs.sh --verbose
git checkout master
git pull origin master
eval $LEIN_RELEASE_COMMAND
<commit_msg>Look at merge requests for version bump message<commit_after>#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o xtrace
set -o pipefail

# exit if not on master branch
[ $TRAVIS_BRANCH = master ]

AUTOMATED_AUTHOR_EMAIL=_@_._
AUTOMATED_AUTHOR_NAME=_
LEIN_RELEASE_COMMAND=$(git log --format=%B -n 1 | grep -o 'lein release :[a-z]*')

# exit if no lein release
[ -n "$LEIN_RELEASE_COMMAND" ]

git remote set-url origin https://$GITHUB_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
git branch --set-upstream-to origin/master master
git config user.name "$AUTOMATED_AUTHOR_NAME"
git config user.email "$AUTOMATED_AUTHOR_EMAIL"
git config push.default simple
# dont output all of lein doc, because its overly long because it tries
# to run experiments
lein codox 2>&1 | head -n 100
git pull origin gh-pages
./scripts/deploy-docs.sh --verbose
git checkout master
git pull origin master
eval $LEIN_RELEASE_COMMAND

{'fraction_non_alphanumeric': 0.09787472035794184, 'fraction_numerical': 0.006711409395973154, 'mean_word_length': 4.6613924050632916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5596749', 'n_tokens_mistral': 643, 'n_tokens_neox': 622, 'n_words': 208}