<commit_before>#!/bin/bash

CONTAINER="golang:1.7-alpine"
SOURCES="$GOPATH/src"
TARGET="$GOPATH/bin/alpine"
ATTRS="`bash version.sh`"

rm -rf $TARGET exchange
mkdir -p $TARGET/bin $TARGET/pkg

/usr/bin/docker run --rm --user `id -u $USER`:`id -g $USER` \
	--volume ${SOURCES}:/usr/p/src:ro \
	--volume $TARGET/pkg:/usr/p/pkg \
	--volume ${TARGET}/bin:/usr/p/bin \
	--workdir /usr/p/src/github.com/z0rr0/exchange \
	--env GOPATH=/usr/p \
	golang:1.7-alpine go install -v -ldflags "${ATTRS}" github.com/z0rr0/exchange

if [[ $? -gt 0 ]]; then
	echo "ERROR: build container"
	exit 1
fi
cp -v $TARGET/bin/exchange ./<commit_msg>docker alpine update to go1.8<commit_after>#!/bin/bash

CONTAINER="golang:1.8-alpine"
SOURCES="$GOPATH/src"
TARGET="$GOPATH/bin/alpine"
ATTRS="`bash version.sh`"

rm -rf $TARGET exchange
mkdir -p $TARGET/bin $TARGET/pkg

/usr/bin/docker run --rm --user `id -u $USER`:`id -g $USER` \
	--volume ${SOURCES}:/usr/p/src:ro \
	--volume $TARGET/pkg:/usr/p/pkg \
	--volume ${TARGET}/bin:/usr/p/bin \
	--workdir /usr/p/src/github.com/z0rr0/exchange \
	--env GOPATH=/usr/p \
	golang:1.7-alpine go install -v -ldflags "${ATTRS}" github.com/z0rr0/exchange

if [[ $? -gt 0 ]]; then
	echo "ERROR: build container"
	exit 1
fi
cp -v $TARGET/bin/exchange ./
{'fraction_non_alphanumeric': 0.20806962025316456, 'fraction_numerical': 0.01740506329113924, 'mean_word_length': 3.2736486486486487, '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': '4756065', 'n_tokens_mistral': 583, 'n_tokens_neox': 526, 'n_words': 112}