<commit_before>#!/bin/bash

set -eux

cd "$(dirname $0)"

# Verify that the git is clean.
test $(git ls-files -m | wc -l) == 0

# Current version
ver=$(cat VERSION)

# Add one.
newver=$(( ${ver} + 1 ))

# New version
echo $newver > VERSION

git add VERSION

git commit -m "Bumped stable to version ${newver}"
git tag "stable-${newver}"
git checkout stable
git merge master
git checkout master
git push

# EOF
<commit_msg>Better checking<commit_after>#!/bin/bash

set -eu

cd "$(dirname $0)"

# Verify that there is something to do.
if [[ $(git log master..stable | wc -l) == 0 ]]; then
    echo There are no changes to push into stable.
    exit 1
fi

# Verify that the git is clean.
if [[ $(git ls-files -m | wc -l) != 0 ]];then
    echo "Your git repo isn't clean."
    exit 2
fi

exit 10

# Current version
ver=$(cat VERSION)

# Add one.
newver=$(( ${ver} + 1 ))

# New version
echo $newver > VERSION

git add VERSION

git commit -m "Bumped stable to version ${newver}"
git tag "stable-${newver}"
git checkout stable
git merge master
git checkout master
git push --tags

# EOF

{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.010185185185185186, 'mean_word_length': 3.324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '5235983', 'n_tokens_mistral': 398, 'n_tokens_neox': 383, 'n_words': 159}