<commit_before>#!/bin/bash
# See https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db
set -o errexit

# config
git config --global user.email "${GH_EMAIL}"
git config --global user.name "${GH_USERNAME}"

# build site
mvn site

# get the current version from pom.xml
CURRENT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[')

# clone current github pages
git clone -b gh-pages https://${GH_TOKEN}@${GH_REF} gh-pages<commit_msg>gh-pages release - added logging<commit_after>#!/bin/bash
# See https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db
set -o errexit

# config
git config --global user.email "${GH_EMAIL}"
git config --global user.name "${GH_USERNAME}"

# build site
mvn site

# get the current version from pom.xml
CURRENT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[')
echo -e "Preparing gh-pages for version $CURRENT_VERSION"

# clone current github pages
git clone -b gh-pages https://${GH_TOKEN}@${GH_REF} gh-pages
{'fraction_non_alphanumeric': 0.1485148514851485, 'fraction_numerical': 0.019801980198019802, 'mean_word_length': 4.731958762886598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4788146', 'n_tokens_mistral': 420, 'n_tokens_neox': 387, 'n_words': 93}