<commit_before>TESTS = test/*.js
REPORTER = spec

.PHONY: init clean build test dist pack

init:
	npm install

clean:
	rm -rf lib/
	rm -rf test/*.js
	rm -f webp-*.tgz

build: clean
	./node_modules/.bin/coffee -o lib/ -c src/
	./node_modules/.bin/coffee -o test/ -c test/
	cp -r src/*.json lib/

test: build
	@NODE_ENV=test PATH=./test/bin:${PATH} \
		./node_modules/.bin/mocha \
		--require test/utils/env \
		--reporter $(REPORTER) \
		--slow 250 \
		$(TESTS)

validate: build
	@./test/bin/validate

dist: init build test

pack: dist
	@echo "PACKAGE:"
	@npm pack
	@echo ""
	@echo "FILES:"
	@tar -tzf webp*.tgz
<commit_msg>Fixed PATh handling in Makefile<commit_after>TESTS = test/*.js
REPORTER = spec

PATH := ./node_modules/.bin:${PATH}

.PHONY: init clean build test dist pack

init:
	npm install

clean:
	rm -rf lib/
	rm -rf test/*.js
	rm -f webp-*.tgz

build: clean
	coffee -o lib/ -c src/
	coffee -o test/ -c test/
	cp -r src/*.json lib/

test: build
	@NODE_ENV=test PATH=./test/bin:${PATH} mocha \
		--require test/utils/env \
		--reporter $(REPORTER) \
		--slow 250 \
		$(TESTS)

validate: build
	@./test/bin/validate

dist: init build test

pack: dist
	@echo "PACKAGE:"
	@npm pack
	@echo ""
	@echo "FILES:"
	@tar -tzf webp*.tgz

{'fraction_non_alphanumeric': 0.16491511721907842, 'fraction_numerical': 0.004850444624090542, 'mean_word_length': 2.6845238095238093, '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': '1703195', 'n_tokens_mistral': 548, 'n_tokens_neox': 512, 'n_words': 148}