<commit_before>#!/bin/bash

# FIXME: create a .sln file that includes both projects
xbuild Pax_Lite.csproj /t:Rebuild && \
xbuild Pax.csproj /t:Rebuild && \
xbuild examples/Examples.csproj /t:Rebuild && \
xbuild examples/Hub.csproj /t:Rebuild && \
echo Success
<commit_msg>exposed compilation options to UI, and updated build script to pass them on after querying an environment variable;<commit_after>#!/bin/bash
# Rudimentary build script
# <NAME>, Cambridge University Computer Lab, July 2016
#
# FIXME: replace this with an .sln file

set -e

# NOTE to not have any symbols, instead of an empty ${DEFINE} use a dud one like "NOTHING"
if [ -z "${DEFINE}" ]
then
  # Default symbols
  DEFINE="DEBUG TRACE LITE"
fi

xbuild Pax_Lite.csproj /t:Rebuild /p:DefineConstants="${DEFINE}"
xbuild Pax.csproj /p:DefineConstants="${DEFINE}"
xbuild examples/Examples.csproj /p:DefineConstants="${DEFINE}"
xbuild examples/Hub.csproj /p:DefineConstants="${DEFINE}"

echo Success

{'fraction_non_alphanumeric': 0.11904761904761904, 'fraction_numerical': 0.004140786749482402, 'mean_word_length': 4.932515337423313, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6373770', 'n_tokens_mistral': 333, 'n_tokens_neox': 305, 'n_words': 103}