<commit_before>init:
	python setup.py develop
	pip install -r requirements.txt

test:
	nosetests  test_requests.py

ci: init
	nosetests test_requests.py --with-xunit --xunit-file=junit-report.xml

stats:
	pyflakes requests | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > violations.pyflakes.txt

site:
	cd docs; make dirhtml

pyc:
	find . -name "*.pyc" -exec rm '{}' ';'

deps:
	rm -fr requests/packages/urllib3
	git clone https://github.com/shazow/urllib3.git
	cd urllib3 && git checkout python3 && cd ..
	mv urllib3/urllib3 requests/packages/
	rm -fr urllib3

docs: site<commit_msg>moar tests<commit_after>SHELL := /bin/bash

init:
	python setup.py develop
	pip install -r requirements.txt

test:
	nosetests --with-color

server:
	gunicorn httpbin:app --bind=0.0.0.0:7077 &

ci: init
	nosetests --with-xunit --xunit-file=junit-report.xml

stats:
	pyflakes requests | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > violations.pyflakes.txt

site:
	cd docs; make dirhtml

pyc:
	find . -name "*.pyc" -exec rm '{}' ';'

deps:
	rm -fr requests/packages/urllib3
	git clone https://github.com/shazow/urllib3.git
	cd urllib3 && git checkout python3 && cd ..
	mv urllib3/urllib3 requests/packages/
	rm -fr urllib3

docs: site
{'fraction_non_alphanumeric': 0.15415986949429036, 'fraction_numerical': 0.022838499184339316, 'mean_word_length': 3.5613382899628254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 1, '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': '5019537', 'n_tokens_mistral': 524, 'n_tokens_neox': 511, 'n_words': 127}