<commit_before># Package tarballs per arch.
# FIXME: Parameterize this, but not important right now

set -e

# Geese?
GOOSES="darwin linux freebsd"
GOARCHS="amd64"

GIT_COMMIT_SHA1=`git rev-parse --short HEAD`

mkdir -p artifacts

ARTIFACTS=`pwd`/artifacts

for os in ${GOOSES}
do
    for arch in ${GOARCHS}
    do
        echo "**** Building $os.$arch ****"
        BINDIR="bin/$os/$arch"
        GOOS=$os GOARCH=$arch godep go build -o bin/$os/$arch/henchman
        cp -R modules ${BINDIR} 
        cd ${BINDIR}
        tar -cvf "henchman.${GIT_COMMIT_SHA1}.${os}.${arch}.tar.gz" henchman modules
        cp *.tar.gz ${ARTIFACTS}
        cd -
    done
done

echo "Copying artifacts"
cp -r ${ARTIFACTS}/* $CIRCLE_ARTIFACTS

echo "Cleaning up..."
rm -rf bin/<commit_msg>added -race flag to package.sh to build a race detector to test for JSON input error<commit_after># Package tarballs per arch.
# FIXME: Parameterize this, but not important right now

set -e

# Geese?
GOOSES="darwin linux freebsd"
GOARCHS="amd64"

GIT_COMMIT_SHA1=`git rev-parse --short HEAD`

mkdir -p artifacts

ARTIFACTS=`pwd`/artifacts

for os in ${GOOSES}
do
    for arch in ${GOARCHS}
    do
        echo "**** Building $os.$arch ****"
        BINDIR="bin/$os/$arch"
        GOOS=$os GOARCH=$arch godep go build -race -o bin/$os/$arch/henchman
        cp -R modules ${BINDIR} 
        cd ${BINDIR}
        tar -cvf "henchman.${GIT_COMMIT_SHA1}.${os}.${arch}.tar.gz" henchman modules
        cp *.tar.gz ${ARTIFACTS}
        cd -
    done
done

echo "Copying artifacts"
cp -r ${ARTIFACTS}/* $CIRCLE_ARTIFACTS

echo "Cleaning up..."
rm -rf bin/
{'fraction_non_alphanumeric': 0.13897467572575664, 'fraction_numerical': 0.004941321803582459, 'mean_word_length': 2.875598086124402, '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': '1239148', 'n_tokens_mistral': 635, 'n_tokens_neox': 598, 'n_words': 173}