<commit_before>#!/bin/sh

PID="/tmp/supervisord.pid"
CONF="conf/etc/supervisord.conf"

stop() {
    if [ -f $PID ]; then
        kill `cat -- $PID`
        rm -f -- $PID
        echo "stopped"
    fi
}

start() {
    echo "starting"
    if [ ! -f $PID ]; then
        supervisord -c $CONF
        echo "started"
    fi
}

case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;<commit_msg>add tip to modify the command path, add check the log folder, if not then create it.<commit_after>#!/bin/sh

echo 'plase remember to modify the command path in etc/conf/supervisord.conf(line 23)'

PID="/tmp/supervisord.pid"
CONF="conf/etc/supervisord.conf"

LOGDIR="log"  
if [ ! -d $LOGDIR ]; then  
    mkdir $LOGDIR
fi

stop() {
    if [ -f $PID ]; then
        kill `cat -- $PID`
        rm -f -- $PID
        echo "stopped"
    fi
}

start() {
    echo "starting"
    if [ ! -f $PID ]; then
        supervisord -c $CONF
        echo "started"
    fi
}

case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
{'fraction_non_alphanumeric': 0.14015151515151514, 'fraction_numerical': 0.003787878787878788, 'mean_word_length': 1.6964285714285714, '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': '2181602', 'n_tokens_mistral': 398, 'n_tokens_neox': 374, 'n_words': 109}