<commit_before>#!/bin/bash

path=`dirname $0`

#
# Checks exit value for error
# 
checkError() {
    if [ $? -ne 0 ]
    then
        echo "Exiting due to errors (above)"
        exit -1
    fi
}

# 
# Canonicalize relative paths to absolute paths
# 
pushd $path > /dev/null
dir=`pwd`
path=$dir
popd > /dev/null

# 
# Build plugin
# 
CONFIG=Release
TARGET=facebook
BINARY=lib$TARGET.a
OUTPUT_DIR=$path/../../build/$TARGET/ios

# Clean
xcodebuild -project "$path/Plugin.xcodeproj" -target $TARGET -configuration $CONFIG clean
checkError

rm -rf "$OUTPUT_DIR"
checkError

mkdir -p "$OUTPUT_DIR"
checkError

# iOS
xcodebuild -project "$path/Plugin.xcodeproj" -target $TARGET -configuration $CONFIG -sdk iphoneos6.0
checkError

# Xcode Simulator
xcodebuild -project "$path/Plugin.xcodeproj" -target $TARGET -configuration $CONFIG -sdk iphonesimulator6.0
checkError

# create universal binary
lipo -create "$path"/build/$CONFIG-iphoneos/$BINARY "$path"/build/$CONFIG-iphonesimulator/$BINARY -output "$OUTPUT_DIR"/$BINARY
checkError<commit_msg>iOS - remove build sensitivity latest SDK version - no casenum<commit_after>#!/bin/bash

path=`dirname $0`

#
# Checks exit value for error
# 
checkError() {
    if [ $? -ne 0 ]
    then
        echo "Exiting due to errors (above)"
        exit -1
    fi
}

# 
# Canonicalize relative paths to absolute paths
# 
pushd $path > /dev/null
dir=`pwd`
path=$dir
popd > /dev/null

# 
# Build plugin
# 
CONFIG=Release
TARGET=facebook
BINARY=lib$TARGET.a
OUTPUT_DIR=$path/../../build/$TARGET/ios

# Clean
xcodebuild -project "$path/Plugin.xcodeproj" -target $TARGET -configuration $CONFIG clean
checkError

rm -rf "$OUTPUT_DIR"
checkError

mkdir -p "$OUTPUT_DIR"
checkError

# iOS
xcodebuild -project "$path/Plugin.xcodeproj" -target $TARGET -configuration $CONFIG -sdk iphoneos
checkError

# Xcode Simulator
xcodebuild -project "$path/Plugin.xcodeproj" -target $TARGET -configuration $CONFIG -sdk iphonesimulator
checkError

# create universal binary
lipo -create "$path"/build/$CONFIG-iphoneos/$BINARY "$path"/build/$CONFIG-iphonesimulator/$BINARY -output "$OUTPUT_DIR"/$BINARY
checkError
{'fraction_non_alphanumeric': 0.1264747522416234, 'fraction_numerical': 0.004719207173194903, 'mean_word_length': 4.059665871121719, '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': '4767237', 'n_tokens_mistral': 736, 'n_tokens_neox': 719, 'n_words': 191}