<commit_before>VENV_NAME=venv

VENV_ACTIVATE = ./$(VENV_NAME)/*/activate

# if `python` command is Python 3, use that, otherwise attempt to use `python3`
# only needed outside of venv; virtualenv sets up "python" symlink accordingly
ifeq ($(shell python --version | sed -e 's/Python\s\([0-9]\).*/\1/'),3)
PYTHON = python
else
PYTHON = python3
endif

.PHONY: help configure pip-install pip-uninstall upgrade clean test run debug stop build build-debug

.DEFAULT_GOAL := help

# this brilliant bit taken from http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help: ## Show this help text
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

configure: ## set up virtualenv, pip. Installs virtualenv globally
	pip install virtualenv
	$(PYTHON) -m virtualenv $(VENV_NAME)
	source $(VENV_ACTIVATE) && pip install -r requirements.txt && deactivate<commit_msg>use correct python for virtualenv pip call<commit_after>VENV_NAME=venv

VENV_ACTIVATE = ./$(VENV_NAME)/*/activate

# if `python` command is Python 3, use that, otherwise attempt to use `python3`
# only needed outside of venv; virtualenv sets up "python" symlink accordingly
ifeq ($(shell python --version | sed -e 's/Python\s\([0-9]\).*/\1/'),3)
PYTHON = python
else
PYTHON = python3
endif

.PHONY: help configure pip-install pip-uninstall upgrade clean test run debug stop build build-debug

.DEFAULT_GOAL := help

# this brilliant bit taken from http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help: ## Show this help text
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

configure: ## set up virtualenv, pip. Installs virtualenv globally
	$(PYTHON) -m pip install virtualenv
	$(PYTHON) -m virtualenv $(VENV_NAME)
	source $(VENV_ACTIVATE) && pip install -r requirements.txt && deactivate
{'fraction_non_alphanumeric': 0.16082474226804125, 'fraction_numerical': 0.0288659793814433, 'mean_word_length': 4.452247191011236, 'pattern_counts': {'":': 2, '<': 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': '3324297', 'n_tokens_mistral': 720, 'n_tokens_neox': 674, 'n_words': 207}