<commit_before>#!/bin/bash

BUILD_DATE=`date +%Y-%m-%d\ %H:%M`
VERSIONFILE="pkg/version/version.go"
VERSION="1.0.4"


if [ "$1" == "local" ] || [ "$1" == "docker" ]; then

    if [ -e "$VERSIONFILE" ]; then 
        rm $VERSIONFILE
    fi
    mkdir -p pkg/version
    echo "package version" > $VERSIONFILE
    echo "const (" >> $VERSIONFILE
    echo "  VERSION = \"$VERSION \"" >> $VERSIONFILE
    echo "  BUILD_DATE = \"$BUILD_DATE\"" >> $VERSIONFILE
    echo ")" >> $VERSIONFILE
    
    glide install --strip-vendor --strip-vcs --update-vendored
    
	if [ "$1" == "local" ]; then 
        UNAME=$(uname)
        if [ "$UNAME" == "Darwin" ]; then
	        OS="darwin"
        elif [ "$UNAME" == "Linux" ]; then
	        OS="linux"
        fi
        
        echo Building apiserver-$OS-amd64
        GOOS=$OS GOARCH=amd64 go build -o build/bin/apiserver-$OS-amd64 ./cmd/server
        
        echo Building apictl-$OS-amd64
        GOOS=$OS GOARCH=amd64 go build -o build/bin/ndslabsctl-$OS-amd64 ./cmd/apictl
<commit_msg>Update build.sh<commit_after>#!/bin/bash

BUILD_DATE=`date +%Y-%m-%d\ %H:%M`
VERSIONFILE="pkg/version/version.go"
VERSION="1.0.5"


if [ "$1" == "local" ] || [ "$1" == "docker" ]; then

    if [ -e "$VERSIONFILE" ]; then 
        rm $VERSIONFILE
    fi
    mkdir -p pkg/version
    echo "package version" > $VERSIONFILE
    echo "const (" >> $VERSIONFILE
    echo "  VERSION = \"$VERSION \"" >> $VERSIONFILE
    echo "  BUILD_DATE = \"$BUILD_DATE\"" >> $VERSIONFILE
    echo ")" >> $VERSIONFILE
    
    glide install --strip-vendor --strip-vcs --update-vendored
    
	if [ "$1" == "local" ]; then 
        UNAME=$(uname)
        if [ "$UNAME" == "Darwin" ]; then
	        OS="darwin"
        elif [ "$UNAME" == "Linux" ]; then
	        OS="linux"
        fi
        
        echo Building apiserver-$OS-amd64
        GOOS=$OS GOARCH=amd64 go build -o build/bin/apiserver-$OS-amd64 ./cmd/server
        
        echo Building apictl-$OS-amd64
        GOOS=$OS GOARCH=amd64 go build -o build/bin/ndslabsctl-$OS-amd64 ./cmd/apictl

{'fraction_non_alphanumeric': 0.17461089494163423, 'fraction_numerical': 0.017509727626459144, 'mean_word_length': 2.209048361934477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '1258081', 'n_tokens_mistral': 760, 'n_tokens_neox': 717, 'n_words': 161}