<commit_before>#!/usr/bin/env bash

PROJECT_ROOT=../..

# Build the framework and record any errors.
BUILDERRORS=$(xcodebuild -project $PROJECT_ROOT/SwiftShell.xcodeproj/ 2>&1 >/dev/null)

# If there were any errors (exit code is not 0), print them and exit.
if [ $? -ne 0 ]; then
	printf "$BUILDERRORS \n"
	exit 1
fi

# Make sure the swiftshell script will use the newly built framework.
export DYLD_FRAMEWORK_PATH=$PROJECT_ROOT/build/Release/

# Import the unit testing script.<commit_msg>Shell tests use new Xcode project.<commit_after>#!/usr/bin/env bash

PROJECT_ROOT=../..

# Build the framework and record any errors.
BUILDERRORS=$(xcodebuild -project $PROJECT_ROOT/SwiftShell2.xcodeproj/ 2>&1 >/dev/null)

# If there were any errors (exit code is not 0), print them and exit.
if [ $? -ne 0 ]; then
	printf "$BUILDERRORS \n"
	exit 1
fi

# Make sure the swiftshell script will use the newly built framework.
export DYLD_FRAMEWORK_PATH=$PROJECT_ROOT/build/Release/

# Import the unit testing script.
{'fraction_non_alphanumeric': 0.10856573705179283, 'fraction_numerical': 0.010956175298804782, 'mean_word_length': 4.2072538860103625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '508397', 'n_tokens_mistral': 343, 'n_tokens_neox': 330, 'n_words': 118}