<commit_before>.PHONY: all test clean db

all: test db

test:
	./vendor/bin/phpspec run
	./vendor/bin/phpunit

clean:
	rm resources/ucd.all.flat.*

db: resources/generated/db

resources/generated/db: resources/ucd.all.flat.xml
	mkdir -p $@
	./bin/ucd repository-transfer xml php

resources/ucd.all.flat.xml: resources/ucd.all.flat.zip<commit_msg>Clear the database before rebuilding.<commit_after>.PHONY: all test clean db

all: test db

test:
	./vendor/bin/phpspec run
	./vendor/bin/phpunit

clean:
	rm -f resources/ucd.all.flat.*
	rm -rf resources/generated/db

db: clean resources/generated/db

resources/generated/db: resources/ucd.all.flat.xml
	mkdir -p $@
	./bin/ucd repository-transfer xml php

resources/ucd.all.flat.xml: resources/ucd.all.flat.zip
{'fraction_non_alphanumeric': 0.13095238095238096, 'fraction_numerical': 0.0, 'mean_word_length': 3.73125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3118171', 'n_tokens_mistral': 285, 'n_tokens_neox': 277, 'n_words': 62}