<commit_before>#!/bin/bash

set -e

TMP=run/tmp
rm -rf build/bosun $TMP
git clone -b master --single-branch .. build/bosun
docker build -t bosun-build build
ID=$(docker run -d bosun-build)
mkdir -p $TMP/hbase $TMP/bosun $TMP/tsdb $TMP/scollector
docker cp ${ID}:/go/bin/bosun $TMP/bosun/.
docker cp ${ID}:/go/bin/scollector $TMP/scollector/.
docker cp ${ID}:/hbase $TMP
docker cp ${ID}:/tsdb $TMP
docker kill ${ID}
docker rm ${ID}
rm -rf $TMP/hbase/hbase-*/docs $TMP/tsdb/build/gwt-unitCache
cp -R ../web $TMP/bosun
docker build -t stackexchange/bosun run
rm -rf build/bosun $TMP
echo bosun docker image built
<commit_msg>Sync docker time on build<commit_after>#!/bin/bash

set -e

boot2docker=$(which boot2docker)
if [ -x "$boot2docker" ]; then
	boot2docker ssh sudo ntpclient -s -h pool.ntp.org
fi

TMP=run/tmp
rm -rf build/bosun $TMP
git clone -b master --single-branch .. build/bosun
docker build -t bosun-build build
ID=$(docker run -d bosun-build)
mkdir -p $TMP/hbase $TMP/bosun $TMP/tsdb $TMP/scollector
docker cp ${ID}:/go/bin/bosun $TMP/bosun/.
docker cp ${ID}:/go/bin/scollector $TMP/scollector/.
docker cp ${ID}:/hbase $TMP
docker cp ${ID}:/tsdb $TMP
docker kill ${ID}
docker rm ${ID}
rm -rf $TMP/hbase/hbase-*/docs $TMP/tsdb/build/gwt-unitCache
cp -R ../web $TMP/bosun
docker build -t stackexchange/bosun run
rm -rf build/bosun $TMP
echo bosun docker image built

{'fraction_non_alphanumeric': 0.15636363636363637, 'fraction_numerical': 0.002909090909090909, 'mean_word_length': 3.7777777777777777, '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': '5063773', 'n_tokens_mistral': 585, 'n_tokens_neox': 567, 'n_words': 164}