<commit_before>#!/bin/sh -e

project=github.com/couchbaselabs/cbft
projectCmd=$project/cmd/cbft
top=`go list -f '{{.Dir}}' $project`
version=`git describe`

cd $top

DIST=$top/dist

testProject() {
    go test $project/...
    go vet $project/...
}

emitVersion() {
    echo "{\"version\": \"$version\"}" > $DIST/version.json
}

build() {
    goflags="-v -ldflags '-X main.VERSION $version'"

    eval env GOOS=linux   GOARCH=386         go build $goflags -o $DIST/cbft.linux.386 $projectCmd &
    eval env GOOS=linux   GOARCH=arm         go build $goflags -o $DIST/cbft.linux.arm $projectCmd &
    eval env GOOS=linux   GOARCH=arm GOARM=5 go build $goflags -o $DIST/cbft.linux.arm5 $projectCmd &<commit_msg>added debug tags to dist.sh<commit_after>#!/bin/sh -e

project=github.com/couchbaselabs/cbft
projectCmd=$project/cmd/cbft
top=`go list -f '{{.Dir}}' $project`
version=`git describe`

cd $top

DIST=$top/dist

testProject() {
    go test $project/...
    go vet $project/...
}

emitVersion() {
    echo "{\"version\": \"$version\"}" > $DIST/version.json
}

build() {
    goflags="-v -ldflags '-X main.VERSION $version' -tags debug"

    eval env GOOS=linux   GOARCH=386         go build $goflags -o $DIST/cbft.linux.386 $projectCmd &
    eval env GOOS=linux   GOARCH=arm         go build $goflags -o $DIST/cbft.linux.arm $projectCmd &
    eval env GOOS=linux   GOARCH=arm GOARM=5 go build $goflags -o $DIST/cbft.linux.arm5 $projectCmd &
{'fraction_non_alphanumeric': 0.1608876560332871, 'fraction_numerical': 0.011095700416088766, 'mean_word_length': 3.15850144092219, 'pattern_counts': {'":': 2, '<': 3, '<?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': '4171677', 'n_tokens_mistral': 559, 'n_tokens_neox': 528, 'n_words': 132}