<commit_before>#!/bin/sh

# Retrieve repo info
GH_REPO=$(basename `git rev-parse --show-toplevel`)
GH_REMOTE=$(git remote -v | head -n 1 | sed "s/.*github.com\/\([0-9a-zA-Z_-]*\)\/.*/\1/g")

# Set up a bit of configuration
git config --local user.name $GH_USER
git config --local user.username $GH_USER

git remote add deploy https://$GH_USER:$GH_TOKEN@github.com/$GH_REMOTE/$GH_REPO.git

# Do the build commit
git checkout --orphan build-$VERSION
git reset
git add backend/dist
git commit -m "Travis Build"

git checkout --orphan gh-pages
git reset
git add backend/reports
git add backend/doc/generated
git commit -m "Travis Build"

# Silent push to avoid the token to be shown in the console ^.^
git push -f deploy build-$VERSION </dev/null >/dev/null 2>/dev/null
git push -f deploy gh-pages </dev/null >/dev/null 2>/dev/null<commit_msg>Fix typo in .travis<commit_after>#!/bin/sh

# Retrieve repo info
GH_REPO=$(basename `git rev-parse --show-toplevel`)
GH_REMOTE=$(git remote -v | head -n 1 | sed "s/.*github.com\/\([0-9a-zA-Z_-]*\)\/.*/\1/g")

# Set up a bit of configuration
git config --local user.name $GH_USER
git config --local user.username $GH_USER

git remote add deploy https://$GH_USER:$GH_TOKEN@github.com/$GH_REMOTE/$GH_REPO.git

# Do the build commit
git checkout --orphan build-$VERSION
git reset
git add backend/dist
git commit -m "Travis Build"

git checkout --orphan gh-pages
git reset
git add backend/reports
git add backend/api
git commit -m "Travis Build"

# Silent push to avoid the token to be shown in the console ^.^
git push -f deploy build-$VERSION </dev/null >/dev/null 2>/dev/null
git push -f deploy gh-pages </dev/null >/dev/null 2>/dev/null
{'fraction_non_alphanumeric': 0.14217443249701314, 'fraction_numerical': 0.007168458781362007, 'mean_word_length': 3.6527777777777777, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '2438637', 'n_tokens_mistral': 627, 'n_tokens_neox': 587, 'n_words': 202}