<commit_before>#! /bin/sh

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="bamboo server"
NAME=bamboo
PROJECT_DIR=/var/www/bamboo
VENV_DIR=/home/bamboo/.virtualenvs/bamboo/bin
PIDFILE=$PROJECT_DIR/shared/pids/$NAME.pid
SCRIPTNAME=$PROJECT_DIR/current/scripts/$NAME.sh
DAEMON=$VENV_DIR/cherryd
DAEMON_ARGS="-i bamboo -c $PROJECT_DIR/current/bamboo/config/prod.conf -p $PIDFILE -d"

# load the virtualenv
echo "Loading virtualenv 'bamboo'..."
. $VENV_DIR/activate

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

#
# Function that starts the daemon/service
#
do_start()
{
    echo "Starting daemon process with command: $DAEMON $DAEMON_ARGS"
    $DAEMON $DAEMON_ARGS
    echo "Process started"
}

#
# Function that stops the daemon/service
#
do_stop()
{
    if [ -e $PIDFILE ]
    then<commit_msg>fix daemon command<commit_after>#! /bin/sh

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="bamboo server"
NAME=bamboo
PROJECT_DIR=/var/www/bamboo
VENV_DIR=/home/bamboo/.virtualenvs/bamboo/bin
PIDFILE=$PROJECT_DIR/shared/pids/$NAME.pid
SCRIPTNAME=$PROJECT_DIR/current/scripts/$NAME.sh
DAEMON=$VENV_DIR/cherryd
DAEMON_ARGS="-i run_server -c $PROJECT_DIR/current/bamboo/config/prod.conf -p $PIDFILE -P $PROJECT_DIR/current/$NAME -d"

# load the virtualenv
echo "Loading virtualenv 'bamboo'..."
. $VENV_DIR/activate

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

#
# Function that starts the daemon/service
#
do_start()
{
    echo "Starting daemon process with command: $DAEMON $DAEMON_ARGS"
    $DAEMON $DAEMON_ARGS
    echo "Process started"
}

#
# Function that stops the daemon/service
#
do_stop()
{
    if [ -e $PIDFILE ]
    then
{'fraction_non_alphanumeric': 0.13159355913381454, 'fraction_numerical': 0.001110494169905608, 'mean_word_length': 4.269005847953216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '303608', 'n_tokens_mistral': 712, 'n_tokens_neox': 668, 'n_words': 159}