<commit_before>BROWSER = opera

all: resources/docs.js

test:
	@./node_modules/.bin/nodeunit test

test-browser: test-browser/tests.js
	@$(BROWSER) test-browser/test.html

test-browser/tests.js: test/
	@./node_modules/.bin/browserify test-browser/browserify-entry.js \
		-o test-browser/tests.js

pages:
	@./bin/styledocco -n StyleDocco -o ./ ./resources/docs.css

examples: resources/docs.js
	@./bin/styledocco -n StyleDocco -o ./examples/styledocco \
		--include resources/previews.css resources/docs.css
	@./bin/styledocco -n "Twitter Bootstrap" -o ./examples/bootstrap/docs \
		examples/bootstrap/less/buttons.less

lint:
	@./node_modules/.bin/jshint styledocco.js cli.js resources/ bin/

resources/docs.js: resources/docs-browserify.js
	@./node_modules/.bin/browserify resources/docs-browserify.js \
		| ./node_modules/.bin/uglifyjs -o resources/docs.js
	
.PHONY: all test test-browser pages examples lint<commit_msg>Make sure all deps are installed before making docs.js<commit_after>BROWSER = opera

all: resources/docs.js

test:
	@./node_modules/.bin/nodeunit test

test-browser: test-browser/tests.js
	@$(BROWSER) test-browser/test.html

test-browser/tests.js: test/
	@./node_modules/.bin/browserify test-browser/browserify-entry.js \
		-o test-browser/tests.js

pages:
	@./bin/styledocco -n StyleDocco -o ./ ./resources/docs.css

examples: resources/docs.js
	@./bin/styledocco -n StyleDocco -o ./examples/styledocco \
		--include resources/previews.css resources/docs.css
	@./bin/styledocco -n "Twitter Bootstrap" -o ./examples/bootstrap/docs \
		examples/bootstrap/less/buttons.less

lint:
	@./node_modules/.bin/jshint styledocco.js cli.js resources/ bin/

resources/docs.js: resources/docs-browserify.js
	@npm install -d
	@./node_modules/.bin/browserify resources/docs-browserify.js \
		| ./node_modules/.bin/uglifyjs -o resources/docs.js
	
.PHONY: all test test-browser pages examples lint
{'fraction_non_alphanumeric': 0.14248159831756047, 'fraction_numerical': 0.0, 'mean_word_length': 3.6077481840193704, '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': '7495116', 'n_tokens_mistral': 707, 'n_tokens_neox': 668, 'n_words': 130}