<commit_before>
OCB_FLAGS = -use-ocamlfind -pkg core,batteries -tags thread 
OCB =				ocamlbuild $(OCB_FLAGS)

MODULES = src/commands\
					src/watch\
					src/parser\
					src/typechecker\
					src/errors\
					core\
					utils

INCLUDE_MODULES = $(foreach dir, $(MODULES), -I $(dir))

all: infrared

run:
	make && make test

infrared:
	$(OCB) $(INCLUDE_MODULES) src/infrared.native

test:
	python tests/run_tests.py

generate-tests:
	python tests/generate_tests.py

# @TEMP v
e-test:
	./infrared.native parse tests/_experimental/test.js
e-test-s:
	./infrared.native parse tests/_experimental/test.js > tests/_experimental/test.exp
# @TEMP ^

clean:
	$(OCB) -clean

.PHONY: clean all run

<commit_msg>jbuild isn't mature enough for this<commit_after>
OCB_FLAGS = -use-ocamlfind -pkg core,batteries -tags thread 
OCB =       ocamlbuild $(OCB_FLAGS)

MODULES = src/commands\
          src/watch\
          src/parser\
          src/typechecker\
          src/errors\
          core\
          utils

INCLUDE_MODULES = $(foreach dir, $(MODULES), -I $(dir))

all: infrared

run:
	make && make test

infrared:
	$(OCB) $(INCLUDE_MODULES) src/infrared.native

test:
	python tests/run_tests.py

generate-tests:
	python tests/generate_tests.py

# @TEMP
e-test:
	./infrared.native parse tests/_experimental/test.js
e-test-s:
	./infrared.native parse tests/_experimental/test.js > tests/_experimental/test.exp

clean:
	$(OCB) -clean

.PHONY: all run infrared test generate_tests clean 


{'fraction_non_alphanumeric': 0.12186865267433988, 'fraction_numerical': 0.0, 'mean_word_length': 3.0493150684931507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4947733', 'n_tokens_mistral': 585, 'n_tokens_neox': 529, 'n_words': 124}