<commit_before>BROWSERIFY := node_modules/.bin/browserify
ESLINT := node_modules/.bin/eslint

REPORTER ?= spec
TM_BUNDLE = JavaScript\ mocha.tmbundle
SRC = $(shell find lib -name "*.js" -type f | sort)
SUPPORT = $(wildcard support/*.js)

all: mocha.js

mocha.js: $(SRC) $(SUPPORT)
	@$(BROWSERIFY) ./support/browser-entry \
		--ignore 'fs' \
		--ignore 'glob' \
		--ignore 'jade' \
		--ignore 'path' \
		--ignore 'supports-color' \
		--exclude './lib-cov/mocha' > $@

clean:
	rm -f mocha.js
	rm -rf test-outputs
	rm -fr lib-cov
	rm -f coverage.html

test-cov: lib-cov
	@COV=1 $(MAKE) test REPORTER=html-cov > coverage.html

lib-cov:
	@rm -fr ./$@
	@jscoverage lib $@

lint:
	@sh $(ESLINT) $(SRC)

test: lint test-unit

test-all: lint test-bdd test-tdd test-qunit test-exports test-unit test-integration test-jsapi test-compilers test-glob test-requires test-reporters test-only

test-jsapi:
	@node test/jsapi

test-unit:
	@./bin/mocha \
		--reporter $(REPORTER) \
		test/acceptance/*.js \
		--growl \
		test/*.js

test-integration:
	@./bin/mocha \
		--reporter $(REPORTER) \
		test/integration/*.js
<commit_msg>quick hack: added `make test-w32` target to run only those tests which pass on MSWindows/Msys: node sheel-exec is rather hairy there and several tests in the `make test-all` suite failed because of that. `make test-w32` removed two test suites from the set, the others all pass.<commit_after>BROWSERIFY := node_modules/.bin/browserify
ESLINT := node_modules/.bin/eslint

REPORTER ?= spec
TM_BUNDLE = JavaScript\ mocha.tmbundle
SRC = $(shell find lib -name "*.js" -type f | sort)
SUPPORT = $(wildcard support/*.js)

all: mocha.js

mocha.js: $(SRC) $(SUPPORT)
	@$(BROWSERIFY) ./support/browser-entry \
		--ignore 'fs' \
		--ignore 'glob' \
		--ignore 'jade' \
		--ignore 'path' \
		--ignore 'supports-color' \
		--exclude './lib-cov/mocha' > $@

clean:
	rm -f mocha.js
	rm -rf test-outputs
	rm -fr lib-cov
	rm -f coverage.html

test-cov: lib-cov
	@COV=1 $(MAKE) test REPORTER=html-cov > coverage.html

lib-cov:
	@rm -fr ./$@
	@jscoverage lib $@

lint:
	@sh $(ESLINT) $(SRC)

test: lint test-unit

test-all: lint test-bdd test-tdd test-qunit test-exports test-unit test-integration test-jsapi test-compilers test-glob test-requires test-reporters test-only

test-w32: lint test-bdd test-tdd test-qunit test-exports                            test-jsapi test-compilers test-glob test-requires test-reporters test-only

test-jsapi:
	@node test/jsapi

test-unit:
	@./bin/mocha \
		--reporter $(REPORTER) \
		test/acceptance/*.js \
		--growl \
		test/*.js

test-integration:
	@./bin/mocha \
		--reporter $(REPORTER) \
		test/integration/*.js

{'fraction_non_alphanumeric': 0.1565217391304348, 'fraction_numerical': 0.0030245746691871457, 'mean_word_length': 3.0458715596330275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1098254', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1014, 'n_words': 259}