<commit_before>#
# Files.
#

SRCS = index.js
TESTS = test/index.js

#
# Options.
#

GREP ?=.

#
# Tasks.
#

node_modules: $(wildcard package.json node_modules/**/package.json)
	@npm install

clean:
	@rm -rf node_modules *.log
.PHONY: clean

fmt:
	@node_modules/.bin/jsfmt --write $(SRCS) $(TESTS)
.PHONY: fmt

lint:
	@node_modules/.bin/eslint $(SRCS) $(TESTS)
.PHONY: lint

test:
	@if [[ -z "$(BROWSER_NAME)" || -z "$(BROWSER_VERSION)" ]]; then make test-node; else make test-browser; fi
.PHONY: test
.DEFAULT_GOAL = test

test-node:
	@node_modules/.bin/mocha \
		--ui bdd \
		--reporter spec \
		--grep "$(GREP)" \
		$(TESTS)
.PHONY: test-node

test-browser:
	@node_modules/.bin/zuul \
		--browser-version "$(BROWSER_VERSION)" \
		--browser-name "$(BROWSER_NAME)" \
		-- $(TESTS)
.PHONY: test-browser<commit_msg>CircleCI -> Travis<commit_after>#
# Files.
#

SRCS = index.js
TESTS = test/index.js

#
# Options.
#

GREP ?=.

#
# Tasks.
#

node_modules: $(wildcard package.json node_modules/**/package.json)
	@npm install

clean:
	@rm -rf node_modules *.log
.PHONY: clean

fmt:
	@node_modules/.bin/jsfmt --write $(SRCS) $(TESTS)
.PHONY: fmt

lint:
	@node_modules/.bin/eslint $(SRCS) $(TESTS)
.PHONY: lint

test:
	@if [ -z "$(BROWSER_NAME)" ] && [ -z "$(BROWSER_VERSION)" ]; then make test-node; else make test-browser; fi
.PHONY: test
.DEFAULT_GOAL = test

test-node:
	@node_modules/.bin/mocha \
		--ui bdd \
		--reporter spec \
		--grep "$(GREP)" \
		$(TESTS)
.PHONY: test-node

test-browser:
	@node_modules/.bin/zuul \
		--browser-version "$(BROWSER_VERSION)" \
		--browser-name "$(BROWSER_NAME)" \
		-- $(TESTS)
.PHONY: test-browser
{'fraction_non_alphanumeric': 0.19473361910593998, 'fraction_numerical': 0.0, 'mean_word_length': 3.2552083333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2778286', 'n_tokens_mistral': 743, 'n_tokens_neox': 695, 'n_words': 144}