<commit_before>#!/bin/sh
START_TIME=`date +%s`

RUNDIR=$(pwd)

cd $(dirname ${0})
COMMIT_ID=`git --no-pager log --format="%H" -n 1`

cd ${RUNDIR}

BUILD_DATE=`date -u +%d.%m.%Y`
BUILD_TIME=`date -u +%H:%M:%S`

LDFLAGS="-X main.CommitID=${COMMIT_ID}"
LDFLAGS+=" -X main.BuildDate=${BUILD_DATE}"
LDFLAGS+=" -X main.BuildTime=${BUILD_TIME}"

mkdir -p ${GOPATH}/bin

go build -ldflags "${LDFLAGS}" -o ${GOPATH}/bin/henhouse github.com/jollheef/henhouse
go build -ldflags "${LDFLAGS}" -o ${GOPATH}/bin/henhousectl github.com/jollheef/henhouse/cli/henhousectl

END_TIME=`date +%s`
RUN_TIME=$((END_TIME-START_TIME))
echo "Build done in ${RUN_TIME}s"<commit_msg>Fix LDFLAGS<commit_after>#!/bin/sh
START_TIME=`date +%s`

RUNDIR=$(pwd)

cd $(dirname ${0})
COMMIT_ID=`git --no-pager log --format="%H" -n 1`

cd ${RUNDIR}

BUILD_DATE=`date -u +%d.%m.%Y`
BUILD_TIME=`date -u +%H:%M:%S`

LDFLAGS="-X main.CommitID=${COMMIT_ID}"
LDFLAGS="${LDFLAGS} -X main.BuildDate=${BUILD_DATE}"
LDFLAGS="${LDFLAGS} -X main.BuildTime=${BUILD_TIME}"

mkdir -p ${GOPATH}/bin

go build -ldflags "${LDFLAGS}" -o ${GOPATH}/bin/henhouse github.com/jollheef/henhouse
go build -ldflags "${LDFLAGS}" -o ${GOPATH}/bin/henhousectl github.com/jollheef/henhouse/cli/henhousectl

END_TIME=`date +%s`
RUN_TIME=$((END_TIME-START_TIME))
echo "Build done in ${RUN_TIME}s"
{'fraction_non_alphanumeric': 0.21601208459214502, 'fraction_numerical': 0.0030211480362537764, 'mean_word_length': 5.691919191919192, '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': '4238129', 'n_tokens_mistral': 574, 'n_tokens_neox': 550, 'n_words': 108}