<commit_before>#!/bin/sh -v
PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin

function compressComponents(){
mkdir -p "$2"
cd $1
for itemName in *.component ; do
    itemLength=${#itemName}
    item=${itemName:0:$itemLength-10}
#    echo $item
    if [[ -d $itemName ]] ; then
        zip -9r "${item}.zip" "$itemName"
        cp "${item}.zip" "$2"
    fi
done
}


compressComponents "${BUILT_PRODUCTS_DIR}" "${BUILT_PRODUCTS_DIR}/PerianPane.prefPane/Contents/Resources/Components/"
if [[ -d "${BUILT_PRODUCTS_DIR}/CoreAudio" ]] ; then<commit_msg>Use ditto instead of zip.  Creates the same files, but appears to be safer with OS X files. Likely makes no difference, but might as well do it anyway.<commit_after>#!/bin/sh -v
PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin

function compressComponents(){
mkdir -p "$2"
cd $1
for itemName in *.component ; do
    itemLength=${#itemName}
    item=${itemName:0:$itemLength-10}
#    echo $item
    if [[ -d $itemName ]] ; then
        ditto -c -k --rsrc --keepParent "$itemName" "${item}.zip"
        cp "${item}.zip" "$2"
    fi
done
}


compressComponents "${BUILT_PRODUCTS_DIR}" "${BUILT_PRODUCTS_DIR}/PerianPane.prefPane/Contents/Resources/Components/"
if [[ -d "${BUILT_PRODUCTS_DIR}/CoreAudio" ]] ; then
{'fraction_non_alphanumeric': 0.1726844583987441, 'fraction_numerical': 0.01020408163265306, 'mean_word_length': 3.7752808988764044, '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': '3264781', 'n_tokens_mistral': 469, 'n_tokens_neox': 448, 'n_words': 108}