<commit_before>RUN := +Bc +K true -smp enable -pa ebin deps/*/ebin -s crypto -s inets -s ssl -s elog

all:
	rebar get-deps && rebar compile

clean:
	rebar clean

build_plt: all
	dialyzer -pa deps/*/ebin --apps erts kernel stdlib inets --output_plt ~/.match_stream_dialyzer_plt --build_plt

analyze: all
	dialyzer -pa deps/*/ebin --plt ~/.match_stream_dialyzer_plt -Wunmatched_returns -Werror_handling -Wbehaviours ebin

update-deps:
	rebar update-deps

doc: all
	rebar skip_deps=true doc

xref: all
	rebar skip_deps=true xref
	
run: all
	if [ -f app.config ]; then\
		erl  -config app -boot start_sasl ${RUN} -s match_stream;\
	else\
		erl  -boot start_sasl ${RUN} -s match_stream;\
	fi

shell: all
	if [ -f app.config ]; then\<commit_msg>Node name added<commit_after>RUN := +Bc +K true -smp enable -pa ebin deps/*/ebin -s crypto -s inets -s ssl -s elog -name match_stream

all:
	rebar get-deps && rebar compile

clean:
	rebar clean

build_plt: all
	dialyzer -pa deps/*/ebin --apps erts kernel stdlib inets --output_plt ~/.match_stream_dialyzer_plt --build_plt

analyze: all
	dialyzer -pa deps/*/ebin --plt ~/.match_stream_dialyzer_plt -Wunmatched_returns -Werror_handling -Wbehaviours ebin

update-deps:
	rebar update-deps

doc: all
	rebar skip_deps=true doc

xref: all
	rebar skip_deps=true xref
	
run: all
	if [ -f app.config ]; then\
		erl  -config app -boot start_sasl ${RUN} -s match_stream;\
	else\
		erl  -boot start_sasl ${RUN} -s match_stream;\
	fi

shell: all
	if [ -f app.config ]; then\
{'fraction_non_alphanumeric': 0.11407605070046697, 'fraction_numerical': 0.0, 'mean_word_length': 3.3859649122807016, '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': '6968492', 'n_tokens_mistral': 644, 'n_tokens_neox': 612, 'n_words': 183}