<commit_before>#!/bin/bash

# Simple packaging of orchestrator
#
# Requires fpm: https://github.com/jordansissel/fpm
#

release_version="1.3.7"
release_dir=/tmp/orchestrator-release
release_files_dir=$release_dir/orchestrator
rm -rf $release_dir/*
mkdir -p $release_files_dir/
mkdir -p $release_files_dir/usr/local
mkdir -p $release_files_dir/etc/init.d

cd  $(dirname $0)
for f in $(find . -name "*.go"); do go fmt $f; done

rsync -av ./resources $release_files_dir/usr/local/orchestrator/
rsync -av ./conf $release_files_dir/usr/local/orchestrator/
for f in $release_files_dir/usr/local/orchestrator/conf/*; do mv $f $f.sample; done
cp etc/init.d/orchestrator.bash $release_files_dir/etc/init.d/orchestrator
chmod +x $release_files_dir/etc/init.d/orchestrator


GOPATH=/usr/share/golang:$(pwd)
go build -o $release_files_dir/usr/local/orchestrator/orchestrator ./src/github.com/outbrain/orchestrator/main.go

if [[ $? -ne 0 ]] ; then
	exit 1<commit_msg>updated version number<commit_after>#!/bin/bash

# Simple packaging of orchestrator
#
# Requires fpm: https://github.com/jordansissel/fpm
#

release_version="1.3.8"
release_dir=/tmp/orchestrator-release
release_files_dir=$release_dir/orchestrator
rm -rf $release_dir/*
mkdir -p $release_files_dir/
mkdir -p $release_files_dir/usr/local
mkdir -p $release_files_dir/etc/init.d

cd  $(dirname $0)
for f in $(find . -name "*.go"); do go fmt $f; done

rsync -av ./resources $release_files_dir/usr/local/orchestrator/
rsync -av ./conf $release_files_dir/usr/local/orchestrator/
for f in $release_files_dir/usr/local/orchestrator/conf/*; do mv $f $f.sample; done
cp etc/init.d/orchestrator.bash $release_files_dir/etc/init.d/orchestrator
chmod +x $release_files_dir/etc/init.d/orchestrator


GOPATH=/usr/share/golang:$(pwd)
go build -o $release_files_dir/usr/local/orchestrator/orchestrator ./src/github.com/outbrain/orchestrator/main.go

if [[ $? -ne 0 ]] ; then
	exit 1
{'fraction_non_alphanumeric': 0.14069828035435122, 'fraction_numerical': 0.006253256904637832, 'mean_word_length': 4.7657657657657655, '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': '7158336', 'n_tokens_mistral': 761, 'n_tokens_neox': 752, 'n_words': 145}