<commit_before>REBAR = $(shell pwd)/rebar3
.PHONY: rel test relgentlerain

all: compile

compile:
	$(REBAR) compile

clean:
	$(REBAR) clean

distclean: clean relclean
	$(REBAR) clean --all

cleantests:
	rm -f test/*.beam
	rm -rf logs/

shell:
	$(REBAR) shell --name='antidote@127.0.0.1' --setcookie antidote --config config/sys-debug.config

# same as shell, but automatically reloads code when changed
# to install add `{plugins, [rebar3_auto]}.` to ~/.config/rebar3/rebar.config
# the tool requires inotifywait (sudo apt install inotify-tools)
# see https://github.com/vans163/rebar3_auto or http://blog.erlware.org/rebar3-auto-comile-and-load-plugin/
auto:
	$(REBAR) auto --name='antidote@127.0.0.1' --setcookie antidote --config config/sys-debug.config

rel:
	$(REBAR) release
	./change_script.sh _build/default/rel/antidote/bin/antidote

stop:
	./_build/default/rel/antidote/bin/env stop

run:
	./_build/default/rel/antidote/bin/env start
	sleep 1
	./_build/default/rel/antidote/bin/env ping

rebuild: relclean rel run

relclean:
	rm -rf _build/default/rel

reltest: rel
	test/release_test.sh

# style checks
lint:
	${REBAR} as lint lint

check: export TXN_PROT=clocksi
check: distclean cleantests test reltest dialyzer lint

relgentlerain: export TXN_PROTOCOL=gentlerain
relgentlerain: relclean cleantests rel

relnocert: export NO_CERTIFICATION=true
relnocert: relclean cleantests rel
<commit_msg>Stop Antidote before rebuilding<commit_after>REBAR = $(shell pwd)/rebar3
.PHONY: rel test relgentlerain

all: compile

compile:
	$(REBAR) compile

clean:
	$(REBAR) clean

distclean: clean relclean
	$(REBAR) clean --all

cleantests:
	rm -f test/*.beam
	rm -rf logs/

shell:
	$(REBAR) shell --name='antidote@127.0.0.1' --setcookie antidote --config config/sys-debug.config

# same as shell, but automatically reloads code when changed
# to install add `{plugins, [rebar3_auto]}.` to ~/.config/rebar3/rebar.config
# the tool requires inotifywait (sudo apt install inotify-tools)
# see https://github.com/vans163/rebar3_auto or http://blog.erlware.org/rebar3-auto-comile-and-load-plugin/
auto:
	$(REBAR) auto --name='antidote@127.0.0.1' --setcookie antidote --config config/sys-debug.config

rel:
	$(REBAR) release
	./change_script.sh _build/default/rel/antidote/bin/antidote

stop:
	./_build/default/rel/antidote/bin/env stop

run:
	./_build/default/rel/antidote/bin/env start
	sleep 1
	./_build/default/rel/antidote/bin/env ping

rebuild: stop relclean rel run

relclean:
	rm -rf _build/default/rel

reltest: rel
	test/release_test.sh

# style checks
lint:
	${REBAR} as lint lint

check: export TXN_PROT=clocksi
check: distclean cleantests test reltest dialyzer lint

relgentlerain: export TXN_PROTOCOL=gentlerain
relgentlerain: relclean cleantests rel

relnocert: export NO_CERTIFICATION=true
relnocert: relclean cleantests rel

{'fraction_non_alphanumeric': 0.1193924408336277, 'fraction_numerical': 0.014835747085835394, 'mean_word_length': 4.435700575815739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4947806', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1068, 'n_words': 262}