<commit_before>#!/bin/bash

set -e

export ROOT_HOME=$(cd `dirname "$0"` && cd .. && pwd)

export GOPATH=$ROOT_HOME/vendor

export BOLT_HOME=$GOPATH/src/github.com/boltdb/bolt

if [[ "$GOROOT" == "" ]]; then
  GO=go
else
  GO=$GOROOT/bin/go
fi

if [[ "$1" == "clean" ]]; then
  echo --------------------
  echo Clean
  echo --------------------

  rm -rf $GOPATH/pkg
fi

echo --------------------
echo Build Bolt
echo --------------------

cd $GOPATH

if [[ "$OSTYPE" == "darwin"* ]]; then
  BOLT_FILE=libbolt.dylib
  BOLT_ARCH=darwin
  OUTPUT_LEVELDB_FILE=

  $GO build -o pkg/protonail.com/bolt-jna/$BOLT_FILE -buildmode=c-shared protonail.com/bolt-jna
elif [[ "$OSTYPE" == "linux"* ]]; then<commit_msg>Display path to custom GOROOT if it is specified<commit_after>#!/bin/bash

set -e

export ROOT_HOME=$(cd `dirname "$0"` && cd .. && pwd)

export GOPATH=$ROOT_HOME/vendor

export BOLT_HOME=$GOPATH/src/github.com/boltdb/bolt

if [[ "$GOROOT" == "" ]]; then
  GO=go
else
  GO=$GOROOT/bin/go

  echo "Custom GOROOT: $GOROOT"
fi

if [[ "$1" == "clean" ]]; then
  echo --------------------
  echo Clean
  echo --------------------

  rm -rf $GOPATH/pkg
fi

echo --------------------
echo Build Bolt
echo --------------------

cd $GOPATH

if [[ "$OSTYPE" == "darwin"* ]]; then
  BOLT_FILE=libbolt.dylib
  BOLT_ARCH=darwin
  OUTPUT_LEVELDB_FILE=

  $GO build -o pkg/protonail.com/bolt-jna/$BOLT_FILE -buildmode=c-shared protonail.com/bolt-jna
elif [[ "$OSTYPE" == "linux"* ]]; then
{'fraction_non_alphanumeric': 0.2598105548037889, 'fraction_numerical': 0.0027063599458728013, 'mean_word_length': 2.3461538461538463, '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': '2800387', 'n_tokens_mistral': 601, 'n_tokens_neox': 575, 'n_words': 123}