<commit_before>#!/bin/bash

#
# control.sh
#
# A control script to run SusumuTakuan, 
# the L5R DiscordBot
#

cmd=$1

if [ "$cmd" = "start" ]; then
		#Start SusumuTakuan
		supervisorctl start takuan

elif [ "$cmd" = "stop" ]; then
		#Stop SusumuTakuan
		supervisorctl stop takuan

elif [ "$cmd" = "restart" ]; then
		#Restart SusumuTakuan
		supervisorctl restart takuan

elif [ "$cmd" = "refresh" ]; then
		#Refresh Code
		git pull
fi<commit_msg>Update control script to be branch aware<commit_after>#!/bin/bash

#
# control.sh
#
# A control script to run SusumuTakuan, 
# the L5R DiscordBot
#

cmd=$1

branch=`git branch | cut -d " " -f2`

if [ "$branch" = "master" ]; then
	#master branch
	susumu="takuan"
elif [ "$branch" = "develop" ]; then
	#develop branch
	susumu="takuantest"
fi



if [ "$cmd" = "start" ]; then
		#Start SusumuTakuan
		supervisorctl start $susumu

elif [ "$cmd" = "stop" ]; then
		#Stop SusumuTakuan
		supervisorctl stop $susumu

elif [ "$cmd" = "restart" ]; then
		#Restart SusumuTakuan
		supervisorctl restart $susumu

elif [ "$cmd" = "refresh" ]; then
		#Refresh Code
		git pull
fi
{'fraction_non_alphanumeric': 0.13628158844765342, 'fraction_numerical': 0.004512635379061372, 'mean_word_length': 3.8640350877192984, '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': '6379549', 'n_tokens_mistral': 461, 'n_tokens_neox': 411, 'n_words': 121}