<commit_before>ACTION?=runserver

current_dir :=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
venv := $(current_dir)/venv
js := $(current_dir)/timeblob/js

default: migrate npm_install

	$(current_dir)/run_default.sh $(current_dir)


jstest: npm_install
	$(js)/node_modules/.bin/gulp test --cwd $(js)

jsbuild: npm_install
	$(js)/node_modules/.bin/gulp --cwd $(js)

pytest: requirements
	$(venv)/bin/python $(current_dir)/manage.py test

npm_install:
	npm --prefix $(js)  install $(js)

test: jstest pytest

jstestwatch:
		$(js)/node_modules/.bin/gulp karma-watch --cwd $(js)

requirements: virtualenv
	if [ -f $(current_dir)/requirements.txt ] ; then $(venv)/bin/pip install -r $(current_dir)/requirements.txt -q ; fi

virtualenv:
	if [ ! -d $(venv) ] ; then virtualenv $(venv) ; fi


migrate: requirements
		$(venv)/bin/python $(current_dir)/manage.py migrate

prepare: requirements npm_install

runserver: default

shell: requirements
	$(venv)/bin/python  $(current_dir)/manage.py shell
<commit_msg>add makemigrations to Makefile<commit_after>ACTION?=runserver

current_dir :=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
venv := $(current_dir)/venv
js := $(current_dir)/timeblob/js

default: migrate npm_install

	$(current_dir)/run_default.sh $(current_dir)


jstest: npm_install
	$(js)/node_modules/.bin/gulp test --cwd $(js)

jsbuild: npm_install
	$(js)/node_modules/.bin/gulp --cwd $(js)

pytest: requirements
	$(venv)/bin/python $(current_dir)/manage.py test

npm_install:
	npm --prefix $(js)  install $(js)

test: jstest pytest

jstestwatch:
		$(js)/node_modules/.bin/gulp karma-watch --cwd $(js)

requirements: virtualenv
	if [ -f $(current_dir)/requirements.txt ] ; then $(venv)/bin/pip install -r $(current_dir)/requirements.txt -q ; fi

virtualenv:
	if [ ! -d $(venv) ] ; then virtualenv $(venv) ; fi


migrate: requirements
		$(venv)/bin/python $(current_dir)/manage.py migrate

makemigrations: requirements
		$(venv)/bin/python $(current_dir)/manage.py makemigrations

prepare: requirements npm_install

runserver: default

shell: requirements
	$(venv)/bin/python  $(current_dir)/manage.py shell

{'fraction_non_alphanumeric': 0.1583101207056639, 'fraction_numerical': 0.0, 'mean_word_length': 4.986111111111111, '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': '1382454', 'n_tokens_mistral': 802, 'n_tokens_neox': 766, 'n_words': 172}