<commit_before>PYTHON=python2.6

all: test

install:
	$(PYTHON) setup.py install --user

test: install
	$(PYTHON) test/test_psutil.py

memtest: install
	$(PYTHON) test/test_memory_leaks.py

pep8:
	pep8 psutil/ test/ examples/ setup.py --ignore E501

pyflakes:
	pyflakes psutil/ test/ examples/ setup.py

clean:
	rm -v -rf `find . -name __pycache__`
	rm -v -rf `find . -name '*.egg-info' `
	rm -v -f `find . -type f -name '*.py[co]' `
	rm -v -f `find . -type f -name '*.so' `
	rm -v -f `find . -type f -name '.*~' `
	rm -v -f `find . -type f -name '*.orig' `
	rm -v -f `find . -type f -name '*.bak' `<commit_msg>add Makefile in order to ease-up repetitive tasks<commit_after>PYTHON=python3

all: test

install:
	if [ $PYTHON = "python2.4" ];then \
		echo "This can only be used on OSX/i386" ; \
		exit 1 ;\
	else \
		sudo $(PYTHON) setup.py install; \
	fi

test: install

memtest: install
	$(PYTHON) test/test_memory_leaks.py

pep8:
	pep8 psutil/ test/ examples/ setup.py --ignore E501

pyflakes:
	pyflakes psutil/ test/ examples/ setup.py

clean:
	rm -v -rf `find . -name __pycache__`
	rm -v -rf `find . -name '*.egg-info' `
	rm -v -f `find . -type f -name '*.py[co]' `
	rm -v -f `find . -type f -name '*.so' `
	rm -v -f `find . -type f -name '.*~' `
	rm -v -f `find . -type f -name '*.orig' `
	rm -v -f `find . -type f -name '*.bak' `
{'fraction_non_alphanumeric': 0.17827715355805243, 'fraction_numerical': 0.014232209737827715, 'mean_word_length': 2.4791666666666665, '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': '577660', 'n_tokens_mistral': 600, 'n_tokens_neox': 581, 'n_words': 185}