<commit_before>#!/bin/bash

set -e

CWD=`pwd`


do_build() {
	echo "Building NAPCOMP..."
        rm -rf $OUTPUT
	mkdir -p $OUTPUT
	cd $CWD
	cd ./app/napcomp
	go get
	GOOS="$GOOS" GOARCH="$GOARCH" go build -ldflags="$LDFLAGS" -o $OUTPUT/$HARNESS
	cd ..
	rsync -a napcomp/in $OUTPUT/
	mkdir -p $OUTPUT/in
	mkdir -p $OUTPUT/in/results
	# rsync -a naprrql/in/*.xml.zip  $OUTPUT/in/results
}

do_zip() {
	cd $OUTPUT
	cd ..
	zip -qr ../$ZIP napcomp
	cd $CWD
}

build_mac64() {
	# MAC OS X (64 only)
	echo "Building Mac binaries..."
	GOOS=darwin
	GOARCH=amd64
	LDFLAGS="-s -w"
	OUTPUT=$CWD/build/Mac/napcomp
	# GNATS=nats-streaming-server<commit_msg>Restored napcomp/results sample file; closes #68<commit_after>#!/bin/bash

set -e

CWD=`pwd`


do_build() {
	echo "Building NAPCOMP..."
        rm -rf $OUTPUT
	mkdir -p $OUTPUT
	cd $CWD
	cd ./app/napcomp
	go get
	GOOS="$GOOS" GOARCH="$GOARCH" go build -ldflags="$LDFLAGS" -o $OUTPUT/$HARNESS
	cd ..
	rsync -a napcomp/in $OUTPUT/
	mkdir -p $OUTPUT/in
	mkdir -p $OUTPUT/in/results
	rsync -a naprrql/in/*.xml.zip  $OUTPUT/in/results
}

do_zip() {
	cd $OUTPUT
	cd ..
	zip -qr ../$ZIP napcomp
	cd $CWD
}

build_mac64() {
	# MAC OS X (64 only)
	echo "Building Mac binaries..."
	GOOS=darwin
	GOARCH=amd64
	LDFLAGS="-s -w"
	OUTPUT=$CWD/build/Mac/napcomp
	# GNATS=nats-streaming-server
{'fraction_non_alphanumeric': 0.1652767247915087, 'fraction_numerical': 0.01061410159211524, 'mean_word_length': 3.024390243902439, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '180985', 'n_tokens_mistral': 607, 'n_tokens_neox': 568, 'n_words': 140}