<commit_before>#! /bin/bash
set -e errexit
set -o pipefail

IOS_DEST="platform=iOS Simulator,name=iPhone 6,OS=10.2"
xcodebuild -scheme EonilToolbox-iOS -destination "$IOS_DEST" -configuration Debug clean build test
xcodebuild -scheme EonilToolbox-iOS -destination "$IOS_DEST" -configuration Release clean build

xcodebuild -scheme EonilToolbox-OSX -configuration Debug clean build test
xcodebuild -scheme EonilToolbox-OSX -configuration Release clean build

<commit_msg>Fix test script to use any random available simulator.<commit_after>#! /bin/bash
set -e errexit
set -o pipefail

#IOS_DEST="platform=iOS Simulator,name=iPhone 6,OS=latest"
IOS_DEST=id=`instruments -s devices | grep "iPhone" | grep "Simulator" | tail -1 | grep -o "\[.*\]" | tr -d "[]"`
xcodebuild -scheme EonilToolbox-iOS -destination "$IOS_DEST" -configuration Debug clean build test
xcodebuild -scheme EonilToolbox-iOS -destination "$IOS_DEST" -configuration Release clean build

xcodebuild -scheme EonilToolbox-OSX -configuration Debug clean build test
xcodebuild -scheme EonilToolbox-OSX -configuration Release clean build


{'fraction_non_alphanumeric': 0.0965391621129326, 'fraction_numerical': 0.00546448087431694, 'mean_word_length': 5.464705882352941, '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': '4382402', 'n_tokens_mistral': 368, 'n_tokens_neox': 349, 'n_words': 111}