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

set -e

cd `dirname $0`

git checkout .
git pull --rebase
make clean
git clean -dfx
./configure --with-goroot=$HOME/bin/go/

modified=$(git ls-files --modified | wc -l)

if [ $modified -ne 0 ]; then
    echo "Please commit or stash all your changes and try to run this command again"
    exit 1
fi

git fetch --tags

if [ $# -lt 1 ]; then
    current_version=`git tag | grep -v rc | sort -V | tail -n1`
    current_version=${current_version#v}
    version=`echo $current_version | awk 'BEGIN {FS="."}; {print $1 "." $2 "." ++$3}'`
else
    version=$1
fi

echo -n "Release version $version ? [Y/n] "
read response
response=`echo $response | tr 'A-Z' 'a-z'`
if [ "x$response" == "xn" ]; then<commit_msg>make different submdoule version doesn't cause the release to stop<commit_after>#!/usr/bin/env bash

set -e

cd `dirname $0`

git checkout .
git pull --rebase
make clean
git clean -dfx
./configure --with-goroot=$HOME/bin/go/

git sumbodule update --init
modified=$(git ls-files --modified | wc -l)

if [ $modified -ne 0 ]; then
    echo "Please commit or stash all your changes and try to run this command again"
    exit 1
fi

git fetch --tags

if [ $# -lt 1 ]; then
    current_version=`git tag | grep -v rc | sort -V | tail -n1`
    current_version=${current_version#v}
    version=`echo $current_version | awk 'BEGIN {FS="."}; {print $1 "." $2 "." ++$3}'`
else
    version=$1
fi

echo -n "Release version $version ? [Y/n] "
read response
response=`echo $response | tr 'A-Z' 'a-z'`
if [ "x$response" == "xn" ]; then
{'fraction_non_alphanumeric': 0.15884244372990353, 'fraction_numerical': 0.01157556270096463, 'mean_word_length': 3.2054054054054055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6106226', 'n_tokens_mistral': 578, 'n_tokens_neox': 547, 'n_words': 198}