<commit_before>MANIFEST ?= manifest.xml
RESOURCES ?= res/resources.xml
SOURCES ?= $(wildcard src/*.mc)
TESTS ?= $(wildcard test/*.mc)
KEY ?= signing-key.der

.PHONY: build
build: build/authenticator.prg

start: build/authenticator.prg
	connectiq &
	monkeydo build/authenticator.prg vivoactive_hr

.PHONY: test
test: build/authenticator_test.prg
	connectiq &
	monkeydo build/authenticator_test.prg vivoactive_hr -t $(TEST_ARGS)

release: build/authenticator.iq

%_test.prg: $(KEY) $(MANIFEST) $(RESOURCES) $(SOURCES) $(TESTS)
	monkeyc -o $@ -y $(KEY) -m $(MANIFEST) -z $(RESOURCES) --unit-test $(SOURCES) $(TESTS)

%.prg: $(KEY) $(MANIFEST) $(RESOURCES) $(SOURCES)
	monkeyc -o $@ -y $(KEY) -m $(MANIFEST) -z $(RESOURCES) $(SOURCES)

%.iq: $(KEY) $(MANIFEST) $(RESOURCES) $(SOURCES)
	monkeyc -e -o $@ -y $(KEY) -m $(MANIFEST) -z $(RESOURCES) $(SOURCES)

clean:
	rm -rf build/<commit_msg>Build a release .prg on make release<commit_after>MANIFEST ?= manifest.xml
RESOURCES ?= res/resources.xml
SOURCES ?= $(wildcard src/*.mc)
TESTS ?= $(wildcard test/*.mc)
KEY ?= signing-key.der

.PHONY: build
build: build/authenticator.prg

start: build/authenticator.prg
	connectiq &
	monkeydo build/authenticator.prg vivoactive_hr

.PHONY: test
test: build/authenticator_test.prg
	connectiq &
	monkeydo build/authenticator_test.prg vivoactive_hr -t $(TEST_ARGS)

release: build/authenticator.iq build/authenticator_release.prg

%_test.prg: $(KEY) $(MANIFEST) $(RESOURCES) $(SOURCES) $(TESTS)
	monkeyc -o $@ -y $(KEY) -m $(MANIFEST) -z $(RESOURCES) --unit-test $(SOURCES) $(TESTS)

%_release.prg: $(KEY) $(MANIFEST) $(RESOURCES) $(SOURCES)
	monkeyc -o $@ -r -y $(KEY) -m $(MANIFEST) -z $(RESOURCES) $(SOURCES)

%.prg: $(KEY) $(MANIFEST) $(RESOURCES) $(SOURCES)
	monkeyc -o $@ -y $(KEY) -m $(MANIFEST) -z $(RESOURCES) $(SOURCES)

%.iq: $(KEY) $(MANIFEST) $(RESOURCES) $(SOURCES)
	monkeyc -e -o $@ -y $(KEY) -m $(MANIFEST) -z $(RESOURCES) $(SOURCES)

clean:
	rm -rf build/
{'fraction_non_alphanumeric': 0.19089048106448311, 'fraction_numerical': 0.0, 'mean_word_length': 4.699708454810495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4831077', 'n_tokens_mistral': 891, 'n_tokens_neox': 782, 'n_words': 189}