<commit_before>.PHONY: build run stop status install test clean

repo = waltzofpearls/tetris
name = tetris

# Docker related Makefile targets
build:
	docker build -t $(repo) .

run:
	docker run -p 49001:3000 -d --name $(name) $(repo)

stop:
	docker ps -a | grep $(name) > /dev/null \
	&& docker stop $(name) && docker rm $(name) \
	|| echo "\nDocker container [$(name)] does not exist."

status:
	docker ps -a -f name=$(name)

# Node and npm related Makefile targets
purge:
	docker images | grep $(repo) > /dev/null \
	&& docker rmi $(repo) \
	|| echo "\nDocker image [$(repo)] does not exist."

install:
	nvm use 0.11 && npm install

test:
	nvm use 0.11 && npm test<commit_msg>Added run-development and run-testing targets in Makefile<commit_after>.PHONY: build run stop status install test clean

repo = waltzofpearls/tetris
name = tetris

# Docker related Makefile targets
build:
	docker build -t $(repo) .

run:
	docker run -p 49001:3000 -d -e NODE_ENV=production --name $(name) $(repo)

run-development:
	docker run -p 49001:3000 -d -e NODE_ENV=development --name $(name) $(repo)

run-testing:
	docker run -p 49001:3000 -d -e NODE_ENV=testing --name $(name) $(repo)

stop:
	docker ps -a | grep $(name) > /dev/null \
	&& docker stop $(name) && docker rm $(name) \
	|| echo "\nDocker container [$(name)] does not exist."

status:
	docker ps -a -f name=$(name)

# Node and npm related Makefile targets
purge:
	docker images | grep $(repo) > /dev/null \
	&& docker rmi $(repo) \
	|| echo "\nDocker image [$(repo)] does not exist."

install:
	nvm use 0.11 && npm install

test:
	nvm use 0.11 && npm test
{'fraction_non_alphanumeric': 0.1472239550842171, 'fraction_numerical': 0.02994385527136619, 'mean_word_length': 3.50561797752809, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5838922', 'n_tokens_mistral': 637, 'n_tokens_neox': 563, 'n_words': 209}