<commit_before>#!/bin/sh

cd `dirname $0`

mkdir -p lib/App

if type perlstrip >/dev/null 2>&1; then
    perlstrip -o lib/App/perlbrew.pm ../lib/App/perlbrew.pm
else
    echo "!!! perlstrip is not installed. The fatpacked executable will be really big."
fi

perl -e 'print "+++ perlbrew fatpacking with $]\n"'

export PERL5LIB="lib":$PERL5LIB

cat - <<"EOF" > perlbrew
#!/usr/bin/perl
EOF

(fatpack file; cat ../bin/perlbrew) >> perlbrew

chmod +x perlbrew
mv ./perlbrew ../

echo "+++ DONE"<commit_msg>check perl version and fatpack path.<commit_after>#!/bin/sh

cd `dirname $0`

perl_version=`perl -e 'print $]'`

if [ $perl_version != "5.008008" ]; then
    echo "!!! Must use 5.8.8 to build standalone executable."
    exit 1;
fi

fatpack_path=`which fatpack`

if [ ! -f $fatpack_path ]; then
    echo "!!! fatpack is missing"
    exit 2
fi

mkdir -p lib/App

if type perlstrip >/dev/null 2>&1; then
    perlstrip -o lib/App/perlbrew.pm ../lib/App/perlbrew.pm
else
    echo "--- perlstrip is not installed. The fatpacked executable will be really big."
fi

export PERL5LIB="lib":$PERL5LIB

cat - <<"EOF" > perlbrew
#!/usr/bin/perl
EOF

(fatpack file; cat ../bin/perlbrew) >> perlbrew

chmod +x perlbrew
mv ./perlbrew ../

echo "+++ DONE"
exit 0;
{'fraction_non_alphanumeric': 0.15612489991993594, 'fraction_numerical': 0.018414731785428344, 'mean_word_length': 3.266211604095563, 'pattern_counts': {'":': 2, '<': 7, '<?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': '4962780', 'n_tokens_mistral': 525, 'n_tokens_neox': 474, 'n_words': 144}