<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#

PROJECT=hypothesis_couchdb
PYTHON=`which python3`
PIP=`which pip`
COVERAGE=`which coverage`
PYLINT=`which pylint`
FLAKE8=`which flake8`
SPHINX=`which sphinx-build`


.PHONY: help
# target: help - Prints this help
help:
	@egrep "^# target:" Makefile | sed -e 's/^# target: //g' | sort


.PHONY: venv
# target: venv - Setups virtual environment
venv:
	${PYTHON} -m venv venv
	@echo "Virtuanenv has been created. Don't forget to run . venv/bin/active"


.PHONY: dev
# target: dev - Installs project for further developing
dev:
	@$(PIP) install -e .[dev]


.PHONY: install
# target: install - Installs hypothesis_couchdb package
install:
	${PYTHON} setup.py install


.PHONY: clean
# target: clean - Removes intermediate and generated files
clean:
	rm -rf `find . -name __pycache__`
	rm -f `find . -type f -name '*.py[co]' `
	rm -f `find . -type f -name '*.orig' `
	rm -f `find . -type f -name '*.rej' `
	rm -f .coverage
	rm -rf coverage
	rm -rf build
	rm -rf cover
	make -C docs clean
	python setup.py clean


.PHONY: purge
# target: purge - Removes all unversioned files and resets repository
purge:
	git reset --hard HEAD
	git clean -xdff


.PHONY: check
# target: check - Runs tests
check:
	@$(PYTHON) setup.py test


.PHONY: check-all
# target: check-all - Runs lint checks, tests and generates coverage report
check-all: flake pylint-errors check-cov


.PHONY: check-cov
# target: check-cov - Runs tests and generates coverage report
check-cov: coverage-run coverage-report


coverage-run:
	@$(COVERAGE) run setup.py test -q
coverage-report:
	@$(COVERAGE) report -m --fail-under=100 --show-missing


.PHONY: distcheck
# target: distcheck - Checks if project is ready to ship
distcheck: distcheck-clean distcheck-33 distcheck-34
distcheck-clean:
	rm -rf distcheck
distcheck-33:
	mkdir -p distcheck
	virtualenv --python=python3.3 distcheck/venv-3.3
	distcheck/venv-3.3/bin/python setup.py install
	distcheck/venv-3.3/bin/python setup.py test
distcheck-34:
	mkdir -p distcheck
	python3.4 -m venv distcheck/venv-3.4
	distcheck/venv-3.4/bin/python setup.py install
	distcheck/venv-3.4/bin/python setup.py test


flake:
	${FLAKE8} --max-line-length=80 --statistics --exclude=tests --ignore=E501,F403 ${PROJECT}


.PHONY: pylint
# target: pylint - Runs pylint checks
pylint:
	${PYLINT} --rcfile=.pylintrc ${PROJECT}


.PHONY: pylint-errors
# target: pylint-errors - Reports about pylint errors
pylint-errors:
	${PYLINT} --rcfile=.pylintrc -E ${PROJECT}


.PHONY: pypi
# target: pypi - Uploads package on PyPI
pypi:
	${PYTHON} setup.py sdist register upload
<commit_msg>Better make clean<commit_after># Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#

PROJECT=hypothesis_couchdb
PYTHON=`which python3`
PIP=`which pip`
COVERAGE=`which coverage`
PYLINT=`which pylint`
FLAKE8=`which flake8`
SPHINX=`which sphinx-build`


.PHONY: help
# target: help - Prints this help
help:
	@egrep "^# target:" Makefile | sed -e 's/^# target: //g' | sort


.PHONY: venv
# target: venv - Setups virtual environment
venv:
	${PYTHON} -m venv venv
	@echo "Virtuanenv has been created. Don't forget to run . venv/bin/active"


.PHONY: dev
# target: dev - Installs project for further developing
dev:
	@$(PIP) install -e .[dev]


.PHONY: install
# target: install - Installs hypothesis_couchdb package
install:
	${PYTHON} setup.py install


.PHONY: clean
# target: clean - Removes intermediate and generated files
clean:
	@find $(PROJECT) -type f -name '*.py[co]' -delete
	@find $(PROJECT) -type d -name '__pycache__' -delete
	@rm -f .coverage
	@rm -rf {build,cover,coverage}
	@rm -rf "$(PROJECT).egg-info"
	@$(PYTHON) setup.py clean


.PHONY: purge
# target: purge - Removes all unversioned files and resets repository
purge:
	git reset --hard HEAD
	git clean -xdff


.PHONY: check
# target: check - Runs tests
check:
	@$(PYTHON) setup.py test


.PHONY: check-all
# target: check-all - Runs lint checks, tests and generates coverage report
check-all: flake pylint-errors check-cov


.PHONY: check-cov
# target: check-cov - Runs tests and generates coverage report
check-cov: coverage-run coverage-report


coverage-run:
	@$(COVERAGE) run setup.py test -q
coverage-report:
	@$(COVERAGE) report -m --fail-under=100 --show-missing


.PHONY: distcheck
# target: distcheck - Checks if project is ready to ship
distcheck: distcheck-clean distcheck-33 distcheck-34
distcheck-clean:
	rm -rf distcheck
distcheck-33:
	mkdir -p distcheck
	virtualenv --python=python3.3 distcheck/venv-3.3
	distcheck/venv-3.3/bin/python setup.py install
	distcheck/venv-3.3/bin/python setup.py test
distcheck-34:
	mkdir -p distcheck
	python3.4 -m venv distcheck/venv-3.4
	distcheck/venv-3.4/bin/python setup.py install
	distcheck/venv-3.4/bin/python setup.py test


flake:
	${FLAKE8} --max-line-length=80 --statistics --exclude=tests --ignore=E501,F403 ${PROJECT}


.PHONY: pylint
# target: pylint - Runs pylint checks
pylint:
	${PYLINT} --rcfile=.pylintrc ${PROJECT}


.PHONY: pylint-errors
# target: pylint-errors - Reports about pylint errors
pylint-errors:
	${PYLINT} --rcfile=.pylintrc -E ${PROJECT}


.PHONY: pypi
# target: pypi - Uploads package on PyPI
pypi:
	${PYTHON} setup.py sdist register upload

{'fraction_non_alphanumeric': 0.11621534493874919, 'fraction_numerical': 0.013862024500322373, 'mean_word_length': 3.901263823064771, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1603984', 'n_tokens_mistral': 2302, 'n_tokens_neox': 2185, 'n_words': 727}