<commit_before>#!/usr/bin/env bash


f=src/main/resources/org/graphlab/create/spark_unity_mac

strip -S $f

install_name_tool -change libpython2.7.dylib @rpath/libpython2.7.dylib $f || true
install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python @rpath/libpython2.7.dylib $f || true

relative=`echo $f | sed 's:\./::g' | sed 's:[^/]*/:../:g' | sed 's:[^/]*$::'`
# Now we need ../../ to get to PREFIX/lib
rpath="@loader_path/../../$relative"
install_name_tool -add_rpath $rpath $f || true
<commit_msg>updating the script to strip the mac binary<commit_after>#!/usr/bin/env bash


f=src/main/resources/org/graphlab/create/spark_unity_mac

strip -S $f

# Remove data-dev rpath additions:
rmlist=$(otool -l $f | grep -e "dato-dev/deps")

for p in $rmlist; do
    echo "Trying to remove $p"
    install_name_tool -delete_rpath $p
done
         
# make sure that libpython is linked to relative path
install_name_tool -change libpython2.7.dylib @rpath/libpython2.7.dylib $f || true
install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python @rpath/libpython2.7.dylib $f || true

# add a reasonable resolution path for mac platform
install_name_tool -add_rpath /System/Library/Frameworks/Python.framework/Versions/2.7/lib





# relative=`echo $f | sed 's:\./::g' | sed 's:[^/]*/:../:g' | sed 's:[^/]*$::'`
# # Now we need ../../ to get to PREFIX/lib
# rpath="@loader_path/../../$relative"
# install_name_tool -add_rpath $rpath $f || true

{'fraction_non_alphanumeric': 0.17100868403473615, 'fraction_numerical': 0.012024048096192385, 'mean_word_length': 3.832258064516129, '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': '4909729', 'n_tokens_mistral': 594, 'n_tokens_neox': 560, 'n_words': 129}