<commit_before>TESTS = test/*.js
REPORTER = spec
TIMEOUT = 5000
MOCHA_OPTS =

node_modules:
	@npm install

test: node_modules
	@NODE_ENV=test ./node_modules/.bin/mocha \
		--harmony \
		--reporter $(REPORTER) \
		--timeout $(TIMEOUT) \
		--require should \
		$(MOCHA_OPTS) \
		$(TESTS)<commit_msg>test: update Makefile<commit_after>TESTS = test/*.js
REPORTER = spec
TIMEOUT = 5000
MOCHA_OPTS =

MOCHA = ./node_modules/.bin/_mocha

IOJS_ENV ?= test

BIN = iojs

ifeq ($(findstring io.js, $(shell which node)),)
	BIN = node
endif

ifeq (node, $(BIN))
	FLAGS = --harmony
endif

node_modules:
	@npm install

test: node_modules
	@NODE_ENV=$(IOJS_ENV) $(BIN) $(FLAGS) \
		$(MOCHA) \
		--harmony \
		--reporter $(REPORTER) \
		--timeout $(TIMEOUT) \
		--require should \
		$(MOCHA_OPTS) \
		$(TESTS)
{'fraction_non_alphanumeric': 0.16540404040404041, 'fraction_numerical': 0.010101010101010102, 'mean_word_length': 3.3333333333333335, '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': '3236600', 'n_tokens_mistral': 347, 'n_tokens_neox': 317, 'n_words': 70}