<commit_before>run: compile_ext
	@PYTHONPATH=.:$$PYTHONPATH python thumbor/server.py -l debug -k thumbor/default.key

compile_ext:
	python setup.py build_ext -i

db:
	@mysql -u root -e 'DROP DATABASE IF EXISTS thumbor'
	@mysql -u root -e 'CREATE DATABASE IF NOT EXISTS thumbor'
	@mysql -u root -e 'CREATE TABLE IF NOT EXISTS images (id int NOT NULL PRIMARY KEY, url VARCHAR(1000) NOT NULL, contents BLOB NOT NULL, security_key VARCHAR(100) NULL, detector_data VARCHAR(2000) NULL, last_update TIMESTAMP);' thumbor

pretest:
	@mysql -u root -e 'DROP DATABASE IF EXISTS thumbor_tests'
	@mysql -u root -e 'CREATE DATABASE IF NOT EXISTS thumbor_tests'
	@mysql -u root -e 'CREATE TABLE IF NOT EXISTS images (id int NOT NULL PRIMARY KEY, url VARCHAR(1000) NOT NULL, contents BLOB NOT NULL, security_key VARCHAR(100) NULL, detector_data VARCHAR(2000) NULL, last_update TIMESTAMP);' thumbor_tests

test: pretest
	@PYTHONPATH=.:$$PYTHONPATH nosetests -v -s --with-coverage --cover-erase --cover-package=thumbor tests

pyvows:
	@PYTHONPATH=.:$$PYTHONPATH pyvows -v --profile --cover --cover_package=thumbor --cover_omit=thumbor/vendor/* --cover_threshold=90 vows/

mysql_test: pretest
	@PYTHONPATH=.:$$PYTHONPATH nosetests -v -s --with-coverage --cover-erase --cover-package=thumbor tests/test_mysql_storage.py<commit_msg>Make vows working<commit_after>run: compile_ext
	@PYTHONPATH=.:$$PYTHONPATH python thumbor/server.py -l debug -k thumbor/default.key

compile_ext:
	python setup.py build_ext -i

db:
	@mysql -u root -e 'DROP DATABASE IF EXISTS thumbor'
	@mysql -u root -e 'CREATE DATABASE IF NOT EXISTS thumbor'
	@mysql -u root -e 'CREATE TABLE IF NOT EXISTS images (id int NOT NULL PRIMARY KEY, url VARCHAR(1000) NOT NULL, contents BLOB NOT NULL, security_key VARCHAR(100) NULL, detector_data VARCHAR(2000) NULL, last_update TIMESTAMP);' thumbor

pretest:
	@mysql -u root -e 'DROP DATABASE IF EXISTS thumbor_tests'
	@mysql -u root -e 'CREATE DATABASE IF NOT EXISTS thumbor_tests'
	@mysql -u root -e 'CREATE TABLE IF NOT EXISTS images (id int NOT NULL PRIMARY KEY, url VARCHAR(1000) NOT NULL, contents BLOB NOT NULL, security_key VARCHAR(100) NULL, detector_data VARCHAR(2000) NULL, last_update TIMESTAMP);' thumbor_tests

test: pretest
	@PYTHONPATH=.:$$PYTHONPATH nosetests -v -s --with-coverage --cover-erase --cover-package=thumbor tests

pyvows: compile_ext
	@PYTHONPATH=.:$$PYTHONPATH pyvows -v --profile --cover --cover_package=thumbor --cover_omit=thumbor/vendor/* --cover_threshold=90 vows/

mysql_test: pretest
	@PYTHONPATH=.:$$PYTHONPATH nosetests -v -s --with-coverage --cover-erase --cover-package=thumbor tests/test_mysql_storage.py
{'fraction_non_alphanumeric': 0.10917361637604246, 'fraction_numerical': 0.01819560272934041, 'mean_word_length': 4.73695652173913, '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': '1927467', 'n_tokens_mistral': 979, 'n_tokens_neox': 938, 'n_words': 302}