<commit_before># Run make help to find out what the commands are

define deploy_commands

	# Deploy plugin to NPM
	cd plugin && gulp build
	cd plugin && npm publish
	@echo Publishing npm from $(shell pwd)

	# Build Webeditor and Plugin
	cd webeditor && jspm update belmgr-plugin
	cd webeditor && gulp build

	# Build and Deploy Webeditor docker image
	rm -r deploy/webeditor
	mkdir -p deploy/webeditor

	cp -r webeditor/keycloak.json webeditor/index.html webeditor/styles webeditor/media webeditor/config.js webeditor/favicon.ico deploy/webeditor
	cp -r webeditor/dist webeditor/jspm_packages deploy/webeditor

	@echo Building docker image in `pwd`
	docker build -t openbel/belmgr:latest -t openbel/belmgr:`cat VERSION` ./deploy

	@echo New version is `cat VERSION`
	docker push openbel/belmgr:`cat VERSION`
	docker push openbel/belmgr:latest<commit_msg>Sleep so npm has time to update<commit_after># Run make help to find out what the commands are

define deploy_commands

	# Deploy plugin to NPM
	cd plugin && gulp build
	cd plugin && npm publish
	@echo Publishing npm from $(shell pwd)

	sleep 10

	# Build Webeditor and Plugin
	cd webeditor && jspm update belmgr-plugin
	cd webeditor && gulp build

	# Build and Deploy Webeditor docker image
	rm -r deploy/webeditor
	mkdir -p deploy/webeditor

	cp -r webeditor/keycloak.json webeditor/index.html webeditor/styles webeditor/media webeditor/config.js webeditor/favicon.ico deploy/webeditor
	cp -r webeditor/dist webeditor/jspm_packages deploy/webeditor

	@echo Building docker image in `pwd`
	docker build -t openbel/belmgr:latest -t openbel/belmgr:`cat VERSION` ./deploy

	@echo New version is `cat VERSION`
	docker push openbel/belmgr:`cat VERSION`
	docker push openbel/belmgr:latest
{'fraction_non_alphanumeric': 0.07138744962579159, 'fraction_numerical': 0.0011514104778353484, 'mean_word_length': 4.3808049535603715, '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': '3148839', 'n_tokens_mistral': 606, 'n_tokens_neox': 580, 'n_words': 201}