<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
cd ${GOPATH}/src/github.com/raintank
git clone https://github.com/raintank/grafana.git
ln -s ${GOPATH}/src/github.com/raintank/grafana ${GOPATH}/src/grafana/grafana
# Only until this is done being in a different branch
cd ${GOPATH}/src/github.com/raintank/grafana
git checkout nsq
go run build.go setup
godep restore

go get github.com/bitly/go-nsq
go get github.com/tinylib/msgp/msgp
go get github.com/ctdk/goas/v2/logger<commit_msg>Get the right version, aaaarrrrgh<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
cd ${GOPATH}/src/github.com/raintank
git clone https://github.com/raintank/grafana.git
ln -s ${GOPATH}/src/github.com/raintank/grafana ${GOPATH}/src/grafana/grafana
# Only until this is done being in a different branch
cd ${GOPATH}/src/github.com/raintank/grafana
#git checkout nsq
go run build.go setup
godep restore

go get github.com/nsqio/go-nsq
go get github.com/tinylib/msgp/msgp
go get github.com/ctdk/goas/v2/logger
{'fraction_non_alphanumeric': 0.1723955579058699, 'fraction_numerical': 0.0021152829190904283, 'mean_word_length': 4.614243323442136, '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': '7099096', 'n_tokens_mistral': 793, 'n_tokens_neox': 752, 'n_words': 153}