<commit_before>#!/bin/bash
set -e # Exit with nonzero exit code if anything fails

TARGET_BRANCH="gh-pages"

# Save some useful information
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
SHA=`git rev-parse --verify HEAD`

# Clone the existing gh-pages for this repo into out/
# Create a new empty branch if gh-pages doesn't exist yet (should only happen on first deply)
git clone $REPO out
cd out
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
cd ..

# Move content
mkdir out/reports/$TRAVIS_BUILD_NUMBER
cd report
cp -r * ../out/reports/$TRAVIS_BUILD_NUMBER
cd ..
cp dist/* out/vendor/tubular

# Now let's go have some fun with the cloned repo
cd out
npm install gulp
gulp dgeni

git config user.name "<NAME>"
git config user.email "<EMAIL>"

# Commit the "changes", i.e. the new version.
# The delta will show diffs between new and old versions.
git add reports/$TRAVIS_BUILD_NUMBER/*
git commit -m "Deploy to GitHub Pages: ${SHA}"

# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc
cd ..
openssl aes-256-cbc -K $encrypted_b7840835169d_key -iv $encrypted_b7840835169d_iv -in tubular.enc -out tubular -d
chmod 600 tubular
eval `ssh-agent -s`
ssh-add tubular

cd out
# Now that we're all set up, we can push.
git push $SSH_REPO $TARGET_BRANCH
<commit_msg>My bad<commit_after>#!/bin/bash
set -e # Exit with nonzero exit code if anything fails

TARGET_BRANCH="gh-pages"

# Save some useful information
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//<EMAIL>:}
SHA=`git rev-parse --verify HEAD`

# Clone the existing gh-pages for this repo into out/
# Create a new empty branch if gh-pages doesn't exist yet (should only happen on first deply)
git clone $REPO out
cd out
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
cd ..

# Move content
mkdir out/reports/$TRAVIS_BUILD_NUMBER
cd report
cp -r * ../out/reports/$TRAVIS_BUILD_NUMBER
cd ..
cp dist/* out/vendor/tubular

# Now let's go have some fun with the cloned repo
cd out
npm install
gulp dgeni

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

# Commit the "changes", i.e. the new version.
# The delta will show diffs between new and old versions.
git add reports/$TRAVIS_BUILD_NUMBER/*
git commit -m "Deploy to GitHub Pages: ${SHA}"

# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc
cd ..
openssl aes-256-cbc -K $encrypted_b7840835169d_key -iv $encrypted_b7840835169d_iv -in tubular.enc -out tubular -d
chmod 600 tubular
eval `ssh-agent -s`
ssh-add tubular

cd out
# Now that we're all set up, we can push.
git push $SSH_REPO $TARGET_BRANCH

{'fraction_non_alphanumeric': 0.09962825278810408, 'fraction_numerical': 0.019330855018587362, 'mean_word_length': 4.106261859582543, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7164003', 'n_tokens_mistral': 996, 'n_tokens_neox': 898, 'n_words': 353}