<commit_before>#! /bin/bash
yarn build

mv dist/3rdpartylicenses.txt .

mkdir package
cp -r dist electron package.json package
mkdir package/icons
cp icons/ss.png package/icons/ss.png

electron-packager package slack-stream --platform=darwin --icon=icons/ss.icns --arch=all --overwrite
electron-packager package slack-stream --platform=win32 --icon=icons/ss.ico --arch=all --overwrite
electron-packager package slack-stream --platform=linux --arch=all --overwrite

for f in slack-stream*
do
    cp 3rdpartylicenses.txt $f/LICENSES.3rdParty
    echo "Creating zip: $f.zip"
    zip $f.zip -r $f > /dev/null
done

rm -f 3rdpartylicenses.txt
rm -rf package<commit_msg>zip packages with multiple processes<commit_after>#! /bin/bash
yarn build

mv dist/3rdpartylicenses.txt .

mkdir package
cp -r dist electron package.json package
mkdir package/icons
cp icons/ss.png package/icons/ss.png

electron-packager package slack-stream --platform=darwin --icon=icons/ss.icns --arch=all --overwrite
electron-packager package slack-stream --platform=win32 --icon=icons/ss.ico --arch=all --overwrite
electron-packager package slack-stream --platform=linux --arch=all --overwrite

for f in slack-stream*
do
    cp 3rdpartylicenses.txt $f/LICENSES.3rdParty
done

n_cores=`grep processor /proc/cpuinfo | wc -l`
echo "Creating zips using ${n_cores} processes"
parallel -j ${n_cores} zip {}.zip -r {} > /dev/null ::: `find -name "slack-stream-*"`

rm -f 3rdpartylicenses.txt
rm -rf package
{'fraction_non_alphanumeric': 0.12397820163487738, 'fraction_numerical': 0.008174386920980926, 'mean_word_length': 3.9796610169491524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2161965', 'n_tokens_mistral': 518, 'n_tokens_neox': 484, 'n_words': 141}