<commit_before>.DEFAULT_GOAL := help


define LEAD_AUTHORS
Lead developers:
    <NAME>
    <NAME>
    <NAME>
endef
export LEAD_AUTHORS


define FDF_SHORTLOG
Commits from obsolete FDF repository:
   261  <NAME>
    41  <NAME>
    17  ktritz
    10  <NAME>
     7  <NAME>
     4  hyyuh
     2  jcschmitt
endef
export FDF_SHORTLOG

define PRINT_HELP_PYSCRIPT
import re, sys
for line in sys.stdin:
	match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
	if match:
		target, help = match.groups()
		print("%-20s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT


define BROWSER_PYSCRIPT
import os, webbrowser, sys
try:
	from urllib import pathname2url
except:
	from urllib.request import pathname2url

webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))
endef
export BROWSER_PYSCRIPT
BROWSER := python -c "$$BROWSER_PYSCRIPT"


.PHONY: help
help: ## show this help message
	@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)


.PHONY: docs
docs: docs-html docs-pdf ## build HTML and PDF documents


.PHONY: docs-html
docs-html: ## build HTML documents
	$(MAKE) -C docs/ html
	@$(BROWSER) docs/build/html/index.html


.PHONY: docs-pdf
docs-pdf: ## build PDF documents
	$(MAKE) -C docs/ latexpdf


.PHONY: lint
lint:  ## run flake8 for code quality review
	flake8 --exit-zero fdp/ test/


.PHONY: autopep
autopep:  ## run autopep8 to fix minor pep8 violations
	autopep8 --in-place -r fdp/
	autopep8 --in-place -r test/


.PHONY: authors
authors:  ## create AUTHORS.txt
	@echo "$$LEAD_AUTHORS" > AUTHORS.txt
	@echo "Commits from authors:" >> AUTHORS.txt
	@git shortlog -s -n >> AUTHORS.txt
	@echo "$$FDF_SHORTLOG" >> AUTHORS.txt


.PHONY: bump-minor
bump-minor: ## bump minor version and push new tag
	# `bumpversion` creates commit and tag
	bumpversion minor
	git push --tags


.PHONY: bump-patch
bump-patch: ## bump patch version and push new tag
	# `bumpversion` creates commit and tag
	bumpversion patch
	git push --tags
<commit_msg>added  recipe in Makefile<commit_after>.DEFAULT_GOAL := help


define LEAD_AUTHORS
Lead developers:
    <NAME>
    <NAME>
    <NAME>
endef
export LEAD_AUTHORS


define FDF_SHORTLOG
Commits from obsolete FDF repository:
   261  <NAME>
    41  <NAME>
    17  ktritz
    10  <NAME>
     7  <NAME>
     4  hyyuh
     2  jcschmitt
endef
export FDF_SHORTLOG

define PRINT_HELP_PYSCRIPT
import re, sys
for line in sys.stdin:
	match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
	if match:
		target, help = match.groups()
		print("%-20s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT


define BROWSER_PYSCRIPT
import os, webbrowser, sys
try:
	from urllib import pathname2url
except:
	from urllib.request import pathname2url

webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))
endef
export BROWSER_PYSCRIPT
BROWSER := python -c "$$BROWSER_PYSCRIPT"


.PHONY: help
help: ## show this help message
	@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)


.PHONY: docs
docs: docs-html docs-pdf ## build HTML and PDF documents


.PHONY: docs-html
docs-html: ## build HTML documents
	$(MAKE) -C docs/ html
	@$(BROWSER) docs/build/html/index.html


.PHONY: docs-pdf
docs-pdf: ## build PDF documents
	$(MAKE) -C docs/ latexpdf


.PHONY: lint
lint:  ## run flake8 for code quality review
	flake8 --exit-zero fdp/ test/


.PHONY: autopep
autopep:  ## run autopep8 to fix minor pep8 violations
	autopep8 --in-place -r fdp/
	autopep8 --in-place -r test/


.PHONY: authors
authors:  ## create AUTHORS.txt
	@echo "$$LEAD_AUTHORS" > AUTHORS.txt
	@echo "Commits from authors:" >> AUTHORS.txt
	@git shortlog -s -n >> AUTHORS.txt
	@echo "$$FDF_SHORTLOG" >> AUTHORS.txt


.PHONY: bump-major
bump-major: ## bump major version and push new tag
	# `bumpversion` creates commit and tag
	bumpversion major
	git push --tags


.PHONY: bump-minor
bump-minor: ## bump minor version and push new tag
	# `bumpversion` creates commit and tag
	bumpversion minor
	git push --tags


.PHONY: bump-patch
bump-patch: ## bump patch version and push new tag
	# `bumpversion` creates commit and tag
	bumpversion patch
	git push --tags

{'fraction_non_alphanumeric': 0.11917606669936243, 'fraction_numerical': 0.011770475723393821, 'mean_word_length': 3.672394043528064, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 31, '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': '3148933', 'n_tokens_mistral': 1663, 'n_tokens_neox': 1550, 'n_words': 463}