<commit_before>#!/bin/bash
# Normal script execution starts here.
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$dir" || exit 1
source ".gosh.sh" || exit 1

assert-env-or-die GITHUB_TOKEN || exit 1
assert-env-or-die BELMGR_VERSION || exit 1
assert-env-or-die BELMGR_NAME || exit 1

release_archive="../belmgr-$BELMGR_VERSION.tar.bz2"
if [ ! -r "$release_archive" ]; then
    echo "$release_archive: No such file"
    exit 1
fi

cur_branch="$(git rev-parse --abbrev-ref HEAD)"
temp_remote_repo=$(basename "$0")

# Custom exit handler
# E.g.,
#    _exit 1
function _exit {
    echo -en "Removing temporary remote repository... "
    git remote rm "$temp_remote_repo" >/dev/null 2>&1
    echo "okay."
    exit "$1"
}
<commit_msg>source env.sh in release publication<commit_after>#!/bin/bash
# Normal script execution starts here.
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$dir" || exit 1
source "env.sh" || exit 1

assert-env-or-die GITHUB_TOKEN || exit 1
assert-env-or-die BELMGR_VERSION || exit 1
assert-env-or-die BELMGR_NAME || exit 1

release_archive="../belmgr-$BELMGR_VERSION.tar.bz2"
if [ ! -r "$release_archive" ]; then
    echo "$release_archive: No such file"
    exit 1
fi

cur_branch="$(git rev-parse --abbrev-ref HEAD)"
temp_remote_repo=$(basename "$0")

# Custom exit handler
# E.g.,
#    _exit 1
function _exit {
    echo -en "Removing temporary remote repository... "
    git remote rm "$temp_remote_repo" >/dev/null 2>&1
    echo "okay."
    exit "$1"
}

{'fraction_non_alphanumeric': 0.16342933690555927, 'fraction_numerical': 0.017414601473543203, 'mean_word_length': 3.7731629392971247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1045382', 'n_tokens_mistral': 566, 'n_tokens_neox': 533, 'n_words': 150}