<commit_before>#!/bin/sh

platformVersion=$1

if [ -z "$platformVersion" ]; then
        echo "\nError: Target platform must be provided.\n\nValid platform choices:\n\t- ios\n\t- android\n"
        exit 1
fi

if [ $platformVersion == ios ]; then
    echo "Building iOS examples..."
    rm -rf "./ios/Include"
    rm -rf "./ios/build"
    ./update.platform.sh ios
    pushd ios
    ./build.sh
    popd
elif [ $platformVersion == android ]; then
    echo "Building Android examples..."
    rm -rf "./android/libs"
    rm -rf "./android/obj"
    rm -rf "./android/bin"
    ./update.platform.sh android
    pushd android
    ./build.sh
    popd
else
    echo "Error: Build platform must be 'ios' or 'android'"
    exit 1
fi<commit_msg>Exit 1 on platform build failure.<commit_after>#!/bin/sh

platformVersion=$1

if [ -z "$platformVersion" ]; then
        echo "\nError: Target platform must be provided.\n\nValid platform choices:\n\t- ios\n\t- android\n"
        exit 1
fi

if [ $platformVersion == ios ]; then
    echo "Building iOS examples..."
    rm -rf "./ios/Include"
    rm -rf "./ios/build"
    ./update.platform.sh ios
    pushd ios
    ./build.sh
    if [ $? = 1 ] ; then
        popd
        exit 1
    fi
    popd
elif [ $platformVersion == android ]; then
    echo "Building Android examples..."
    rm -rf "./android/libs"
    rm -rf "./android/obj"
    rm -rf "./android/bin"
    ./update.platform.sh android
    pushd android
    ./build.sh
    if [ $? = 1 ] ; then
        popd
        exit 1
    fi
    popd
else
    echo "Error: Build platform must be 'ios' or 'android'"
    exit 1
fi
{'fraction_non_alphanumeric': 0.1379525593008739, 'fraction_numerical': 0.00686641697877653, 'mean_word_length': 2.0417457305502844, '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': '1382714', 'n_tokens_mistral': 537, 'n_tokens_neox': 519, 'n_words': 170}