<commit_before><commit_msg>Temporary shell script for merging archives into a fat lib added<commit_after># http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

TARGET_NAME="wrappers"

CONFIGURATION=Release
DEVICE=iphoneos
SIMULATOR=iphonesimulator
FAT=universal
OUTPUT=build
LIBRARY_NAME=lib${TARGET_NAME}.a
HEADERS_DIR_NAME=headers

for sdk in ${DEVICE} ${SIMULATOR}
do
  xcodebuild -sdk $sdk -configuration ${CONFIGURATION} -target ${TARGET_NAME} -verbose
done

device_output=${OUTPUT}/${CONFIGURATION}-${DEVICE}
simulator_output=${OUTPUT}/${CONFIGURATION}-${SIMULATOR}
fatlib_output=${OUTPUT}/${CONFIGURATION}-${FAT}

rm -rf "${fatlib_output}"
mkdir -p "${fatlib_output}"
lipo -create -output "${fatlib_output}/${LIBRARY_NAME}" "${device_output}/${LIBRARY_NAME}" "${simulator_output}/${LIBRARY_NAME}"

#headers_dir="${fatlib_output}/${HEADERS_DIR_NAME}"
#mkdir -p "${headers_dir}"
#cp ${TARGET_NAME}/*.h "${headers_dir}"

#open "${fatlib_output}"
{'fraction_non_alphanumeric': 0.16733067729083664, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 8.481132075471699, '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': '5497866', 'n_tokens_mistral': 361, 'n_tokens_neox': 339, 'n_words': 59}