<commit_before>#!/usr/bin/env bash

dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

reset=`tput sgr0`
green=`tput setaf 2`
yellow=`tput setaf 3`

target=$1
go_dir=${target}/go

revision=2511afe36f5e3276963fda7e8a431e4c0f330702

bin='vamp-gateway-agent'
export GOOS='linux'
export GOARCH='amd64'
mkdir -p ${go_dir}
export GOPATH=${go_dir}

echo "${green}Cloning Vamp Gateway Agent to ${target}...${reset}"
mkdir -p ${go_dir}/src/github.com && cd ${go_dir}/src/github.com
git clone <EMAIL>:magneticio/vamp-gateway-agent.git
cd ${go_dir}/src/github.com/vamp-gateway-agent && git checkout ${revision} .

echo "${green}Building ${GOOS}:${GOARCH} ${yellow}${bin}${reset}"
go get github.com/tools/godep
godep restore
go install
go build

echo "${green}copying files...${reset}"<commit_msg>vamp gateway agent update - haproxy 1.6<commit_after>#!/usr/bin/env bash

dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

reset=`tput sgr0`
green=`tput setaf 2`
yellow=`tput setaf 3`

target=$1
go_dir=${target}/go

revision=12778be62e4f1c4f4b6036e976497d42e8a5a78b

bin='vamp-gateway-agent'
export GOOS='linux'
export GOARCH='amd64'
mkdir -p ${go_dir}
export GOPATH=${go_dir}

echo "${green}Cloning Vamp Gateway Agent to ${target}...${reset}"
mkdir -p ${go_dir}/src/github.com && cd ${go_dir}/src/github.com
git clone <EMAIL>:magneticio/vamp-gateway-agent.git
cd ${go_dir}/src/github.com/vamp-gateway-agent && git checkout ${revision} .

echo "${green}Building ${GOOS}:${GOARCH} ${yellow}${bin}${reset}"
go get github.com/tools/godep
godep restore
go install
go build

echo "${green}copying files...${reset}"
{'fraction_non_alphanumeric': 0.18781094527363185, 'fraction_numerical': 0.043532338308457715, 'mean_word_length': 5.905579399141631, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6366062', 'n_tokens_mistral': 700, 'n_tokens_neox': 620, 'n_words': 132}