<commit_before>default: packages

packages: build/betterponymotes.xpi build/betterponymotes.crx build/betterponymotes.oex

build/emote-classes.css build/emote-map.js build/sr-data.js: bpgen.py emotes/*.yaml data/bpmotes-extras.yaml
	./bpgen.py emotes/*.yaml data/bpmotes-extras.yaml

build/betterponymotes.xpi: build/emote-classes.css build/emote-map.js build/sr-data.js firefox/data/* firefox/package.json firefox/lib/main.js
	cfx xpi --update-url=http://rainbow.mlas1.us/betterponymotes.update.rdf --pkgdir=firefox
	bin/inject_xpi_key.py betterponymotes.xpi build/betterponymotes.xpi
	rm betterponymotes.xpi
	cp build/betterponymotes.xpi build/betterponymotes_`bin/version.py get`.xpi
	uhura -k betterponymotes.pem build/betterponymotes.xpi http://rainbow.mlas1.us/betterponymotes_`bin/version.py get`.xpi > data/betterponymotes.update.rdf

build/betterponymotes.crx: build/emote-classes.css build/emote-map.js build/sr-data.js chrome/*
	google-chrome --pack-extension=chrome --pack-extension-key=betterponymotes.pem
	mv chrome.crx build/betterponymotes.crx
	cp build/betterponymotes.crx build/betterponymotes_`bin/version.py get`.crx

build/betterponymotes.oex: build/emote-classes.css build/emote-map.js build/sr-data.js opera/includes/betterponymotes.js opera/includes/* opera/*
	cd opera && zip -r ../build/betterponymotes.oex * && cd ..
	cp build/betterponymotes.oex build/betterponymotes_`bin/version.py get`.oex

opera/includes/betterponymotes.js: bin/make_opera_script.py data/betterponymotes.js data/script-common.js build/emote-map.js
	bin/make_opera_script.py opera/includes/betterponymotes.js

opera/includes/betterglobalmotes.js: bin/make_opera_script data/betterglobalmotes.js data/script-common.js build/emote-map.js
	bin/make_opera_script.py opera/includes/betterglobalmotes.js<commit_msg>Makefile fix since apparently BGM leaked in anyway<commit_after>default: packages

packages: build/betterponymotes.xpi build/betterponymotes.crx build/betterponymotes.oex

build/emote-classes.css build/emote-map.js build/sr-data.js: bpgen.py emotes/*.yaml data/bpmotes-extras.yaml
	./bpgen.py emotes/*.yaml data/bpmotes-extras.yaml

build/betterponymotes.xpi: build/emote-classes.css build/emote-map.js build/sr-data.js firefox/data/* firefox/package.json firefox/lib/main.js
	cfx xpi --update-url=http://rainbow.mlas1.us/betterponymotes.update.rdf --pkgdir=firefox
	bin/inject_xpi_key.py betterponymotes.xpi build/betterponymotes.xpi
	rm betterponymotes.xpi
	cp build/betterponymotes.xpi build/betterponymotes_`bin/version.py get`.xpi
	uhura -k betterponymotes.pem build/betterponymotes.xpi http://rainbow.mlas1.us/betterponymotes_`bin/version.py get`.xpi > data/betterponymotes.update.rdf

build/betterponymotes.crx: build/emote-classes.css build/emote-map.js build/sr-data.js chrome/*
	google-chrome --pack-extension=chrome --pack-extension-key=betterponymotes.pem
	mv chrome.crx build/betterponymotes.crx
	cp build/betterponymotes.crx build/betterponymotes_`bin/version.py get`.crx

build/betterponymotes.oex: build/emote-classes.css build/emote-map.js build/sr-data.js opera/includes/betterponymotes.js opera/includes/betterglobalmotes.js opera/includes/* opera/*
	cd opera && zip -r ../build/betterponymotes.oex * && cd ..
	cp build/betterponymotes.oex build/betterponymotes_`bin/version.py get`.oex

opera/includes/betterponymotes.js: bin/make_opera_script.py data/betterponymotes.js data/script-common.js build/emote-map.js
	bin/make_opera_script.py opera/includes/betterponymotes.js

opera/includes/betterglobalmotes.js: bin/make_opera_script data/betterglobalmotes.js data/script-common.js build/emote-map.js
	bin/make_opera_script.py opera/includes/betterglobalmotes.js
{'fraction_non_alphanumeric': 0.11960943856794141, 'fraction_numerical': 0.0010848928668294006, 'mean_word_length': 5.1466666666666665, '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': '6447728', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1357, 'n_words': 183}