<commit_before>PLTESTS = tests/*.pl
JSTESTS = tests/*.js

build: public/css/style.min.css public/css/style.css public/js/generated/formathandlers.js public/js/generated/templates.js
public/css/style.min.css: public/css/style.less
	lessc --yui-compress public/css/style.less > public/css/style.min.css
public/css/style.css: public/css/style.less
	lessc public/css/style.less > public/css/style.css
public/js/generated/formathandlers.js: clientjs/formathandlers.js
	node node_modules/browserify/bin/cmd.js clientjs/formathandlers.js > public/js/generated/formathandlers.js
public/js/generated/clients.js: clientjs/templates.js
	node node_modules/browserify/bin/cmd.js clientjs/templates.js > public/js/generated/templates.js

test:
	perl $(PLTESTS)
	mocha --timeout 5000 --reporter tap $(JSTESTS)

.PHONY: build test<commit_msg>Use variables for non-standard executables in Makefile<commit_after>PLTESTS = tests/*.pl
JSTESTS = tests/*.js
NODE = node
LESS = lessc
MOCHA = mocha

build: public/css/style.min.css public/css/style.css public/js/generated/formathandlers.js public/js/generated/templates.js
public/css/style.min.css: public/css/style.less
	$(LESS) --yui-compress public/css/style.less > public/css/style.min.css
public/css/style.css: public/css/style.less
	$(LESS) public/css/style.less > public/css/style.css
public/js/generated/formathandlers.js: clientjs/formathandlers.js
	$(NODE) node_modules/browserify/bin/cmd.js clientjs/formathandlers.js > public/js/generated/formathandlers.js
public/js/generated/clients.js: clientjs/templates.js
	$(NODE) node_modules/browserify/bin/cmd.js clientjs/templates.js > public/js/generated/templates.js

test:
	perl $(PLTESTS)
	$(MOCHA) --timeout 5000 --reporter tap $(JSTESTS)

.PHONY: build test
{'fraction_non_alphanumeric': 0.13581661891117477, 'fraction_numerical': 0.004584527220630372, 'mean_word_length': 4.762376237623762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7067146', 'n_tokens_mistral': 636, 'n_tokens_neox': 622, 'n_words': 99}