<commit_before>#!/bin/sh

# Temporary
VERSION='1.0.0'

# Retrieve repo info
GH_REPO=$(basename `git rev-parse --show-toplevel`)
GH_REMOTE=$(git remote -v | head -n 1 | sed "s/.*github.com\/\([a-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 release commit
git fetch origin
if [ $(git branch -a | grep "remotes/origin/release-$VERSION") ]; then
    git checkout "release-$VERSION"
else
    git checkout -b "release-$VERSION"
fi
git add .
git commit -m "Travis Build $PLATFORM"

# Silent push to avoid the token to be shown in the console ^.^
git push deploy release-$VERSION </dev/null >/dev/null 2>/dev/null<commit_msg>Add some log in release.sh<commit_after>#!/bin/sh

# Temporary
VERSION='1.0.0'

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

echo $GH_USER
echo $GH_REPO
echo $GH_REMOTE

# 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 release commit
git fetch origin
if [ $(git branch -a | grep "remotes/origin/release-$VERSION") ]; then
    git checkout "release-$VERSION"
else
    git checkout -b "release-$VERSION"
fi
git add .
git commit -m "Travis Build $PLATFORM"

echo $(git status)

# Silent push to avoid the token to be shown in the console ^.^
git push deploy release-$VERSION </dev/null >/dev/null 2>/dev/null
{'fraction_non_alphanumeric': 0.15261282660332542, 'fraction_numerical': 0.007125890736342043, 'mean_word_length': 3.773371104815864, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '761875', 'n_tokens_mistral': 634, 'n_tokens_neox': 594, 'n_words': 190}