<commit_before>#!/bin/bash
# chkconfig:   - 25 75
# description: carbon-agent
# processname: carbon-agent

export GRAPHITE_DIR="/usr/local/graphite"
export PYTHONPATH="$GRAPHITE_DIR:$PYTHONPATH"
export CARBON_DIR="${GRAPHITE_DIR}/carbon"
pidfile="${CARBON_DIR}/pid/agent.pid"
userfile="${CARBON_DIR}/run_as_user"

function die {
  echo $1
  exit 1
}

case "$1" in
  start)
  	echo "Starting carbon-agent"
	cd $CARBON_DIR
	test -f $pidfile && die "Pidfile $pidfile already exists!"
	if [ -f $userfile ]
	then
		args="$args -u `cat $userfile`"<commit_msg>fixed more installation issues<commit_after>#!/bin/bash
# chkconfig:   - 25 75
# description: carbon-agent
# processname: carbon-agent

export GRAPHITE_DIR="/usr/local/graphite"
export PYTHONPATH="$GRAPHITE_DIR/lib:$PYTHONPATH"
export CARBON_DIR="${GRAPHITE_DIR}/carbon"
pidfile="${CARBON_DIR}/pid/agent.pid"
userfile="${CARBON_DIR}/run_as_user"

function die {
  echo $1
  exit 1
}

case "$1" in
  start)
  	echo "Starting carbon-agent"
	cd $CARBON_DIR
	test -f $pidfile && die "Pidfile $pidfile already exists!"
	if [ -f $userfile ]
	then
		args="$args -u `cat $userfile`"
{'fraction_non_alphanumeric': 0.14640638864241348, 'fraction_numerical': 0.012422360248447204, 'mean_word_length': 4.968253968253968, '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': '6836118', 'n_tokens_mistral': 462, 'n_tokens_neox': 433, 'n_words': 96}