<commit_before>#!/usr/bin/env bash

set -e

openssl aes-256-cbc -K $encrypted_c563b2a48eea_key -iv $encrypted_c563b2a48eea_iv -in .travis/github_deploy_key.enc -out github_deploy_key -d
chmod 600 github_deploy_key
eval `ssh-agent -s`
ssh-add github_deploy_key

git clone <EMAIL>:strimzi/strimzi.github.io.git /tmp/website

# Operator docs
rm -rf  /tmp/website/docs/operators/master/images
rm -rf  /tmp/website/docs/operators/master/full/images
cp -vrL documentation/htmlnoheader                          /tmp/website/docs/operators/master
cp -vrL documentation/html                                  /tmp/website/docs/operators/master/full

# Contributing Guide
rm -rf  /tmp/website/contributing/guide/images
rm -rf  /tmp/website/contributing/guide/templates
cp -v   documentation/htmlnoheader/contributing-book.html   /tmp/website/contributing/guide/contributing.html
cp -v   documentation/html/contributing.html                /tmp/website/contributing/guide/full.html
cp -vrL documentation/htmlnoheader/images                   /tmp/website/contributing/guide/images
cp -vrL documentation/contributing/templates                /tmp/website/contributing/guide/templates

pushd /tmp/website

if [[ -z $(git status -s) ]]; then
    echo "No changes to the output on this push; exiting."
    exit 0
fi

git config user.name "Travis CI"
git config user.email "<EMAIL>"
<commit_msg>Push to the right directory<commit_after>#!/usr/bin/env bash

set -e

openssl aes-256-cbc -K $encrypted_c563b2a48eea_key -iv $encrypted_c563b2a48eea_iv -in .travis/github_deploy_key.enc -out github_deploy_key -d
chmod 600 github_deploy_key
eval `ssh-agent -s`
ssh-add github_deploy_key

git clone <EMAIL>:strimzi/strimzi.github.io.git /tmp/website

# Operator docs
rm -rf  /tmp/website/docs/operators/master/images
rm -rf  /tmp/website/docs/operators/master/full/images
cp -vrL documentation/htmlnoheader/*                        /tmp/website/docs/operators/master
cp -vrL documentation/html/*                                /tmp/website/docs/operators/master/full

# Contributing Guide
rm -rf  /tmp/website/contributing/guide/images
rm -rf  /tmp/website/contributing/guide/templates
cp -v   documentation/htmlnoheader/contributing-book.html   /tmp/website/contributing/guide/contributing.html
cp -v   documentation/html/contributing.html                /tmp/website/contributing/guide/full.html
cp -vrL documentation/htmlnoheader/images                   /tmp/website/contributing/guide/images
cp -vrL documentation/contributing/templates                /tmp/website/contributing/guide/templates

pushd /tmp/website

if [[ -z $(git status -s) ]]; then
    echo "No changes to the output on this push; exiting."
    exit 0
fi

git config user.name "Travis CI"
git config user.email "<EMAIL>"

{'fraction_non_alphanumeric': 0.10252707581227437, 'fraction_numerical': 0.013718411552346571, 'mean_word_length': 3.0334788937409023, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5085004', 'n_tokens_mistral': 1001, 'n_tokens_neox': 905, 'n_words': 198}