<commit_before>.PHONY: update

run = vagrant ssh -- 'cd yunity && sudo $(1)'

update:
	@git pull
	@make update-vm

update-backend:
	@git pull
	@make update-backend-vm

update-vm:
	$(call run,make update)
	$(call run,pm2 restart all)

update-backend-vm:
	$(call run,make update-backend)
	$(call run,pm2 restart all)

start:
	$(call run,pm2 start pm2.json)

restart:
	$(call run,pm2 restart all)
<commit_msg>make update will ensure pm2 is running<commit_after>.PHONY: update

run = vagrant ssh -- 'cd yunity && sudo $(1)'

update:
	@git pull
	@make update-vm

update-backend:
	@git pull
	@make update-backend-vm

update-vm:
	$(call run,make update)
	$(call run,pm2 kill)
	$(call run,pm2 start pm2.json)

update-backend-vm:
	$(call run,make update-backend)
	$(call run,pm2 restart all)

start:
	$(call run,pm2 start pm2.json)

restart:
	$(call run,pm2 restart all)

{'fraction_non_alphanumeric': 0.14037122969837587, 'fraction_numerical': 0.01740139211136891, 'mean_word_length': 4.198795180722891, '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': '5113974', 'n_tokens_mistral': 339, 'n_tokens_neox': 334, 'n_words': 99}