<commit_before>BIN   = ./node_modules/.bin
PATH := $(BIN):$(PATH)
LIB   = $(shell find lib -name "*.js")
DIST   = $(patsubst lib/%.js,dist/%.js,$(LIB))

install:
	@npm $@

dist: $(DIST)
dist/%.js: lib/%.js
	@mkdir -p $(@D)
	$(BIN)/babel $< -o $@

lint:
	@ echo "\nLinting source files, hang on..."
	@ $(BIN)/eslint ./lib ./example

test: lint
	@echo "\nTesting source files, hang on..."
	@NODE_ENV=test $(BIN)/babel-istanbul cover  \
		./node_modules/mocha/bin/_mocha --        \
		--require lib/__tests__/testdom           \
		./lib/__tests__/*.test.js

test-build:
	@echo "\nTesting build files, almost there..!"
	@NODE_ENV=test $(BIN)/mocha         \
		--require dist/__tests__/testdom  \
		./dist/__tests__/*.test.js

coveralls:
	@cat ./coverage/lcov.info | $(BIN)/coveralls

clean:
	@rm -rf ./dist
	@rm -rf ./coverage

build: test clean dist test-build

dev:<commit_msg>chore: code style in make file and more consistency in wording<commit_after>BIN   = ./node_modules/.bin
PATH := $(BIN):$(PATH)
LIB   = $(shell find lib -name "*.js")
DIST   = $(patsubst lib/%.js,dist/%.js,$(LIB))

install:
	@ npm $@

dist: $(DIST)
dist/%.js: lib/%.js
	@ mkdir -p $(@D)
	$(BIN)/babel $< -o $@

lint:
	@ echo "\nLinting source files, hang on..."
	@ $(BIN)/eslint ./lib ./example

test:
	@ echo "\nTesting source files, hang on..."
	@ NODE_ENV=test $(BIN)/babel-istanbul cover  \
		./node_modules/mocha/bin/_mocha --        \
		--require lib/__tests__/testdom           \
		./lib/__tests__/*.test.js

test-dist:
	@ echo "\nTesting build files, almost there..!"
	@ NODE_ENV=test $(BIN)/mocha         \
		--require dist/__tests__/testdom  \
		./dist/__tests__/*.test.js

coveralls:
	@ cat ./coverage/lcov.info | $(BIN)/coveralls

clean:
	@ rm -rf ./dist
	@ rm -rf ./coverage

build: lint test clean dist test-dist

dev:
{'fraction_non_alphanumeric': 0.19767441860465115, 'fraction_numerical': 0.0, 'mean_word_length': 2.6431451612903225, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1703059', 'n_tokens_mistral': 730, 'n_tokens_neox': 695, 'n_words': 165}