<commit_before>TESTS = test/*.test.js
REPORTER = spec
TIMEOUT = 20000
MOCHA_OPTS =
BIN = node_modules/.bin/
SRC = $(wildcard lib/*.js)
BUILD = $(subst lib/,build/,$(SRC))

install:
	@npm install --registry=http://r.cnpmjs.org --disturl=http://dist.cnpmjs.org

build: install
	@mkdir -p build
	$(MAKE) $(BUILD)

build/%.js: lib/%.js
	$(BIN)regenerator --include-runtime $< > $@

jshint: install
	@$(BIN)jshint .

test: install
	@NODE_ENV=test $(BIN)mocha \
		--harmony \
		--require co-mocha \
		--reporter $(REPORTER) \
		--timeout $(TIMEOUT) \
		$(MOCHA_OPTS) \
		$(TESTS)

test-cov cov:
	@NODE_ENV=test node --harmony \
		$(BIN)istanbul cover $(BIN)_mocha \<commit_msg>fix makefile<commit_after>TESTS = test/*.test.js
REPORTER = spec
TIMEOUT = 20000
MOCHA_OPTS =
BIN = node_modules/.bin/
SRC = $(wildcard lib/*.js)
BUILD = $(subst lib/,build/,$(SRC))

install:
	@npm install --registry=http://r.cnpmjs.org --disturl=http://dist.cnpmjs.org

build:
	@mkdir -p build
	@$(MAKE) $(BUILD)

build/%.js: lib/%.js
	@$(BIN)regenerator --include-runtime $< > $@

jshint: install
	@$(BIN)jshint .

test: install
	@NODE_ENV=test $(BIN)mocha \
		--harmony \
		--require co-mocha \
		--reporter $(REPORTER) \
		--timeout $(TIMEOUT) \
		$(MOCHA_OPTS) \
		$(TESTS)

test-cov cov:
	@NODE_ENV=test node --harmony \
		$(BIN)istanbul cover $(BIN)_mocha \
{'fraction_non_alphanumeric': 0.19775280898876405, 'fraction_numerical': 0.00749063670411985, 'mean_word_length': 3.4092409240924093, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2413356', 'n_tokens_mistral': 584, 'n_tokens_neox': 540, 'n_words': 110}