<commit_before>all:
	git submodule init
	git submodule update
	php ./build/build.php<commit_msg>Add a handle serve command to the makefile<commit_after># Use nodemon if available or fallback to node.
RUN = [ -e "`which nodemon`" ] && nodemon --debug . || node --debug .
NODE_CONFIG = $(PWD)/config.node.json

all:
	git submodule init
	git submodule update
	php ./build/build.php

# Run the node server using a custom config file to save updating the two
# when working on both the node and php versions. Just create a
# config.node.json file and it will be loaded instead.
serve:
ifneq ($(wildcard $(NODE_CONFIG)),)
	export JSBIN_CONFIG=$(NODE_CONFIG); $(RUN)
else
	$(RUN)
endif
{'fraction_non_alphanumeric': 0.10471976401179942, 'fraction_numerical': 0.0, 'mean_word_length': 4.183206106870229, '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': '7667868', 'n_tokens_mistral': 213, 'n_tokens_neox': 209, 'n_words': 87}