<commit_before>#!/bin/bash
dir=`dirname $0`
#Specify project home directory.
HOME_PATH=`cd  $dir;cd ..;pwd`
LOG_DIR=priv/logs
LOG_JS_DIR=priv/logs

echo "$HOME_PATH"
#Check if user has root access
if [ "$USER" = "root" ]; then
	if [ "$1" = "start" ]; then	
		if [ ! -d "$HOME_PATH/javascripts/node_modules" ]; then
			echo "installing npm libs"
			(cd $HOME_PATH/javascripts; npm install socket.io; npm install rabbit.js)
		fi
		echo "Starting up RabbitMQ-Server"
		$HOME_PATH/lib/rabbitmq-server/scripts/rabbitmq-server &
		echo "Starting up ElasticSearch"
		$HOME_PATH/lib/elasticsearch/bin/service/elasticsearch console &
		if [ -s $HOME_PATH/.temp.log ]; then
   		   echo "Sensor cloud already running, to close run ./sensec.sh stop"
		else
		   sleep 5
		   echo "Starting node.js with receive.js"
		   if [ -d "$LOG_JS_DIR" ]; then
				nodejs $HOME_PATH/javascripts/receive.js > $LOG_JS_DIR/nodejs_log.log &<commit_msg>fixed an error in file<commit_after>#!/bin/bash
dir=`dirname $0`
#Specify project home directory.
HOME_PATH=`cd  $dir;cd ..;pwd`
LOG_DIR=$HOME_PATH/priv/logs
LOG_JS_DIR=$LOG_DIR

echo "$HOME_PATH"
#Check if user has root access
if [ "$USER" = "root" ]; then
	if [ "$1" = "start" ]; then	
		if [ ! -d "$HOME_PATH/javascripts/node_modules" ]; then
			echo "installing npm libs"
			(cd $HOME_PATH/javascripts; npm install socket.io; npm install rabbit.js)
		fi
		echo "Starting up RabbitMQ-Server"
		$HOME_PATH/lib/rabbitmq-server/scripts/rabbitmq-server &
		echo "Starting up ElasticSearch"
		$HOME_PATH/lib/elasticsearch/bin/service/elasticsearch console &
		if [ -s $HOME_PATH/.temp.log ]; then
   		   echo "Sensor cloud already running, to close run ./sensec.sh stop"
		else
		   sleep 5
		   echo "Starting node.js with receive.js"
		   if [ -d "$LOG_JS_DIR" ]; then
				nodejs $HOME_PATH/javascripts/receive.js > $LOG_JS_DIR/nodejs_log.log &
{'fraction_non_alphanumeric': 0.13041154462854088, 'fraction_numerical': 0.003206841261357563, 'mean_word_length': 3.763358778625954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2310432', 'n_tokens_mistral': 737, 'n_tokens_neox': 662, 'n_words': 174}