<commit_before>OUTDIR := out

JAVAC_OPTS := -Xlint:all $(JAVAC_OPTS)
CLASSPATH := $(lastword $(sort $(wildcard ../bcprov-jdk15on-*.jar)))


.PHONY : default all tests clean

default : all

all : $(OUTDIR)
	find . -name '*.java' -print0 | xargs -0 -r javac $(JAVAC_OPTS) -d '$(OUTDIR)' -cp '$(CLASSPATH)'

clean :
	rm -rf '$(OUTDIR)'

$(OUTDIR) :
	mkdir -p '$(OUTDIR)'<commit_msg>improve Makefile<commit_after>LIBDIR := ..
OUTDIR := out

JAVAC_OPTS := -Xlint:all $(JAVAC_OPTS)

NAME := coinfloor-library
PACKAGES := uk
MAINCLASS :=
LIBRARIES := $(strip \
	$(wildcard $(LIBDIR)/bcprov-jdk15on-*.jar) $(wildcard $(LIBDIR)/bcprov.jar) \
	)

EMPTY :=
SPACE := $(EMPTY) $(EMPTY)
CLASSPATH := $(subst $(SPACE),:,$(LIBRARIES))

COMMIT := $(shell git describe --always --dirty)
ifeq ($(COMMIT),)
JARFILE := $(OUTDIR)/$(NAME).jar
else
JARFILE := $(OUTDIR)/$(NAME)-g$(COMMIT).jar
endif

.PHONY : default all tests clean

default : all

all : $(JARFILE)

clean :
	rm -rf '$(OUTDIR)'

$(OUTDIR) :
	mkdir -p '$(OUTDIR)'

$(JARFILE) : $(OUTDIR) $(shell find $(PACKAGES))
	rm -rf $(addprefix '$(OUTDIR)'/,$(PACKAGES))
	find $(PACKAGES) -name '*.java' -print0 | xargs -0 -r javac $(JAVAC_OPTS) -d '$(OUTDIR)' -cp '$(CLASSPATH)'
	echo 'Class-Path: $(subst $(LIBDIR)/,,$(LIBRARIES))' > '$(OUTDIR)/Manifest'
	jar -cfme '$(JARFILE)' '$(OUTDIR)/Manifest' '$(MAINCLASS)' -C '$(OUTDIR)' $(PACKAGES)
{'fraction_non_alphanumeric': 0.2314410480349345, 'fraction_numerical': 0.005822416302765648, 'mean_word_length': 4.47808764940239, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5019732', 'n_tokens_mistral': 575, 'n_tokens_neox': 567, 'n_words': 131}