<commit_before>#!/bin/bash
source ../configurations/system.ini

#
# serviceBatchMgr      This shell script takes care of starting and stopping a Kaltura Batch Service
#
# chkconfig: 2345 13 87
# description: Kaltura Batch

# Source function library.
#. /etc/rc.d/init.d/functions

# Directory containing the batchers' php files
BATCHDIR=$APP_DIR/batch
LOGDIR="$LOG_DIR" 

BATCHEXE=KGenericBatchMgr.class.php
# The batch service filename without extensions
FILE_NAME=${BATCHEXE%.*}

if [ $# != 1 ]; then
   echo "Usage: $0 [start|stop|restart|status]"
   #exit 1 chages the return code because this fails the build
   exit 0 	
fi

CONFIG_FILE=$BATCHDIR/config/`hostname`_config.ini

default_config=0
if [ ! -f $CONFIG_FILE ]; then<commit_msg>cnf: take the correct ini file according to host name<commit_after>#!/bin/bash
source ../configurations/system.ini

#
# serviceBatchMgr      This shell script takes care of starting and stopping a Kaltura Batch Service
#
# chkconfig: 2345 13 87
# description: Kaltura Batch

# Source function library.
#. /etc/rc.d/init.d/functions

# Directory containing the batchers' php files
BATCHDIR=$APP_DIR/batch
LOGDIR="$LOG_DIR" 

BATCHEXE=KGenericBatchMgr.class.php
# The batch service filename without extensions
FILE_NAME=${BATCHEXE%.*}

if [ $# != 1 ]; then
   echo "Usage: $0 [start|stop|restart|status]"
   #exit 1 chages the return code because this fails the build
   exit 0 	
fi

CONFIG_FILE=$APP_DIR/configurations/hosts/batch/`hostname`.ini

default_config=0
if [ ! -f $CONFIG_FILE ]; then
{'fraction_non_alphanumeric': 0.10625814863102999, 'fraction_numerical': 0.01694915254237288, 'mean_word_length': 4.5215827338129495, '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': '2330337', 'n_tokens_mistral': 544, 'n_tokens_neox': 505, 'n_words': 150}