<commit_before>makefile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
makefile_dir := $(dir $(makefile_path))

build:
	docker build . --tag upload-manager:latest

install:
	docker run -it --rm --name upload-manager -v $(makefile_dir):/srv/app -w /srv/app upload-manager:latest composer install

bash:
	docker run -it --rm --name upload-manager -v $(makefile_dir):/srv/app -w /srv/app upload-manager:latest bash
	
test:
	docker run -it --rm --name upload-manager -v $(makefile_dir):/srv/app -w /srv/app upload-manager:latest /srv/app/vendor/bin/tester -c /srv/app/tests/php.ini -j 40 ./tests<commit_msg>use namespace in docker building<commit_after>makefile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
makefile_dir := $(dir $(makefile_path))

build:
	docker build . --tag ondrs/upload-manager:latest

install:
	docker run -it --rm --name upload-manager -v $(makefile_dir):/srv/app -w /srv/app ondrs/upload-manager:latest composer install

bash:
	docker run -it --rm --name upload-manager -v $(makefile_dir):/srv/app -w /srv/app ondrs/upload-manager:latest bash
	
test:
	docker run -it --rm --name upload-manager -v $(makefile_dir):/srv/app -w /srv/app ondrs/upload-manager:latest /srv/app/vendor/bin/tester -c /srv/app/tests/php.ini -j 40 ./tests
{'fraction_non_alphanumeric': 0.16147082334132695, 'fraction_numerical': 0.0031974420463629096, 'mean_word_length': 3.833976833976834, 'pattern_counts': {'":': 0, '<': 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': '4677389', 'n_tokens_mistral': 472, 'n_tokens_neox': 450, 'n_words': 117}