<commit_before>all: develop run

test: lint test-python test-js

lint:
	@echo "Linting Python files"
	flake8 --ignore=E121,W404,F403,E501 --exclude=./docs/*,./env/*,./venv/*,migrations,.git,./tests/functional/features,./tests/functional/steps . || exit 1
	@echo ""

test-python:
	@echo "Running Python tests"
	python manage.py test --settings=server.test_settings || exit 1
	@echo ""

test-js:
	@echo "Running QUnit Javascript tests"
	node_modules/.bin/karma start --reporters=dots || exit 1
	@echo ""

develop:
	npm install
	pip install --upgrade setuptools
	pip install --upgrade "flake8>=2.0"
	pip install --upgrade -r requirements.txt
	python manage.py syncdb --noinput

run:
	python manage.py runserver 0.0.0.0:8000
<commit_msg>Workaround to cp a package.json from npm.json to make nom install work.<commit_after>all: develop run

test: lint test-python test-js

lint:
	@echo "Linting Python files"
	flake8 --ignore=E121,W404,F403,E501 --exclude=./docs/*,./env/*,./venv/*,migrations,.git,./tests/functional/features,./tests/functional/steps . || exit 1
	@echo ""

test-python:
	@echo "Running Python tests"
	python manage.py test --settings=server.test_settings || exit 1
	@echo ""

test-js:
	@echo "Running QUnit Javascript tests"
	node_modules/.bin/karma start --reporters=dots || exit 1
	@echo ""

develop:
	@echo "Heroku will judge this app as a node.js app, if there's a package.json file, but CircleCI need it."
	cp npm.json package.json
	npm install
	rm package.json
	pip install --upgrade setuptools
	pip install --upgrade "flake8>=2.0"
	pip install --upgrade -r requirements.txt
	python manage.py syncdb --noinput

run:
	python manage.py runserver 0.0.0.0:8000
{'fraction_non_alphanumeric': 0.13679808841099164, 'fraction_numerical': 0.03225806451612903, 'mean_word_length': 3.9120234604105573, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4448975', 'n_tokens_mistral': 635, 'n_tokens_neox': 579, 'n_words': 169}