<commit_before>PROFILE_FILE := profile_$(shell /bin/date +'%Y-%m-%d-%H-%M-%S')

###
# Testing and linting
###

.PHONY : lint
lint :
	pylint calliope

.PHONY : test
test :
    py.test --cov calliope --cov-report term-missing
    # Run simple profiling job to spot major performance regressions
    calliope run calliope/example_model/run_profiling.yaml --profile

.PHONY : profile
profile :
	mprof run -C -T 1.0 --python calliope run calliope/example_model/run_profiling.yaml --profile --profile_filename=$(PROFILE_FILE).profile
	pyprof2calltree -i $(PROFILE_FILE).profile -o $(PROFILE_FILE).calltree
	gprof2dot -f callgrind $(PROFILE_FILE).calltree | dot -Tsvg -o $(PROFILE_FILE).callgraph.svg

.PHONY : profile-clean
profile-clean :
	rm profile_*
	rm mprofile_*

.PHONY : ci
ci :
ifeq ($(JOB_TYPE), lint)
	make lint
else
	make test
endif

.PHONY : all-ci
all-ci : test lint

###
# Build package and upload to PyPI
###

.PHONY : sdist
sdist :
	python setup.py sdist

.PHONY : upload
upload :
	twine upload dist/*

.PHONY : clean
clean :
	rm dist/*

.PHONY : all-dist
all-dist : sdist upload clean
<commit_msg>Fix Makefile from e0a1195: spaces to tabs<commit_after>PROFILE_FILE := profile_$(shell /bin/date +'%Y-%m-%d-%H-%M-%S')

###
# Testing and linting
###

.PHONY : lint
lint :
	pylint calliope

.PHONY : test
test :
	py.test --cov calliope --cov-report term-missing
	# Run simple profiling job to spot major performance regressions
	calliope run calliope/example_model/run_profiling.yaml --profile

.PHONY : profile
profile :
	mprof run -C -T 1.0 --python calliope run calliope/example_model/run_profiling.yaml --profile --profile_filename=$(PROFILE_FILE).profile
	pyprof2calltree -i $(PROFILE_FILE).profile -o $(PROFILE_FILE).calltree
	gprof2dot -f callgrind $(PROFILE_FILE).calltree | dot -Tsvg -o $(PROFILE_FILE).callgraph.svg

.PHONY : profile-clean
profile-clean :
	rm profile_*
	rm mprofile_*

.PHONY : ci
ci :
ifeq ($(JOB_TYPE), lint)
	make lint
else
	make test
endif

.PHONY : all-ci
all-ci : test lint

###
# Build package and upload to PyPI
###

.PHONY : sdist
sdist :
	python setup.py sdist

.PHONY : upload
upload :
	twine upload dist/*

.PHONY : clean
clean :
	rm dist/*

.PHONY : all-dist
all-dist : sdist upload clean

{'fraction_non_alphanumeric': 0.12561466249441217, 'fraction_numerical': 0.00581135449262405, 'mean_word_length': 3.721518987341772, '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': '27096', 'n_tokens_mistral': 864, 'n_tokens_neox': 848, 'n_words': 232}