<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

mkdir -p ${GOPATH}/src/github.com/grafana/grafana
mv ${GOPATH}/src/github.com/grafana/grafana ${GOPATH}/src/github.com/grafana/grafana-bak
#mkdir -p ${GOPATH}/src/github.com/raintank
#cd ${GOPATH}/src/github.com/raintank
#git clone https://github.com/raintank/grafana.git
#echo "raintank"
#ls ${GOPATH}/src/github.com/raintank
#echo "grafana"
#ls ${GOPATH}/src/github.com/grafana
ln -s ${GOPATH}/src/github.com/raintank/grafana ${GOPATH}/src/github.com/grafana/grafana
# Only until this is done being in a different branch
cd ${GOPATH}/src/github.com/raintank/grafana
go run build.go setup
godep restore

# it, erm, seems to not be finding all of the dependencies right now
go get github.com/nsqio/go-nsq
go get github.com/tinylib/msgp/msgp
go get github.com/ctdk/goas/v2/logger
go get github.com/jessevdk/go-flags
go get github.com/BurntSushi/toml
go get github.com/mattbaird/elastigo/lib
go get gopkg.in/redis.v2
go get github.com/bitly/go-hostpool<commit_msg>This has to happen sometimes too, looks like? Arrrgh<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

mkdir -p ${GOPATH}/src/github.com/grafana/grafana
mv ${GOPATH}/src/github.com/grafana/grafana ${GOPATH}/src/github.com/grafana/grafana-bak
mkdir -p ${GOPATH}/src/github.com/raintank
cd ${GOPATH}/src/github.com/raintank
git clone https://github.com/raintank/grafana.git
#echo "raintank"
#ls ${GOPATH}/src/github.com/raintank
#echo "grafana"
#ls ${GOPATH}/src/github.com/grafana
ln -s ${GOPATH}/src/github.com/raintank/grafana ${GOPATH}/src/github.com/grafana/grafana
# Only until this is done being in a different branch
cd ${GOPATH}/src/github.com/raintank/grafana
go run build.go setup
godep restore

# it, erm, seems to not be finding all of the dependencies right now
go get github.com/nsqio/go-nsq
go get github.com/tinylib/msgp/msgp
go get github.com/ctdk/goas/v2/logger
go get github.com/jessevdk/go-flags
go get github.com/BurntSushi/toml
go get github.com/mattbaird/elastigo/lib
go get gopkg.in/redis.v2
go get github.com/bitly/go-hostpool
{'fraction_non_alphanumeric': 0.1620715350223547, 'fraction_numerical': 0.0022354694485842027, 'mean_word_length': 4.582120582120582, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7079578', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1069, 'n_words': 229}