<commit_before>#!/bin/bash 

source variables.conf
export FEDORA_HOME=$ARCHIVE_HOME/fedora

sudo service elasticsearch restart

kill `ps -eaf|grep tomcat|awk '{print $2}'|head -1`


#cd $ARCHIVE_HOME/regal-api
#$ARCHIVE_HOME/play-2.2.3/play dist
#cd -

cd $ARCHIVE_HOME/regal-server
kill `cat RUNNING_PID`
nohup $ARCHIVE_HOME/regal-server/bin/regal-api &
cd -

$TOMCAT_HOME/bin/startup.sh
<commit_msg>add sleep 10 to restart-all.sh<commit_after>#!/bin/bash 

source variables.conf
export FEDORA_HOME=$ARCHIVE_HOME/fedora

sudo service elasticsearch restart

#cd $ARCHIVE_HOME/regal-api
#$ARCHIVE_HOME/play-2.2.3/play dist
#cd -

cd $ARCHIVE_HOME/regal-server
kill `cat RUNNING_PID`
nohup $ARCHIVE_HOME/regal-server/bin/regal-api &
cd -

kill `ps -eaf|grep tomcat|awk '{print $2}'|head -1`
sleep 10
$TOMCAT_HOME/bin/startup.sh
sleep 10
echo wait
sleep 10
echo wait
sleep 10
{'fraction_non_alphanumeric': 0.12385321100917432, 'fraction_numerical': 0.022935779816513763, 'mean_word_length': 4.898648648648648, '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': '5674124', 'n_tokens_mistral': 380, 'n_tokens_neox': 356, 'n_words': 76}