<commit_before># Default Goal. Just run node in development mode.
# to start the server, just run 'make'
run:
	@ENV=dev \
	MONGOLAB_URI=mongodb://localhost/dev \
	$(MAKE) run

run-test:
	@ENV=test \
	MONGOLAB_URI=mongodb://localhost/test \
	node coffee_bridge.js 1>log/test.log 2>&1 & echo "$$!" > /tmp/node.pid
	sleep 10

run-test-visible:
	@ENV=test \
	MONGOLAB_URI=mongodb://localhost/test \
	node coffee_bridge.js

kill-test-node:
	-@kill -9 $(shell cat /tmp/node.pid) 2>/dev/null

unit:
	@ENV=test \
	WINSTON=error ./node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register ./test/unit

integration:
	WINSTON=error \
	MONGOLAB_URI=mongodb://localhost/test \
	./node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register ./test/integration

server:
	$(MAKE) run-test<commit_msg>Don't put files in random places.<commit_after># Default Goal. Just run node in development mode.
# to start the server, just run 'make'
run:
	@ENV=dev \
	MONGOLAB_URI=mongodb://localhost/dev \
	$(MAKE) run

run-test:
	@ENV=test \
	MONGOLAB_URI=mongodb://localhost/test \
	node coffee_bridge.js 1>test.log 2>&1 & echo "$$!" > node.pid
	sleep 10

run-test-visible:
	@ENV=test \
	MONGOLAB_URI=mongodb://localhost/test \
	node coffee_bridge.js

kill-test-node:
	-@kill -9 $(shell cat node.pid) 2>/dev/null

unit:
	@ENV=test \
	WINSTON=error ./node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register ./test/unit

integration:
	WINSTON=error \
	MONGOLAB_URI=mongodb://localhost/test \
	./node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register ./test/integration

server:
	$(MAKE) run-test
{'fraction_non_alphanumeric': 0.1498150431565968, 'fraction_numerical': 0.008631319358816275, 'mean_word_length': 3.948170731707317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '839295', 'n_tokens_mistral': 658, 'n_tokens_neox': 618, 'n_words': 126}