<commit_before>REPO 		?= riak

.PHONY: rel stagedevrel deps

all: deps compile

compile:
	./rebar compile

deps:
	./rebar get-deps

clean: testclean
	./rebar clean

distclean: clean devclean relclean ballclean
	./rebar delete-deps


TEST_LOG_FILE := eunit.log
testclean:
	@rm -f $(TEST_LOG_FILE)

# Test each dependency individually in its own VM
test: deps compile testclean
	@$(foreach dep, \
            $(wildcard deps/*), \
                ./rebar eunit apps=$(notdir $(dep)) \
                    || echo "Eunit: $(notdir $(dep)) FAILED" >> $(TEST_LOG_FILE);)
	./rebar eunit skip_deps=true
	@if test -s $(TEST_LOG_FILE) ; then \
             cat $(TEST_LOG_FILE) && \
             exit `wc -l < $(TEST_LOG_FILE)`; \
        fi

##
## Release targets
##
rel: deps
	./rebar compile generate

relclean:
	rm -rf rel/riak

##
## Developer targets
##
stagedevrel: dev1 dev2 dev3 dev4
	$(foreach dev,$^,\
	  $(foreach dep,$(wildcard deps/*), rm -rf dev/$(dev)/lib/$(shell basename $(dep))-* && ln -sf $(abspath $(dep)) dev/$(dev)/lib;))

devrel: dev1 dev2 dev3 dev4

dev1 dev2 dev3 dev4: all
	mkdir -p dev<commit_msg>a fix for 'make test'<commit_after>REPO 		?= riak

.PHONY: rel stagedevrel deps

all: deps compile

compile:
	./rebar compile

deps:
	./rebar get-deps

clean: testclean
	./rebar clean

distclean: clean devclean relclean ballclean
	./rebar delete-deps


TEST_LOG_FILE := eunit.log
testclean:
	@rm -f $(TEST_LOG_FILE)

# Test each dependency individually in its own VM
test: deps compile testclean
	@$(foreach dep, \
            $(wildcard deps/*), \
               (cd $(dep) && ../../rebar eunit deps_dir=.. skip_deps=true)  \
               || echo "Eunit: $(notdir $(dep)) FAILED" >> $(TEST_LOG_FILE);)
	./rebar eunit skip_deps=true
	@if test -s $(TEST_LOG_FILE) ; then \
             cat $(TEST_LOG_FILE) && \
             exit `wc -l < $(TEST_LOG_FILE)`; \
        fi

##
## Release targets
##
rel: deps
	./rebar compile generate

relclean:
	rm -rf rel/riak

##
## Developer targets
##
stagedevrel: dev1 dev2 dev3 dev4
	$(foreach dev,$^,\
	  $(foreach dep,$(wildcard deps/*), rm -rf dev/$(dev)/lib/$(shell basename $(dep))-* && ln -sf $(abspath $(dep)) dev/$(dev)/lib;))

devrel: dev1 dev2 dev3 dev4

dev1 dev2 dev3 dev4: all
	mkdir -p dev
{'fraction_non_alphanumeric': 0.1531651173085436, 'fraction_numerical': 0.010624169986719787, 'mean_word_length': 2.7983193277310923, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '385814', 'n_tokens_mistral': 863, 'n_tokens_neox': 839, 'n_words': 243}