<commit_before>SERVER_IP=127.1
SERVER_PORT=8005

default: rich-text-editor compile test

test: elm-test
	elm-test

elm-test: /usr/local/bin/elm-test

/usr/local/bin/elm-test:
	npm install -g elm-test

c: compile
compile:
	elm make --warn src/Main.elm --output dist/Main.js

clean:
	rm -rf {,tests/}elm-stuff/build-artifacts/0.18.0/user/project

clean-hard:
	rm -rf {,tests/}elm-stuff

open:
	open http://$(SERVER_IP):$(SERVER_PORT)/index.html

.PHONY: tags
tags:
	rm tags; ctags -R

pc: pre-commit
pre-commit: compile test rich-text-editor


check-untracked:
	test `git ls-files --other --directory --exclude-standard | wc -c` == '0'

.PHONY: rich-text-editor
rich-text-editor:
	@make -C $@

.EXPORT_ALL_VARIABLES:

git-hook:
	cat <<< "$$SETUP_GIT_HOOK" > .git/hooks/pre-commit
	chmod u+x .git/hooks/pre-commit
	ls -la .git/hooks/pre-commit

define SETUP_GIT_HOOK
#!/bin/sh

make pre-commit
endef

start:
	elm reactor --port=$(SERVER_PORT) --address=$(SERVER_IP) & sleep 0.1

stop:
	pkill elm-reactor

edit:
	atom .
<commit_msg>make restart<commit_after>SERVER_IP=127.1
SERVER_PORT=8005

default: rich-text-editor compile test

test: elm-test
	elm-test

elm-test: /usr/local/bin/elm-test

/usr/local/bin/elm-test:
	npm install -g elm-test

c: compile
compile:
	elm make --warn src/Main.elm --output dist/Main.js

clean:
	rm -rf {,tests/}elm-stuff/build-artifacts/0.18.0/user/project

clean-hard:
	rm -rf {,tests/}elm-stuff

open:
	open http://$(SERVER_IP):$(SERVER_PORT)/src/Main.elm

.PHONY: tags
tags:
	rm tags; ctags -R

pc: pre-commit
pre-commit: compile test rich-text-editor


check-untracked:
	test `git ls-files --other --directory --exclude-standard | wc -c` == '0'

.PHONY: rich-text-editor
rich-text-editor:
	@make -C $@

.EXPORT_ALL_VARIABLES:

git-hook:
	cat <<< "$$SETUP_GIT_HOOK" > .git/hooks/pre-commit
	chmod u+x .git/hooks/pre-commit
	ls -la .git/hooks/pre-commit

define SETUP_GIT_HOOK
#!/bin/sh

make pre-commit
endef

start:
	elm reactor --port=$(SERVER_PORT) --address=$(SERVER_IP) & sleep 0.1

stop:
	pkill elm-reactor

restart: stop start

edit:
	atom .

{'fraction_non_alphanumeric': 0.15688161693936478, 'fraction_numerical': 0.014436958614051972, 'mean_word_length': 3.5294117647058822, 'pattern_counts': {'":': 0, '<': 9, '<?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': '27609', 'n_tokens_mistral': 901, 'n_tokens_neox': 874, 'n_words': 190}