<commit_before>
export PYTHONPATH=.

name=$(shell grep name= setup.py | awk -F "'" '{print $$2}')
version=$(shell grep version= setup.py | awk -F "'" '{print $$2}')

all: lint test

docs: build_docs

build_docs:
	cd docs && make html
	pandoc -t rst README.md | sed -e '1,1s/^[^\\]*//' -e '2d' > README.rst

lint:
	pylint jwt test bench

test: run_test

run_test:
	./test/run/run_pyvows.py -v test

coverage: run_coverage

run_coverage:
	./test/run/run_pyvows.py -v --cover --cover-package jwt --cover-report coverage/coverage.xml test

bench: run_bench

run_bench:
	for b in ./bench/*_bench.py; do $$b; done

bench_gfm: 
	for b in ./bench/*_bench.py; do $$b --gfm; done

node_deps:
	mkdir -p node_modules && npm install jsjws sinon
<commit_msg>Use python2.7 for npm<commit_after>
export PYTHONPATH=.

name=$(shell grep name= setup.py | awk -F "'" '{print $$2}')
version=$(shell grep version= setup.py | awk -F "'" '{print $$2}')

all: lint test

docs: build_docs

build_docs:
	cd docs && make html
	pandoc -t rst README.md | sed -e '1,1s/^[^\\]*//' -e '2d' > README.rst

lint:
	pylint jwt test bench

test: run_test

run_test:
	./test/run/run_pyvows.py -v test

coverage: run_coverage

run_coverage:
	./test/run/run_pyvows.py -v --cover --cover-package jwt --cover-report coverage/coverage.xml test

bench: run_bench

run_bench:
	for b in ./bench/*_bench.py; do $$b; done

bench_gfm: 
	for b in ./bench/*_bench.py; do $$b --gfm; done

node_deps:
	mkdir -p node_modules && npm install --python=2.7 jsjws sinon

{'fraction_non_alphanumeric': 0.16235917826375082, 'fraction_numerical': 0.00927766732935719, 'mean_word_length': 3.4281524926686218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '991870', 'n_tokens_mistral': 640, 'n_tokens_neox': 622, 'n_words': 180}