<commit_before>SHELL=/bin/bash --login
A3_ROOT=$(shell cat ../../../source_env | grep A3_ROOT | egrep -o '[^=]+$$')
LD_LIBRARY_PATH=$(shell cat ../../../source_env | grep LD_LIBRARY_PATH | egrep -o '[^=]+$$')
TSC=$(A3_ROOT)/bin/tsc
TSLINT=$(A3_ROOT)/bin/tslint
NODE=$(A3_ROOT)/bin/node
# (for more info on tsc, see http://www.typescriptlang.org/)
FIX_TSC_ERROR_FORMAT=perl -ne 'chomp; if (/^(\S+)\((\d+),(\d+)\):(.*)/) { print "$$1:$$2:$$3:\n$$4\n\n"; } else { print "$$_\n"; }'
# (this line makes tsc output work for IDEs that expect gcc error message syntax.)
FIX_TSLINT_ERROR_FORMAT=perl -ne 'chomp; if (/^(\S+)\[(\d+),\s*(\d+)\]:(.*)/) { print "$$1:$$2:$$3:$$4\n"; } else { print "$$_\n"; }'
# (same for tslint)

# make things

compile: compile_tests_browser

AdhocracySpec.ts: .phony
	./AdhocracySpec.sh > AdhocracySpec.ts

AdhocracyIg.ts: .phony
	./AdhocracyIg.sh > AdhocracyIg.ts

compile_tests_browser: AdhocracySpec.ts AdhocracyIg.ts<commit_msg>Fix source_env errors in Makefile<commit_after>SHELL=/bin/bash --login
MAKE_ROOT=$(realpath $(dir $(lastword $(MAKEFILE_LIST))))
A3_ROOT=$(shell cat ${MAKE_ROOT}/../../../../source_env | grep A3_ROOT | egrep -o '[^=]+$$')
LD_LIBRARY_PATH=$(shell cat ${MAKE_ROOT}/../../../../source_env | grep LD_LIBRARY_PATH | egrep -o '[^=]+$$')
TSC=$(A3_ROOT)/bin/tsc
TSLINT=$(A3_ROOT)/bin/tslint
NODE=$(A3_ROOT)/bin/node
# (for more info on tsc, see http://www.typescriptlang.org/)
FIX_TSC_ERROR_FORMAT=perl -ne 'chomp; if (/^(\S+)\((\d+),(\d+)\):(.*)/) { print "$$1:$$2:$$3:\n$$4\n\n"; } else { print "$$_\n"; }'
# (this line makes tsc output work for IDEs that expect gcc error message syntax.)
FIX_TSLINT_ERROR_FORMAT=perl -ne 'chomp; if (/^(\S+)\[(\d+),\s*(\d+)\]:(.*)/) { print "$$1:$$2:$$3:$$4\n"; } else { print "$$_\n"; }'
# (same for tslint)

# make things

compile: compile_tests_browser

AdhocracySpec.ts: .phony
	./AdhocracySpec.sh > AdhocracySpec.ts

AdhocracyIg.ts: .phony
	./AdhocracyIg.sh > AdhocracyIg.ts

compile_tests_browser: AdhocracySpec.ts AdhocracyIg.ts
{'fraction_non_alphanumeric': 0.24331020812685827, 'fraction_numerical': 0.01288404360753221, 'mean_word_length': 4.384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6539345', 'n_tokens_mistral': 882, 'n_tokens_neox': 821, 'n_words': 163}