<commit_before>NAME=mail1
VERSION=$(shell changelog release version)
BUILD_DIR=build

YELLOW=\033[1m\033[93m
CYAN=\033[1m\033[96m
CLEAR=\033[0m

.PHONY: env test

help:
	@echo "$(CYAN)init$(CLEAR)     Build virtualenv"
	@echo "$(CYAN)clean$(CLEAR)    Clean generated files"
	@echo "$(CYAN)check$(CLEAR)    Check Python code"
	@echo "$(CYAN)test$(CLEAR)     Run unit tests"
	@echo "$(CYAN)package$(CLEAR)  Build package"
	@echo "$(CYAN)release$(CLEAR)  Release project"

init:
	@echo "$(YELLOW)Building virtualenv$(CLEAR)"
	rm -rf env
	virtualenv env
	. env/bin/activate && pip install -r etc/requirements.txt

clean:
	@echo "$(YELLOW)Cleaning generated files$(CLEAR)"
	rm -rf $(BUILD_DIR)
	rm -f `find $(NAME) -name "*.pyc"`

check:
	@echo "$(YELLOW)Checking Python code$(CLEAR)"
	. env/bin/activate && pylint --rcfile=etc/pylint.cfg $(NAME)

test: 
	@echo "$(YELLOW)Running unit tests$(CLEAR)"
	. env/bin/activate && python -m $(NAME).test_$(NAME)

package: test clean
	@echo "$(YELLOW)Building package$(CLEAR)"
	mkdir -p $(BUILD_DIR)
	cp etc/setup.py $(BUILD_DIR)/
	sed -i -e "s/VERSION/$(VERSION)/" $(BUILD_DIR)/setup.py
	pandoc -f markdown -t rst README.md > $(BUILD_DIR)/README.rst
	cp -r LICENSE.txt etc/MANIFEST.in $(NAME) $(BUILD_DIR)/
	cd $(BUILD_DIR) && python setup.py sdist -d .<commit_msg>Run check before test<commit_after>NAME=mail1
VERSION=$(shell changelog release version)
BUILD_DIR=build

YELLOW=\033[1m\033[93m
CYAN=\033[1m\033[96m
CLEAR=\033[0m

.PHONY: env test

help:
	@echo "$(CYAN)init$(CLEAR)     Build virtualenv"
	@echo "$(CYAN)clean$(CLEAR)    Clean generated files"
	@echo "$(CYAN)check$(CLEAR)    Check Python code"
	@echo "$(CYAN)test$(CLEAR)     Run unit tests"
	@echo "$(CYAN)package$(CLEAR)  Build package"
	@echo "$(CYAN)release$(CLEAR)  Release project"

init:
	@echo "$(YELLOW)Building virtualenv$(CLEAR)"
	rm -rf env
	virtualenv env
	. env/bin/activate && pip install -r etc/requirements.txt

clean:
	@echo "$(YELLOW)Cleaning generated files$(CLEAR)"
	rm -rf $(BUILD_DIR)
	rm -f `find $(NAME) -name "*.pyc"`

check:
	@echo "$(YELLOW)Checking Python code$(CLEAR)"
	. env/bin/activate && pylint --rcfile=etc/pylint.cfg $(NAME)

test: check
	@echo "$(YELLOW)Running unit tests$(CLEAR)"
	. env/bin/activate && python -m $(NAME).test_$(NAME)

package: test clean
	@echo "$(YELLOW)Building package$(CLEAR)"
	mkdir -p $(BUILD_DIR)
	cp etc/setup.py $(BUILD_DIR)/
	sed -i -e "s/VERSION/$(VERSION)/" $(BUILD_DIR)/setup.py
	pandoc -f markdown -t rst README.md > $(BUILD_DIR)/README.rst
	cp -r LICENSE.txt etc/MANIFEST.in $(NAME) $(BUILD_DIR)/
	cd $(BUILD_DIR) && python setup.py sdist -d .
{'fraction_non_alphanumeric': 0.1773022544898739, 'fraction_numerical': 0.01757737867787543, 'mean_word_length': 4.594017094017094, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2379067', 'n_tokens_mistral': 1066, 'n_tokens_neox': 998, 'n_words': 248}