<commit_before>FILES = main.d Function.d FunctionSig.d Record.d parser.d visitor.d\
		ASTUtils.d typedecl.d utils.d CodeGenerator.d ExprCodeGenerator.d\
		TemplateInstantiator.d Namespace.d

.PHONY: all
all: compiler runtime stdlib

.PHONY: test
test:
	make realclean
	make test_singlethread
	make realclean
	make test_multithread
	make realclean
	make

.PHONY: test_singlethread
test_singlethread:
	make
	perl test/tester.pl --issuedir="examples" --compiler="compiler"
	perl test/tester.pl --issuedir="test/compilation_issues" --compiler="compiler"
	perl test/tester.pl --issuedir="test/execution_issues" --compiler="compiler"
	perl test/tester.pl --issuedir="test/runtime_issues" --compiler="compiler"

.PHONY: test_multithread
test_multithread:
	make compiler_multithread
	perl test/tester.pl --issuedir="examples" --compiler="compiler_multithread"
	perl test/tester.pl --issuedir="test/compilation_issues" --compiler="compiler_multithread"
	perl test/tester.pl --issuedir="test/execution_issues" --compiler="compiler_multithread"
	perl test/tester.pl --issuedir="test/runtime_issues" --compiler="compiler_multithread"

compiler: $(FILES)
	dmd -ofcompiler $(FILES)

compiler_debug: $(FILES)
	dmd -ofcompiler_debug $(FILES) -debug=COMPILE_TRACE -debug=TRACE

compiler_multithread: $(FILES)
	dmd -ofcompiler_multithread $(FILES) -version=MULTITHREAD
	make -C stdlib realclean
	make -C stdlib COMPILER="../compiler_multithread"

.PHONY: runtime
runtime:
	make -C runtime

.PHONY: stdlib
stdlib:
	make -C stdlib

parser.d: lang.peg ParserGenerator/parserGenerator
	ParserGenerator/parserGenerator < lang.peg > parser.d

ParserGenerator/parserGenerator: ParserGenerator
	make -C ParserGenerator

ParserGenerator:
	git clone https://github.com/CollinReeser/ParserGenerator.git

.PHONY: clean<commit_msg>Revert "Revert "Ensure that the runtime is compiled for the multithreaded compiler""<commit_after>FILES = main.d Function.d FunctionSig.d Record.d parser.d visitor.d\
		ASTUtils.d typedecl.d utils.d CodeGenerator.d ExprCodeGenerator.d\
		TemplateInstantiator.d Namespace.d

.PHONY: all
all: compiler runtime stdlib

.PHONY: test
test:
	make realclean
	make test_singlethread
	make realclean
	make test_multithread
	make realclean
	make

.PHONY: test_singlethread
test_singlethread:
	make
	perl test/tester.pl --issuedir="examples" --compiler="compiler"
	perl test/tester.pl --issuedir="test/compilation_issues" --compiler="compiler"
	perl test/tester.pl --issuedir="test/execution_issues" --compiler="compiler"
	perl test/tester.pl --issuedir="test/runtime_issues" --compiler="compiler"

.PHONY: test_multithread
test_multithread:
	make compiler_multithread
	perl test/tester.pl --issuedir="examples" --compiler="compiler_multithread"
	perl test/tester.pl --issuedir="test/compilation_issues" --compiler="compiler_multithread"
	perl test/tester.pl --issuedir="test/execution_issues" --compiler="compiler_multithread"
	perl test/tester.pl --issuedir="test/runtime_issues" --compiler="compiler_multithread"

compiler: $(FILES)
	dmd -ofcompiler $(FILES)

compiler_debug: $(FILES)
	dmd -ofcompiler_debug $(FILES) -debug=COMPILE_TRACE -debug=TRACE

compiler_multithread: $(FILES) runtime
	dmd -ofcompiler_multithread $(FILES) -version=MULTITHREAD
	make -C stdlib realclean
	make -C stdlib COMPILER="../compiler_multithread"

.PHONY: runtime
runtime:
	make -C runtime

.PHONY: stdlib
stdlib:
	make -C stdlib

parser.d: lang.peg ParserGenerator/parserGenerator
	ParserGenerator/parserGenerator < lang.peg > parser.d

ParserGenerator/parserGenerator: ParserGenerator
	make -C ParserGenerator

ParserGenerator:
	git clone https://github.com/CollinReeser/ParserGenerator.git

.PHONY: clean
{'fraction_non_alphanumeric': 0.11035607502038597, 'fraction_numerical': 0.0, 'mean_word_length': 5.467486818980668, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '385954', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1226, 'n_words': 271}