<commit_before>#!/bin/bash -e

# Copyright (c) 2013, <NAME>
# All rights reserved.

[ "$#" == "4" ] || { echo "usage: $0 <build-dir> <lib> <dir> <install-dir>"; exit 1; }

BUILD_DIR="$1"
LIBNAME="$2"
DIRNAME="$3"
INSTALL_DIR="$4"

COMMON_DIR="${BUILD_DIR}/bin.v2/libs/${DIRNAME}/build"

IPHONE_DEBUG=`find "${COMMON_DIR}/darwin-iphoneos/debug" -name "libboost_${LIBNAME}*"`
IPHONE_RELEASE=`find "${COMMON_DIR}/darwin-iphoneos/release" -name "libboost_${LIBNAME}*"`

SIM_DEBUG=`find "${COMMON_DIR}/darwin-iphonesimulator/debug" -name "libboost_${LIBNAME}*"`
SIM_RELEASE=`find "${COMMON_DIR}/darwin-iphonesimulator/release" -name "libboost_${LIBNAME}*"`

echo "IPHONE_DEBUG: $IPHONE_DEBUG"
echo "IPHONE_RELEASE: $IPHONE_RELEASE"
echo "SIM_DEBUG: $SIM_DEBUG"
echo "SIM_RELEASE: $SIM_RELEASE"

DEBUG=`basename ${SIM_DEBUG}`
RELEASE=`basename ${SIM_RELEASE}`

lipo -create "${IPHONE_DEBUG}" "${SIM_DEBUG}" -o "${INSTALL_DIR}/${DEBUG}"
lipo -create "${IPHONE_RELEASE}" "${SIM_RELEASE}" -o "${INSTALL_DIR}/${RELEASE}"

echo "Done: ${INSTALL_DIR}/{${DEBUG}, ${RELEASE}}"<commit_msg>Fix ios library search<commit_after>#!/bin/bash -e

# Copyright (c) 2013, <NAME>
# All rights reserved.

[ "$#" == "4" ] || { echo "usage: $0 <build-dir> <lib> <dir> <install-dir>"; exit 1; }

BUILD_DIR="$1"
LIBNAME="$2"
DIRNAME="$3"
INSTALL_DIR="$4"

COMMON_DIR="${BUILD_DIR}/bin.v2/libs/${DIRNAME}/build"

IPHONE_DEBUG=`find "${COMMON_DIR}/darwin-iphoneos/debug" -name "libboost_${LIBNAME}[^_]*.a"`
IPHONE_RELEASE=`find "${COMMON_DIR}/darwin-iphoneos/release" -name "libboost_${LIBNAME}[^_]*.a"`

SIM_DEBUG=`find "${COMMON_DIR}/darwin-iphonesimulator/debug" -name "libboost_${LIBNAME}[^_]*.a"`
SIM_RELEASE=`find "${COMMON_DIR}/darwin-iphonesimulator/release" -name "libboost_${LIBNAME}[^_]*.a"`

echo "IPHONE_DEBUG: $IPHONE_DEBUG"
echo "IPHONE_RELEASE: $IPHONE_RELEASE"
echo "SIM_DEBUG: $SIM_DEBUG"
echo "SIM_RELEASE: $SIM_RELEASE"

DEBUG=`basename ${SIM_DEBUG}`
RELEASE=`basename ${SIM_RELEASE}`

lipo -create "${IPHONE_DEBUG}" "${SIM_DEBUG}" -o "${INSTALL_DIR}/${DEBUG}"
lipo -create "${IPHONE_RELEASE}" "${SIM_RELEASE}" -o "${INSTALL_DIR}/${RELEASE}"

echo "Done: ${INSTALL_DIR}/{${DEBUG}, ${RELEASE}}"
{'fraction_non_alphanumeric': 0.22191655204034846, 'fraction_numerical': 0.011004126547455296, 'mean_word_length': 7.5234375, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7538384', 'n_tokens_mistral': 933, 'n_tokens_neox': 854, 'n_words': 146}