<commit_before>SOURCES = lib/**/*.js

TESTS = test/lib/*.js test/lib/**/*.js test/together.js

all: lint test

lint:
	@echo "Running code quality tests..."
	./node_modules/.bin/eslint $(SOURCES) $(TESTS)

lint-fix:
	./node_modules/.bin/eslint $(SOURCES) $(TESTS) --fix

test:
ifeq ($(TRAVIS),true)
	@echo "Running tests for Travis..."
	$(MAKE) travis-cov
else
	@echo "Running tests..."
	./node_modules/.bin/mocha $(TESTS) --recursive
endif

test-cov:
	@echo "Getting coverage report..."
	@NODE_ENV=test ./node_modules/.bin/istanbul cover -x "**/http/**" ./node_modules/.bin/_mocha -- $(TESTS) --recursive

travis-cov:
	@echo "Getting coverage for Travis..."
	./node_modules/.bin/istanbul cover -x "**/http/**" ./node_modules/.bin/_mocha --report lcovonly -- $(TESTS) --recursive -R spec && ./node_modules/.bin/codecov

clean:
	rm -rf coverage

.PHONY: test<commit_msg>update Makefile<commit_after>SOURCES = lib/**/*.js

TESTS = test/lib/*.js test/lib/**/*.js test/together.js

all: lint test

lint:
	@echo "Running code quality tests..."
	eslint $(SOURCES) $(TESTS)

lint-fix:
	eslint $(SOURCES) $(TESTS) --fix

test:
ifeq ($(TRAVIS),true)
	@echo "Running tests for Travis..."
	$(MAKE) travis-cov
else
	@echo "Running tests..."
	mocha $(TESTS) --recursive
endif

test-cov:
	@echo "Getting coverage report..."
	@NODE_ENV=test istanbul cover _mocha -- $(TESTS) --recursive

travis-cov:
	@echo "Getting coverage for Travis..."
	istanbul cover _mocha --report lcovonly -- $(TESTS) --recursive -R spec
	codecov

clean:
	rm -rf coverage

.PHONY: test
{'fraction_non_alphanumeric': 0.1878238341968912, 'fraction_numerical': 0.0, 'mean_word_length': 3.4653179190751446, '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': '3118034', 'n_tokens_mistral': 605, 'n_tokens_neox': 570, 'n_words': 152}