<commit_before>.PHONY : all test dependencies clean veryclean lint

NODE_MODULES := node_modules/.bin
BOWER_COMPONENTS := bower_components

all: node_modules lint build/sequence-diagram-min.js test

node_modules: package.json
	#
	# NPM update needed.
	#
	npm update

bower_components: bower.json
	#
	# Bower update needed.
	#
	bower update

dependencies: node_modules bower_components

clean:
	-rm build/*

veryclean: clean
	-rm -rf node_modules
	-rm -rf bower_components

lint: dependencies package.json bower.json
	$(NODE_MODULES)/jshint src/*.js
	$(NODE_MODULES)/jshint test/*.js
	$(NODE_MODULES)/jsonlint package.json -q
	$(NODE_MODULES)/jsonlint bower.json -q

test: dependencies build/sequence-diagram-min.js
<commit_msg>Ensure node_modules and bower_components have current last updated timestamps, to stop Make from thinking work is needed when it isn't.<commit_after>.PHONY : all test dependencies clean veryclean lint

NODE_MODULES := node_modules/.bin
BOWER_COMPONENTS := bower_components

all: node_modules lint build/sequence-diagram-min.js test

node_modules: package.json
	#
	# NPM update needed.
	#
	npm update
	touch $@

bower_components: bower.json
	#
	# Bower update needed.
	#
	bower update
	touch $@

dependencies: node_modules bower_components

clean:
	-rm build/*

veryclean: clean
	-rm -rf node_modules
	-rm -rf bower_components

lint: dependencies package.json bower.json
	$(NODE_MODULES)/jshint src/*.js
	$(NODE_MODULES)/jshint test/*.js
	$(NODE_MODULES)/jsonlint package.json -q
	$(NODE_MODULES)/jsonlint bower.json -q

test: dependencies build/sequence-diagram-min.js

{'fraction_non_alphanumeric': 0.09461152882205513, 'fraction_numerical': 0.0, 'mean_word_length': 4.603508771929825, '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': '5403635', 'n_tokens_mistral': 559, 'n_tokens_neox': 560, 'n_words': 143}