<commit_before>GREEN=\033[32m
RED=\033[31m
BLUE=\033[34m
DEFAULT=\033[39m
DATE=`date '+%b-%d'`
STARTING="${GREEN}Starting supervisor, grunt and mongodb , logging to logs/ on date: ${BLUE}${DATE} ${DEFAULT}"
STARTED="${GREEN}Started${DEFAULT}"
STOPPING="${RED}Killing all node processes( including supervisor and grunt)${DEFAULT}"
STOPPED="${RED}Stopped all node processes${DEFAULT}"
NODE_RUNNING:=`scripts/running.sh`

start:
	@echo ${STARTING}
	@echo "Starting supervisor"
	@supervisor -e 'node|js|jade' --watch app.js,grunt.js,app,views,routes --quiet app.js 1>> logs/supervisor.${DATE}.log 2>> logs/supervisor.${DATE}.err.log &
	@echo "Starting grunt"
	@grunt watch --no-color >> logs/grunt.${DATE}.log &
	@echo "Starting mongoDB"
	@mongod --port 3001 --fork --logpath logs/mongodb.${DATE}-.log --logappend
	@echo ${STARTED}
	
stop:
	@echo ${STOPPING}
	@killall node
	@echo ${STOPPED}
	@echo "${RED}Shutting down mongodb${DEFAULT}"
	@mongo --port 3001 admin scripts/shutdown_db.js
	@echo "${RED}Shutdown complete${DEFAULT}"

running:
	echo ${NODE_RUNNING}

restart: stop start<commit_msg>Removed trailing '-' from mongodb log filename<commit_after>GREEN=\033[32m
RED=\033[31m
BLUE=\033[34m
DEFAULT=\033[39m
DATE=`date '+%b-%d'`
STARTING="${GREEN}Starting supervisor, grunt and mongodb , logging to logs/ on date: ${BLUE}${DATE} ${DEFAULT}"
STARTED="${GREEN}Started${DEFAULT}"
STOPPING="${RED}Killing all node processes( including supervisor and grunt)${DEFAULT}"
STOPPED="${RED}Stopped all node processes${DEFAULT}"
NODE_RUNNING:=`scripts/running.sh`

start:
	@echo ${STARTING}
	@echo "Starting supervisor"
	@supervisor -e 'node|js|jade' --watch app.js,grunt.js,app,views,routes --quiet app.js 1>> logs/supervisor.${DATE}.log 2>> logs/supervisor.${DATE}.err.log &
	@echo "Starting grunt"
	@grunt watch --no-color >> logs/grunt.${DATE}.log &
	@echo "Starting mongoDB"
	@mongod --port 3001 --fork --logpath logs/mongodb.${DATE}.log --logappend
	@echo ${STARTED}
	
stop:
	@echo ${STOPPING}
	@killall node
	@echo ${STOPPED}
	@echo "${RED}Shutting down mongodb${DEFAULT}"
	@mongo --port 3001 admin scripts/shutdown_db.js
	@echo "${RED}Shutdown complete${DEFAULT}"

running:
	echo ${NODE_RUNNING}

restart: stop start
{'fraction_non_alphanumeric': 0.17976513098464317, 'fraction_numerical': 0.02710027100271003, 'mean_word_length': 5.732522796352583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '2662212', 'n_tokens_mistral': 870, 'n_tokens_neox': 792, 'n_words': 190}