<commit_before>#!/bin/bash

work_dir=`pwd`
package="etcdhooks"
now=`date +%m%d%Y%H%M`
tgtdir="$package-$now"

cd $GOPATH

# might fail... so it goes
mkdir -p $GOPATH/bin

# build the binary
go install github.com/tcotav/$package


# make deploy dir -- might exist
mkdir -p $GOPATH/deploy/$tgtdir

# copy over the binaries
cp $GOPATH/bin/etcdhooks $GOPATH/deploy/$tgtdir

# then get the scripts we want into the dir
cd $work_dir
cp *.sh  $GOPATH/deploy/$tgtdir

# now make archive
cd $GOPATH/deploy/

tar -czvf $tgtdir.tar.gz $tgtdir
rm -Rf $tgtdir
<commit_msg>added shasum:<commit_after>#!/bin/bash

work_dir=`pwd`
package="etcdhooks"
now=`date +%m%d%Y%H%M`
tgtdir="$package-$now"

cd $GOPATH

# might fail... so it goes
mkdir -p $GOPATH/bin

# build the binary
go install github.com/tcotav/$package


# make deploy dir -- might exist
mkdir -p $GOPATH/deploy/$tgtdir

# copy over the binaries
cp $GOPATH/bin/etcdhooks $GOPATH/deploy/$tgtdir

# then get the scripts we want into the dir
cd $work_dir
cp *.sh  $GOPATH/deploy/$tgtdir

# now make archive
cd $GOPATH/deploy/

tar -czvf $tgtdir.tar.gz $tgtdir
rm -Rf $tgtdir

shasum -a256 $tgtdir.tar.gz $tgtdir.tar.gz.sha  
{'fraction_non_alphanumeric': 0.1379605826906598, 'fraction_numerical': 0.002570694087403599, 'mean_word_length': 3.9914529914529915, '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': '5284547', 'n_tokens_mistral': 513, 'n_tokens_neox': 486, 'n_words': 131}