<commit_before>NAME=katakana2romaji

BUILD_CHROME=build_chrome/$(NAME)
BUILD_FIREFOX=build_firefox

all: firefox chrome

firefox:
	rm -rf $(BUILD_FIREFOX)
	mkdir -p $(BUILD_FIREFOX)
	cp -a package.json index.js data $(BUILD_FIREFOX)
	( cd $(BUILD_FIREFOX) && jpm xpi )

chrome:
	rm -rf $(BUILD_CHROME)
	mkdir -p $(BUILD_CHROME)
	cp -a manifest.json data _locales $(BUILD_CHROME)
	( cd $(BUILD_CHROME)/.. && zip $(NAME).zip -r $(NAME) )<commit_msg>Chrome - delete old zip file before regenerating.<commit_after>NAME=katakana2romaji

BUILD_CHROME=build_chrome/$(NAME)
BUILD_FIREFOX=build_firefox
CHROME_ZIPFILE=$(BUILD_CHROME)/../$(NAME).zip

all: firefox chrome

firefox:
	rm -rf $(BUILD_FIREFOX)
	mkdir -p $(BUILD_FIREFOX)
	cp -a package.json index.js data $(BUILD_FIREFOX)
	( cd $(BUILD_FIREFOX) && jpm xpi )

chrome:
	rm -f $(CHROME_ZIPFILE)
	rm -rf $(BUILD_CHROME)
	mkdir -p $(BUILD_CHROME)
	cp -a manifest.json data _locales $(BUILD_CHROME)
	( cd $(BUILD_CHROME)/.. && zip $(NAME).zip -r $(NAME) )
{'fraction_non_alphanumeric': 0.14785214785214784, 'fraction_numerical': 0.001998001998001998, 'mean_word_length': 4.928994082840236, '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': '6280080', 'n_tokens_mistral': 432, 'n_tokens_neox': 421, 'n_words': 94}