<commit_before>#!/bin/bash

# Find the directory we exist within
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd ${DIR}

: ${GOPATH:="${HOME}/.go_workspace"}

if [ ! -z ${CIRCLECI} ] ; then
  : ${CHECKOUT:="/home/ubuntu/${CIRCLE_PROJECT_REPONAME}"}
else
  : ${CHECKOUT:="${DIR}/.."}
fi

export PATH=$GOPATH/bin:$PATH

mkdir -p artifacts
bundle install


# link our checked out code to our gopath.
rm -rf $GOPATH/src/github.com/raintank/raintank-metric
ln -s $(dirname $(readlink -e $CHECKOUT)) $GOPATH/src/github.com/raintank/raintank-metric


for VAR in nsq_probe_events_to_elasticsearch metric_tank; do
	$GOPATH/src/github.com/raintank/raintank-metric
	go get -t -d ./...
	cd ${DIR}
done<commit_msg>fix typo on depends.sh<commit_after>#!/bin/bash

# Find the directory we exist within
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd ${DIR}

: ${GOPATH:="${HOME}/.go_workspace"}

if [ ! -z ${CIRCLECI} ] ; then
  : ${CHECKOUT:="/home/ubuntu/${CIRCLE_PROJECT_REPONAME}"}
else
  : ${CHECKOUT:="${DIR}/.."}
fi

export PATH=$GOPATH/bin:$PATH

mkdir -p artifacts
bundle install


# link our checked out code to our gopath.
rm -rf $GOPATH/src/github.com/raintank/raintank-metric
ln -s $(dirname $(readlink -e $CHECKOUT)) $GOPATH/src/github.com/raintank/raintank-metric


for VAR in nsq_probe_events_to_elasticsearch metric_tank; do
	cd $GOPATH/src/github.com/raintank/raintank-metric
	go get -t -d ./...
	cd ${DIR}
done
{'fraction_non_alphanumeric': 0.17946927374301677, 'fraction_numerical': 0.0013966480446927375, 'mean_word_length': 4.268382352941177, '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': '2075994', 'n_tokens_mistral': 584, 'n_tokens_neox': 551, 'n_words': 127}