<commit_before># Build, package, test, and clean

TESTDIR=tmp-test-dir-with-unique-name

help:
	@echo "Commands:"
	@echo ""
	@echo "    develop       install in editable mode"
	@echo "    test          run the test suite (including doctests)"
	@echo "    check         run all code quality checks (pep8, linter)"
	@echo "    pep8          check for PEP8 style compliance"
	@echo "    lint          run static analysis using pylint"
	@echo "    coverage      calculate test coverage"
	@echo "    clean         clean up build and generated files"
	@echo ""

develop:
	pip install --no-deps -e .

test:
	# Run a tmp folder to make sure the tests are run on the installed version
	# of Fatiando
	mkdir -p $(TESTDIR)
	cd $(TESTDIR); python -c "assert True"
	rm -r $(TESTDIR)

coverage:
	# Run a tmp folder to make sure the tests are run on the installed version
	# of Fatiando
	mkdir -p $(TESTDIR)
	cd $(TESTDIR); python -c "assert True"
	rm -r $(TESTDIR)

pep8:
	flake8 gmtmodernize setup.py

lint:
	pylint gmtmodernize setup.py

check: pep8 lint

package:
	python setup.py sdist --formats=gztar

clean:
	find . -name "*.pyc" -exec rm -v {} \;
	rm -rvf build dist MANIFEST *.egg-info __pycache__ .coverage .cache
	rm -rvf $(TESTDIR)
<commit_msg>Add make rule for building GMT<commit_after># Build, package, test, and clean

TESTDIR=tmp-test-dir-with-unique-name

help:
	@echo "Commands:"
	@echo ""
	@echo "    develop       install in editable mode"
	@echo "    test          run the test suite (including doctests)"
	@echo "    gmt           update and install GMT from source"
	@echo "    check         run all code quality checks (pep8, linter)"
	@echo "    pep8          check for PEP8 style compliance"
	@echo "    lint          run static analysis using pylint"
	@echo "    coverage      calculate test coverage"
	@echo "    clean         clean up build and generated files"
	@echo ""

develop:
	pip install --no-deps -e .

gmt:
	cd tools; ./install_gmt_trunk.sh

test:
	# Run a tmp folder to make sure the tests are run on the installed version
	# of Fatiando
	mkdir -p $(TESTDIR)
	cd $(TESTDIR); python -c "assert True"
	rm -r $(TESTDIR)

coverage:
	# Run a tmp folder to make sure the tests are run on the installed version
	# of Fatiando
	mkdir -p $(TESTDIR)
	cd $(TESTDIR); python -c "assert True"
	rm -r $(TESTDIR)

pep8:
	flake8 gmtmodernize setup.py

lint:
	pylint gmtmodernize setup.py

check: pep8 lint

package:
	python setup.py sdist --formats=gztar

clean:
	find . -name "*.pyc" -exec rm -v {} \;
	rm -rvf build dist MANIFEST *.egg-info __pycache__ .coverage .cache
	rm -rvf $(TESTDIR)

{'fraction_non_alphanumeric': 0.09919261822376009, 'fraction_numerical': 0.00461361014994233, 'mean_word_length': 2.793002915451895, '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': '6896589', 'n_tokens_mistral': 912, 'n_tokens_neox': 895, 'n_words': 341}