<commit_before>RUN = docker run -it -v $(shell pwd):/data -w /data $(shell cat .docker-image-id)


.PHONY : all test test-local update docker


all : vendor/autoload.php

test : all docker
	$(RUN) vendor/bin/phpunit

test-local : all
	vendor/bin/phpunit

update : all
	vendor/composer.phar update

docker : .docker-image-id


vendor/autoload.php : vendor/composer.phar composer.json composer.lock
	vendor/composer.phar install

vendor/composer.phar :
	mkdir -p vendor
	wget -O $@~ https://github.com/composer/composer/releases/download/1.5.2/composer.phar
	chmod +x $@~
	mv $@~ $@

.docker-image-id : Dockerfile docker/entrypoint
	docker build -q . > $@~
	mv $@~ $@<commit_msg>Update Composer to 1.6.3<commit_after>RUN = docker run -it -v $(shell pwd):/data -w /data $(shell cat .docker-image-id)


.PHONY : all test test-local update docker


all : vendor/autoload.php

test : all docker
	$(RUN) vendor/bin/phpunit

test-local : all
	vendor/bin/phpunit

update : all
	vendor/composer.phar update

docker : .docker-image-id


vendor/autoload.php : vendor/composer.phar composer.json composer.lock
	vendor/composer.phar install

vendor/composer.phar :
	mkdir -p vendor
	wget -O $@~ https://github.com/composer/composer/releases/download/1.6.3/composer.phar
	chmod +x $@~
	mv $@~ $@

.docker-image-id : Dockerfile docker/entrypoint
	docker build -q . > $@~
	mv $@~ $@
{'fraction_non_alphanumeric': 0.14358974358974358, 'fraction_numerical': 0.006593406593406593, 'mean_word_length': 3.4934210526315788, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '991826', 'n_tokens_mistral': 552, 'n_tokens_neox': 504, 'n_words': 117}