<commit_before># Copyright (c) 2011, Open Technologies Bulgaria, Ltd. <http://otb.bg>
# Author: <NAME> <<EMAIL>>

version := $(shell python setup.py --version)

github:
	git push -u origin master --tags

tar:
	tar -czvf openshift-$(version).tar.gz README LICENSE setup.py openshift/

rpm: tar
	rpmbuild --define "_topdir  %(pwd)" \
	--define "_builddir /tmp" \
	--define "_rpmdir %{_topdir}" \
	--define "_srcrpmdir %{_topdir}" \
	--define "_specdir %{_topdir}" \
	--define "_sourcedir  %{_topdir}" \
	-ba python-openshift.spec

	mv noarch/*.rpm .

release: tar rpm

rpm-test:
	rpmlint -i *.rpm *.spec

sanity-test:
	chmod a+x tests/sanity.sh
	./tests/sanity.sh

unit-test:
	for f in tests/*.py; do python $$f; done

test: sanity-test unit-test

clean:
	rm -rf noarch/ BUILDROOT/
	rm -f openshift/*.pyc
	rm -f tests/*.pyc

distclean: clean
	rm -f *.rpm *.tar.gz

help:
	@echo "Usage: make <target>                                    "
	@echo "                                                        "
	@echo " github - push to GitHub                                "
	@echo " tar - make a tarball                                   "
	@echo " rpm - create rpm package                               "
	@echo " release - build all release files                      "
	@echo " rpm-test - test all packages/spec files with rpmlint   "
	@echo " sanity-test - run all sanity tests                     "
	@echo " unit-test - run all unit tests                         "
	@echo " test - run all available tests                         "
	@echo " clean - clean files used to build                      "
	@echo " distclean - execute clean and remove all output files  "
	@echo " help - show this help and exit                         "<commit_msg>add target to build and run all tests<commit_after># Copyright (c) 2011, Open Technologies Bulgaria, Ltd. <http://otb.bg>
# Author: <NAME> <<EMAIL>>

version := $(shell python setup.py --version)

github:
	git push -u origin master --tags

tar:
	tar -czvf openshift-$(version).tar.gz README LICENSE setup.py openshift/

rpm: tar
	rpmbuild --define "_topdir  %(pwd)" \
	--define "_builddir /tmp" \
	--define "_rpmdir %{_topdir}" \
	--define "_srcrpmdir %{_topdir}" \
	--define "_specdir %{_topdir}" \
	--define "_sourcedir  %{_topdir}" \
	-ba python-openshift.spec

	mv noarch/*.rpm .

release: tar rpm

rpm-test: rpm
	rpmlint -i *.rpm *.spec

sanity-test:
	chmod a+x tests/sanity.sh
	./tests/sanity.sh

unit-test:
	for f in tests/*.py; do python $$f; done

test: sanity-test unit-test rpm-test

all: release test

clean:
	rm -rf noarch/ BUILDROOT/
	rm -f openshift/*.pyc
	rm -f tests/*.pyc

distclean: clean
	rm -f *.rpm *.tar.gz

help:
	@echo "Usage: make <target>                                    "
	@echo "                                                        "
	@echo " all - build all files and run all tests                "
	@echo " github - push to GitHub                                "
	@echo " tar - make a tarball                                   "
	@echo " rpm - create rpm package                               "
	@echo " release - build all release files                      "
	@echo " rpm-test - test all packages/spec files with rpmlint   "
	@echo " sanity-test - run all sanity tests                     "
	@echo " unit-test - run all unit tests                         "
	@echo " test - run all available tests                         "
	@echo " clean - clean files used to build                      "
	@echo " distclean - execute clean and remove all output files  "
	@echo " help - show this help and exit                         "
{'fraction_non_alphanumeric': 0.11561978877153975, 'fraction_numerical': 0.0022234574763757642, 'mean_word_length': 1.5929394812680115, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1574288', 'n_tokens_mistral': 1180, 'n_tokens_neox': 1090, 'n_words': 371}