<commit_before>all: clean lint test

flake8:
	flake8 --max-complexity=8 app/*.py app/jobs/*.py support/*.py

jshint:
	jshint app/static/*.js app/static/widgets/*/*.js

lint: flake8 jshint

test:
	python app/tests.py

clean:
	rm -f *.pyc app/*.pyc app/jobs/*.pyc support/*.pyc
	rm -fr app/static/.webassets-cache/
	rm -fr app/static/gen/

widget:
	python support/create_widget.py $(NAME)

dashboard:
	python support/create_dashboard.py $(NAME)

debug:
	python app/run.py --debug

run:
	python app/run.py

run-job:
	python app/run.py --job $(NAME)

google-api-auth:
	python support/google_api_auth.py<commit_msg>Only run jshint on Travis<commit_after>all: clean lint test

lint-py:
	flake8 --max-complexity=8 app/*.py app/jobs/*.py support/*.py

lint-js:
ifdef TRAVIS
	jshint app/static/*.js app/static/widgets/*/*.js
else
	@echo "lint-js: Skipping, not running on Travis"
endif

lint: lint-py lint-js

test:
	python app/tests.py

clean:
	rm -f *.pyc app/*.pyc app/jobs/*.pyc support/*.pyc
	rm -fr app/static/.webassets-cache/
	rm -fr app/static/gen/

widget:
	python support/create_widget.py $(NAME)

dashboard:
	python support/create_dashboard.py $(NAME)

debug:
	python app/run.py --debug

run:
	python app/run.py

run-job:
	python app/run.py --job $(NAME)

google-api-auth:
	python support/google_api_auth.py
{'fraction_non_alphanumeric': 0.14961832061068703, 'fraction_numerical': 0.004580152671755725, 'mean_word_length': 3.4591836734693877, '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': '4947729', 'n_tokens_mistral': 539, 'n_tokens_neox': 531, 'n_words': 126}