<commit_before>
APP=wave_app
CFG=etc/wave

all: build

build:
	./rebar3 compile

debug:
	erl -pa `find _build -name ebin` -s $(APP) -s sync -config $(CFG) -s observer -init debug +v

test:
	cd tests && DEBUG=1 PYTHONPATH=./nyamuk ./run

release:
	./rebar3 release

clean:
	./rebar3 clean

cert:
	openssl req -x509 -newkey rsa:2048 -keyout ./etc/wave_key.pem -out ./etc/wave_cert.pem -days 365 \
		-nodes \
		-subj '/CN=FR/O=wave/CN=wave.acme.org'

## testing freemobile sms module
## faking a ssh connection
test_sms:
	mosquitto_pub -t '/secu/ssh' -m '{"action": "login", "user":"luke", "server": "darkstar", "from":"tatooine", "at": "year 0"}'


.PHONY: test
<commit_msg>[mgmt] update Makefile - updating rebar3 packages index before compile<commit_after>
APP=wave_app
CFG=etc/wave

all: init build

init:
	./rebar3 update

build:
	./rebar3 as prod compile

debug:
	./rebar3 as dev compile
	erl -pa `find -L _build/dev -name ebin` -s $(APP) -s sync -config $(CFG) -s observer -init debug +v

test:
	cd tests && DEBUG=1 PYTHONPATH=./nyamuk ./run

release:
	./rebar3 release

clean:
	./rebar3 clean

cert:
	openssl req -x509 -newkey rsa:2048 -keyout ./etc/wave_key.pem -out ./etc/wave_cert.pem -days 365 \
		-nodes \
		-subj '/CN=FR/O=wave/CN=wave.acme.org'

## testing freemobile sms module
## faking a ssh connection
test_sms:
	mosquitto_pub -t '/secu/ssh' -m '{"action": "login", "user":"luke", "server": "darkstar", "from":"tatooine", "at": "year 0"}'


.PHONY: test

{'fraction_non_alphanumeric': 0.16598639455782313, 'fraction_numerical': 0.022448979591836733, 'mean_word_length': 3.4984709480122325, 'pattern_counts': {'":': 10, '<': 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': '688905', 'n_tokens_mistral': 633, 'n_tokens_neox': 599, 'n_words': 173}