<commit_before>REPO		?= riak_moss
PKG_NAME        ?= riak-moss
PKG_REVISION    ?= $(shell git describe --tags)
PKG_VERSION	?= $(shell git describe --tags | tr - .)
PKG_ID           = $(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD        = 1
BASE_DIR         = $(shell pwd)
ERLANG_BIN       = $(shell dirname $(shell which erl))
REBAR           ?= $(BASE_DIR)/rebar
OVERLAY_VARS    ?=

.PHONY: rel deps test

all: deps compile

compile:
	@./rebar compile

deps:
	@./rebar get-deps

clean:
	@./rebar clean

distclean: clean
	@./rebar delete-deps

test: all
	@./rebar skip_deps=true eunit

parity-test:
	@python test/prototype_parity.py -v

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

relclean:
	rm -rf rel/riak_moss

##
## Developer targets
##
stage : rel
	$(foreach dep,$(wildcard deps/*), rm -rf rel/riak_moss/lib/$(shell basename $(dep))-* && ln -sf $(abspath $(dep)) rel/riak_moss/lib;)
	$(foreach app,$(wildcard apps/*), rm -rf rel/riak_moss/lib/$(shell basename $(app))-* && ln -sf $(abspath $(app)) rel/riak_moss/lib;)

devrel:
	mkdir -p dev<commit_msg>Minor update to rel target in Makefile.<commit_after>REPO		?= riak_moss
PKG_NAME        ?= riak-moss
PKG_REVISION    ?= $(shell git describe --tags)
PKG_VERSION	?= $(shell git describe --tags | tr - .)
PKG_ID           = $(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD        = 1
BASE_DIR         = $(shell pwd)
ERLANG_BIN       = $(shell dirname $(shell which erl))
REBAR           ?= $(BASE_DIR)/rebar
OVERLAY_VARS    ?=

.PHONY: rel deps test

all: deps compile

compile:
	@./rebar compile

deps:
	@./rebar get-deps

clean:
	@./rebar clean

distclean: clean
	@./rebar delete-deps

test: all
	@./rebar skip_deps=true eunit

parity-test:
	@python test/prototype_parity.py -v

##
## Release targets
##
rel: deps compile
	@./rebar compile generate  $(OVERLAY_VARS)

relclean:
	rm -rf rel/riak_moss

##
## Developer targets
##
stage : rel
	$(foreach dep,$(wildcard deps/*), rm -rf rel/riak_moss/lib/$(shell basename $(dep))-* && ln -sf $(abspath $(dep)) rel/riak_moss/lib;)
	$(foreach app,$(wildcard apps/*), rm -rf rel/riak_moss/lib/$(shell basename $(app))-* && ln -sf $(abspath $(app)) rel/riak_moss/lib;)

devrel:
	mkdir -p dev
{'fraction_non_alphanumeric': 0.16142270861833105, 'fraction_numerical': 0.0009119927040583675, 'mean_word_length': 3.2355212355212357, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6823946', 'n_tokens_mistral': 902, 'n_tokens_neox': 878, 'n_words': 218}