<commit_before>#! /bin/sh

project="ci-build"

echo "Attempting to build $project for Windows"
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
  -batchmode \
  -nographics \
  -silent-crashes \
  -logFile $(pwd)/unity.log \
  -projectPath $(pwd) \
  -buildWindowsPlayer "$(pwd)/Build/windows/$project.exe" \
  -quit
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi

echo "Attempting to build $project for OS X"
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
  -batchmode \
  -nographics \
  -silent-crashes \
  -logFile $(pwd)/unity.log \
  -projectPath $(pwd) \
  -buildOSXUniversalPlayer "$(pwd)/Build/osx/$project.app" \
  -quit
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi

echo 'Logs from OS X build'
cat $(pwd)/unity.log

echo "Attempting to build $project for Linux"
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
  -batchmode \
  -nographics \
  -silent-crashes \
  -logFile $(pwd)/unity.log \
  -projectPath $(pwd) \
  -buildLinuxUniversalPlayer "$(pwd)/Build/linux/$project.exe" \
  -quit
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi

echo 'Logs from build'
cat $(pwd)/unity.log
<commit_msg>update logging to include ISO datetime<commit_after>#! /bin/sh

project="ci-build"

LOGDATE=$(date +%Y-%m-%dT%H:%M:%S%z)
echo "Attempting to build $project for Windows"
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
  -batchmode \
  -nographics \
  -silent-crashes \
  -logFile $(pwd)/unity-build-$LOGDATE.log \
  -projectPath $(pwd) \
  -buildWindowsPlayer "$(pwd)/Build/windows/$project.exe" \
  -quit
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi

echo "Attempting to build $project for OS X"
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
  -batchmode \
  -nographics \
  -silent-crashes \
  -logFile $(pwd)/unity-build-$LOGDATE.log \
  -projectPath $(pwd) \
  -buildOSXUniversalPlayer "$(pwd)/Build/osx/$project.app" \
  -quit
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi

echo 'Logs from OS X build'
cat $(pwd)/unity.log

echo "Attempting to build $project for Linux"
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
  -batchmode \
  -nographics \
  -silent-crashes \
  -logFile $(pwd)/unity-build-$LOGDATE.log \
  -projectPath $(pwd) \
  -buildLinuxUniversalPlayer "$(pwd)/Build/linux/$project.exe" \
  -quit
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi

echo 'Logs from build'
cat $(pwd)/unity.log

{'fraction_non_alphanumeric': 0.1790468012022327, 'fraction_numerical': 0.0025762129669386004, 'mean_word_length': 3.2673992673992673, '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': '4405360', 'n_tokens_mistral': 929, 'n_tokens_neox': 880, 'n_words': 199}