<commit_before>#!/bin/bash

rm -rf dist
mkdir -p dist/chrome dist/firefox

cp -r css fonts img js LICENSE manifest.json *.html dist/chrome
sed -i '' '/  "applications": {/,/  },/d' dist/chrome/manifest.json
sed -i '' 's/ data-no-firefox//' dist/chrome/*.html
pushd dist/chrome; zip -r ../chrome.zip *; popd

cp -r css fonts img js LICENSE manifest.json *.html dist/firefox
rm dist/firefox/js/ga.js
sed -i '' '/"author"/d' dist/firefox/manifest.json
sed -i '' '/"minimum_chrome_version"/d' dist/firefox/manifest.json
sed -i '' '/"content_security_policy"/d' dist/firefox/manifest.json
sed -i '' '/"browser_style"/d' dist/firefox/manifest.json
sed -i '' 's/, "js\/ga.js"//' dist/firefox/manifest.json
sed -i '' '/ data-no-firefox/d' dist/firefox/*.html

pushd dist/firefox; zip -r ../firefox.xpi *; popd<commit_msg>BSD and Linux compatible build script<commit_after>#!/bin/bash

rm -rf dist
mkdir -p dist/chrome dist/firefox

cp -r css fonts img js LICENSE manifest.json *.html dist/chrome
sed -i.bak '/  "applications": {/,/  },/d' dist/chrome/manifest.json
sed -i.bak 's/ data-no-firefox//' dist/chrome/*.html
pushd dist/chrome; rm *.bak; zip -r ../chrome.zip *; popd

cp -r css fonts img js LICENSE manifest.json *.html dist/firefox
rm dist/firefox/js/ga.js
sed -i.bak '/"author"/d' dist/firefox/manifest.json
sed -i.bak '/"minimum_chrome_version"/d' dist/firefox/manifest.json
sed -i.bak '/"content_security_policy"/d' dist/firefox/manifest.json
sed -i.bak '/"browser_style"/d' dist/firefox/manifest.json
sed -i.bak 's/, "js\/ga.js"//' dist/firefox/manifest.json
sed -i.bak '/ data-no-firefox/d' dist/firefox/*.html

pushd dist/firefox; rm *.bak; zip -r ../firefox.xpi *; popd
{'fraction_non_alphanumeric': 0.18235995232419547, 'fraction_numerical': 0.0, 'mean_word_length': 3.418421052631579, 'pattern_counts': {'":': 2, '<': 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': '1703536', 'n_tokens_mistral': 675, 'n_tokens_neox': 631, 'n_words': 162}