<commit_before>.PHONY: all deps compile xref eunit release check_plt build_plt dialyzer doc callgraph graphviz clean distclean

REBAR := ./rebar
APPS = erts kernel stdlib sasl crypto compiler inets mnesia public_key runtime_tools snmp syntax_tools tools xmerl webtool ssl
LIBS = deps/leo_commons/ebin deps/leo_logger/ebin deps/leo_object_storage/ebin deps/leo_mq/ebin \
       deps/leo_redundant_manager/ebin deps/leo_rpc/ebin deps/leo_statistics/ebin \
       deps/leo_s3_libs deps/savanna_commons
PLT_FILE = .leo_manager_dialyzer_plt
DOT_FILE = leo_manager.dot
CALL_GRAPH_FILE = leo_manager.png

all: deps compile xref eunit
deps:
	@$(REBAR) get-deps
compile:
	$(SHELL) -c ./replace_otp_vsn.sh
	@$(REBAR) compile
xref:
	@$(REBAR) xref skip_deps=true
eunit:
	@$(REBAR) eunit skip_deps=true
release:
	rm -rf rel/leo_manager
	@$(REBAR) compile
	(cd rel/ && ../rebar generate)
check_plt:
	@$(REBAR) compile
	dialyzer --check_plt --plt $(PLT_FILE) --apps $(APPS)
build_plt:
	@$(REBAR) compile
	dialyzer --build_plt --output_plt $(PLT_FILE) --apps $(APPS) $(LIBS)
dialyzer:
	@$(REBAR) compile
	dialyzer -Wno_return --plt $(PLT_FILE) -r ebin/ --dump_callgraph $(DOT_FILE) -Wrace_conditions | fgrep -v -f ./dialyzer.ignore-warnings
doc: compile
	@$(REBAR) doc
callgraph: graphviz
	dot -Tpng -o$(CALL_GRAPH_FILE) $(DOT_FILE)
graphviz:
	$(if $(shell which dot),,$(error "To make the depgraph, you need graphviz installed"))
clean:
	@$(REBAR) clean
distclean:
	@$(REBAR) delete-deps
	@$(REBAR) clean
<commit_msg>[manager] Fix a minor issue<commit_after>.PHONY: all deps compile xref eunit release check_plt build_plt dialyzer doc callgraph graphviz clean distclean

REBAR := ./rebar
APPS = erts kernel stdlib sasl crypto compiler inets mnesia public_key runtime_tools snmp syntax_tools tools xmerl webtool ssl
LIBS = deps/leo_commons/ebin deps/leo_logger/ebin deps/leo_object_storage/ebin deps/leo_mq/ebin \
       deps/leo_redundant_manager/ebin deps/leo_rpc/ebin deps/leo_statistics/ebin \
       deps/leo_s3_libs deps/savanna_commons
PLT_FILE = .leo_manager_dialyzer_plt
DOT_FILE = leo_manager.dot
CALL_GRAPH_FILE = leo_manager.png

all: deps compile xref eunit
deps:
	@$(REBAR) get-deps
compile:
	@$(REBAR) compile
xref:
	@$(REBAR) xref skip_deps=true
eunit:
	@$(REBAR) eunit skip_deps=true
release:
	rm -rf rel/leo_manager
	@$(REBAR) compile
	(cd rel/ && ../rebar generate)
check_plt:
	@$(REBAR) compile
	dialyzer --check_plt --plt $(PLT_FILE) --apps $(APPS)
build_plt:
	@$(REBAR) compile
	dialyzer --build_plt --output_plt $(PLT_FILE) --apps $(APPS) $(LIBS)
dialyzer:
	@$(REBAR) compile
	dialyzer -Wno_return --plt $(PLT_FILE) -r ebin/ --dump_callgraph $(DOT_FILE) -Wrace_conditions | fgrep -v -f ./dialyzer.ignore-warnings
doc: compile
	@$(REBAR) doc
callgraph: graphviz
	dot -Tpng -o$(CALL_GRAPH_FILE) $(DOT_FILE)
graphviz:
	$(if $(shell which dot),,$(error "To make the depgraph, you need graphviz installed"))
clean:
	@$(REBAR) clean
distclean:
	@$(REBAR) delete-deps
	@$(REBAR) clean

{'fraction_non_alphanumeric': 0.12424648359008707, 'fraction_numerical': 0.0006697923643670462, 'mean_word_length': 4.822612085769981, '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': '6782134', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1216, 'n_words': 297}