<commit_before>UTILS_HOME = ../../../utils
AVM ?= $(UTILS_HOME)/tamarin-redux/bin/shell/avmshell 
BUILTINABC ?= $(UTILS_HOME)/tamarin-redux/generated/builtin.abc
ASC ?= $(UTILS_HOME)/asc.jar
JSSHELL ?= $(UTILS_HOME)/jsshell/js
THREADS ?= 8

TEST_CMD = ASC=$(ASC) AVM=$(AVM) BUILTINABC=$(BUILTINABC) JSSHELL=$(JSSHELL) node numbers.js -j $(THREADS)

TEST_PATH ?= $(error Specify TEST_PATH variable)

default:
	echo "run: make [hello-world|test-pypy|test-interpreter|test-compiler]"

hello-world:
	ASC=$(ASC) AVM=$(AVM) BUILTINABC=$(BUILTINABC) ./shu.py asc -builtin ../tests/hello-world.as
	$(JSSHELL) avm.js -x ../tests/hello-world.abc
	$(TEST_CMD) -i ../tests/hello-world.abc -c icov
<commit_msg>Add node modules path<commit_after>UTILS_HOME = ../../../utils
AVM ?= $(UTILS_HOME)/tamarin-redux/bin/shell/avmshell 
BUILTINABC ?= $(UTILS_HOME)/tamarin-redux/generated/builtin.abc
ASC ?= $(UTILS_HOME)/asc.jar
JSSHELL ?= $(UTILS_HOME)/jsshell/js
THREADS ?= 8

NODE_MODULES = ../../../utils/node_modules

TEST_CMD = ASC=$(ASC) AVM=$(AVM) BUILTINABC=$(BUILTINABC) JSSHELL=$(JSSHELL) NODE_PATH=$(NODE_MODULES) node numbers.js -j $(THREADS)

TEST_PATH ?= $(error Specify TEST_PATH variable)

default:
	echo "run: make [hello-world|test-pypy|test-interpreter|test-compiler]"

hello-world:
	ASC=$(ASC) AVM=$(AVM) BUILTINABC=$(BUILTINABC) ./shu.py asc -builtin ../tests/hello-world.as
	$(JSSHELL) avm.js -x ../tests/hello-world.abc
	$(TEST_CMD) -i ../tests/hello-world.abc -c icov

{'fraction_non_alphanumeric': 0.19361413043478262, 'fraction_numerical': 0.001358695652173913, 'mean_word_length': 4.64367816091954, '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': '5357131', 'n_tokens_mistral': 639, 'n_tokens_neox': 625, 'n_words': 102}