<commit_before>
build:
	coffee -c ./chrome-extension/*.coffee

auto:
	coffee -w -c .

install:
	sudo npm install -g .

# Run a test version of the server.  It uses a different port from the default
# port, so it doesn't conflict with the live server.  Note that you'll have to
# set the port and the secret below within the extension.
run-server:
	TEXT_AID_TOO_SECRET=hul8quahJ4eeL1Ib coffee server/server.coffee --port 9294 --markdown

help-text:
	coffee server/server.coffee -h

# This target is probably of interest to smblott only.
pack-extension:
	$(MAKE) build
	google-chrome \
	   --pack-extension=$(PWD)/chrome-extension \
	   --pack-extension-key="$(HOME)/local/sbenv/ssh/text-aid-too.pem"
	ls -l chrome-extension.crx
	mv -v chrome-extension.crx $(HOME)/storage/google-drive/Extensions/text-aid-too.crx

.PHONY: build auto pack-extension pack run-server install help-text

pack:
	$(MAKE) build
	zip -r text-aid-too.zip chrome-extension -x '*'.coffee
<commit_msg>Tweak Makefile.<commit_after>
build:
	coffee -c ./chrome-extension/*.coffee

auto:
	coffee -w -c .

install:
	sudo npm install -g .

# Run a test version of the server.  It uses a different port from the default
# port, so it doesn't conflict with the live server.  Note that you'll have to
# set the port and the secret below within the extension.
run-server:
	TEXT_AID_TOO_SECRET=hul8quahJ4eeL1Ib coffee server/server.coffee --port 9294 --markdown

help-text:
	coffee server/server.coffee -h

# This target is probably of interest to smblott only.
pack-extension:
	$(MAKE) build
	google-chrome \
	   --pack-extension=$(PWD)/chrome-extension \
	   --pack-extension-key="$(HOME)/local/sbenv/ssh/text-aid-too.pem"
	ls -l chrome-extension.crx
	mv -v chrome-extension.crx $(HOME)/storage/google-drive/Extensions/text-aid-too.crx

.PHONY: build auto pack-extension pack run-server install help-text publish

# For Chrome Store.
pack:
	$(MAKE) build
	zip -r text-aid-too.zip chrome-extension -x '*'.coffee

# For npm.
publish:
	$(MAKE) build
	npm publish

{'fraction_non_alphanumeric': 0.11627906976744186, 'fraction_numerical': 0.006927263730826323, 'mean_word_length': 3.5850340136054424, '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': '3236568', 'n_tokens_mistral': 749, 'n_tokens_neox': 695, 'n_words': 218}