<commit_before>all: setup_py setup_coveralls setup_js setup_django

ci: setup_ci settings_ci all

create-staging:
	virtualenv ~/env
	~/env/bin/pip install -r requirements.txt
	mkdir -p ~/webfiles/static
	mkdir -p ~/webfiles/media

update-staging:
	cp timtec/settings_local_staging.py timtec/settings_local.py
	~/env/bin/pip install -r requirements.txt
	~/env/bin/python manage.py syncdb --noinput
	~/env/bin/python manage.py collectstatic --noinput
	~/env/bin/python manage.py compilemessages
	touch timtec/wsgi.py

staging: create-staging update-staging

python_tests:
	py.test --pep8 --flakes --cov . . $*

karma_tests:
	karma start tests/confkarma.js $*

all_tests: python_tests karma_tests

setup_ci:
	psql -c 'create database timtec_ci;' -U postgres

setup_py:
	pip install -q -r requirements.txt --use-mirrors
	pip install -q -r dev-requirements.txt --use-mirrors
	python setup.py -q develop

setup_coveralls:
	pip install -q coveralls --use-mirrors

setup_js:
	sudo npm -g install less yuglify karma --loglevel silent > /dev/null

setup_django:
	python manage.py syncdb --noinput
	python manage.py compilemessages

settings_ci:
	cp timtec/settings_local_ci.py timtec/settings_local.py<commit_msg>find where npm is on travis before running<commit_after>all: setup_py setup_coveralls setup_js setup_django

ci: setup_ci settings_ci all

create-staging:
	virtualenv ~/env
	~/env/bin/pip install -r requirements.txt
	mkdir -p ~/webfiles/static
	mkdir -p ~/webfiles/media

update-staging:
	cp timtec/settings_local_staging.py timtec/settings_local.py
	~/env/bin/pip install -r requirements.txt
	~/env/bin/python manage.py syncdb --noinput
	~/env/bin/python manage.py collectstatic --noinput
	~/env/bin/python manage.py compilemessages
	touch timtec/wsgi.py

staging: create-staging update-staging

python_tests:
	py.test --pep8 --flakes --cov . . $*

karma_tests:
	karma start tests/confkarma.js $*

all_tests: python_tests karma_tests

setup_ci:
	psql -c 'create database timtec_ci;' -U postgres

setup_py:
	pip install -q -r requirements.txt --use-mirrors
	pip install -q -r dev-requirements.txt --use-mirrors
	python setup.py -q develop

setup_coveralls:
	pip install -q coveralls --use-mirrors

setup_js:
	sudo `which npm` -g install less yuglify karma --loglevel silent > /dev/null

setup_django:
	python manage.py syncdb --noinput
	python manage.py compilemessages

settings_ci:
	cp timtec/settings_local_ci.py timtec/settings_local.py
{'fraction_non_alphanumeric': 0.09987720016373311, 'fraction_numerical': 0.0008186655751125665, 'mean_word_length': 4.039175257731959, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6279998', 'n_tokens_mistral': 917, 'n_tokens_neox': 877, 'n_words': 231}