<commit_before>COMPOSER_FLAGS = --prefer-dist

all: install

.PHONY: install
install:
	composer install ${COMPOSER_FLAGS}

.PHONY: optimize
optimize: COMPOSER_FLAGS = --no-dev --optimize-autoloader --classmap-authoritative
optimize: install

.PHONY: test
test:
	php vendor/bin/phpunit
	php vendor/bin/phpmd src text phpmd.xml<commit_msg>Include PHPCPD into Makefile<commit_after>COMPOSER_FLAGS = --prefer-dist

all: install

.PHONY: install
install:
	composer install ${COMPOSER_FLAGS}

.PHONY: optimize
optimize: COMPOSER_FLAGS = --no-dev --optimize-autoloader --classmap-authoritative
optimize: install

.PHONY: test
test:
	php vendor/bin/phpunit
	php vendor/bin/phpcpd src
	php vendor/bin/phpmd src text phpmd.xml
{'fraction_non_alphanumeric': 0.10335195530726257, 'fraction_numerical': 0.0, 'mean_word_length': 4.782258064516129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '543159', 'n_tokens_mistral': 268, 'n_tokens_neox': 267, 'n_words': 63}