<commit_before># Makefile for the ARIS Javascript Editor
#
# Takes care of pulling code into build branch, combining all JS into one, and timestamping the index to avoid browser caches for changed files, and deploying.
#
# Some output is supressed, just remove the @ or dev/null redirects if troubleshooting.
#
OK_COLOR=\033[0;32m
INFO_COLOR=\033[1;36m
CLEAR=\033[m\017

help:
	@echo "Aris Javascript Editor"
	@echo ""
	@echo "Targets:"
	@echo "  merge: merge master into build branch"
	@echo "    css: compile less"
	@echo "  build: optimize all js into one file with requireJS"
	@echo "    all: merge compile optimize"
	@echo " heroku: push build branch to heroku"
	@echo " deploy: push build branch to aris"
	@echo ""
	@echo "make [all|css|build|deploy]"

css:
	@echo "Compiling LESS into CSS."
	@lessc styles/arisjs.less > styles/arisjs.css
	@echo "   $(OK_COLOR)(Done)"

build:
	@echo "Builing application into dist/aris.js."
	@r.js -o build.js 1>/dev/null
	@echo "   $(OK_COLOR)(Done)"

heroku:
	git push -f heroku build:master

deploy:
	@echo "Pushing to Github."
	@git push 1>/dev/null
	@echo "   (Done)"
	@echo "Deploying to server."
	@ssh aris-prod "cd /var/www/html/editor2/ && git checkout build && git pull" 1>/dev/null
	@echo "   $(OK_COLOR)(Done)"

render:
	@echo "Rendering template into index.html."
	@bin/render_index.sh
	@echo "   $(OK_COLOR)(Done)"

merge:
	@echo "Merging master onto build branch."
	@git merge master
	@echo "   $(OK_COLOR)(Done)"

note:
	@echo ""
	@echo "--- Now commit to the build branch and $(INFO_COLOR)make deploy$(CLEAR)! ---"<commit_msg>Color clear<commit_after># Makefile for the ARIS Javascript Editor
#
# Takes care of pulling code into build branch, combining all JS into one, and timestamping the index to avoid browser caches for changed files, and deploying.
#
# Some output is supressed, just remove the @ or dev/null redirects if troubleshooting.
#
OK_COLOR=\033[0;32m
INFO_COLOR=\033[1;36m
CLEAR=\033[m\017

help:
	@echo "Aris Javascript Editor"
	@echo ""
	@echo "Targets:"
	@echo "  merge: merge master into build branch"
	@echo "    css: compile less"
	@echo "  build: optimize all js into one file with requireJS"
	@echo "    all: merge compile optimize"
	@echo " heroku: push build branch to heroku"
	@echo " deploy: push build branch to aris"
	@echo ""
	@echo "make [all|css|build|deploy]"

css:
	@echo "Compiling LESS into CSS."
	@lessc styles/arisjs.less > styles/arisjs.css
	@echo "   $(OK_COLOR)(Done)$(CLEAR)"

build:
	@echo "Builing application into dist/aris.js."
	@r.js -o build.js 1>/dev/null
	@echo "   $(OK_COLOR)(Done)$(CLEAR)"

heroku:
	git push -f heroku build:master

deploy:
	@echo "Pushing to Github."
	@git push 1>/dev/null
	@echo "   $(OK_COLOR)(Done)$(CLEAR)"
	@echo "Deploying to server."
	@ssh aris-prod "cd /var/www/html/editor2/ && git checkout build && git pull" 1>/dev/null
	@echo "   $(OK_COLOR)(Done)$(CLEAR)"

render:
	@echo "Rendering template into index.html."
	@bin/render_index.sh
	@echo "   $(OK_COLOR)(Done)$(CLEAR)"

merge:
	@echo "Merging master onto build branch."
	@git merge master
	@echo "   $(OK_COLOR)(Done)$(CLEAR)"

note:
	@echo ""
	@echo "--- Now commit to the build branch and $(INFO_COLOR)make deploy$(CLEAR)! ---"
{'fraction_non_alphanumeric': 0.13807012100527458, 'fraction_numerical': 0.013651877133105802, 'mean_word_length': 4.069182389937107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '27458', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1141, 'n_words': 377}