<commit_before>#!/bin/bash 
#
# Compiles the C# source tree using the Unity compiler to check if the
# the Unity version of Mono has all the dependencies you are using.
#

TARGET=$1
UNITYENGINEDLLPATH="/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll"
UNITYCOMPILERPATH="/Applications/Unity/Unity.app/Contents/Frameworks/Mono/bin/smcs"
OUTPUTPATH="/tmp/tenp_mono.exe"

echo "Checking target for Unity Compatibility..."
echo "TARGET: $TARGET"
find $TARGET -type d \( -path $TARGET/obj -o -path $TARGET/bin \) -prune -o -name '*.cs' -print0 | \
        xargs -0 $UNITYCOMPILERPATH -r:$UNITYENGINEDLLPATH  -out:$OUTPUTPATH -target:library;<commit_msg>Added nunit to the unity-check script.<commit_after>#!/bin/bash 
#
# Compiles the C# source tree using the Unity compiler to check if the
# the Unity version of Mono has all the dependencies you are using.
#
# TODO!: Make this work for Windows machines
# TODO!: Make less ugly hard coded paths

TARGET=$1
UNITYENGINEDLLPATH="/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll"
NUNITDLLPATH="/Applications/Xamarin Studio.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.framework.dll"
UNITYCOMPILERPATH="/Applications/Unity/Unity.app/Contents/Frameworks/Mono/bin/smcs"
OUTPUTPATH="/tmp/tenp_mono.exe"

echo "Checking target for Unity Compatibility..."
echo "TARGET: $TARGET"
find $TARGET -type d \( -path $TARGET/obj -o -path $TARGET/bin \) -prune -o -name '*.cs' -print0 | \
        xargs -0 "$UNITYCOMPILERPATH" -r:"$UNITYENGINEDLLPATH" -r:"$NUNITDLLPATH"  -out:"$OUTPUTPATH" -target:library;
{'fraction_non_alphanumeric': 0.13174404015056462, 'fraction_numerical': 0.0037641154328732747, 'mean_word_length': 4.576923076923077, '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': '5473323', 'n_tokens_mistral': 557, 'n_tokens_neox': 526, 'n_words': 139}