<commit_before>#!/bin/sh

# Setup basic path information.
MAIN="com.webtrends.streaming.analysis.util.daemon.RealtimeDaemon"
HOME_DIR="<%= @home_dir %>"
LOG_OUT="/var/log/storm/service-control-process.out"
LOG_ERR="/var/log/storm/service-control-process.err"
JAVA_HOME="<%= @java_home %>"
JMX_OPTS="<%= @jmx_opts %>"
JMX_PORT="<%= @jmx_port %>"

# Setup classpath, initially empty.
CP=""

# Add all .jar files to the classpath.
for jar in `ls $HOME_DIR/lib/*`; do
    if [ "" = "$CP" ]; then
        CP=$jar
    else
        CP=$CP:$jar
    fi
done

# Add the JMX options.
if [ -z "$JMX_OPTS" ]; then
    JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "
fi

# Add the JMX port.
if [ -z "$JMX_PORT" ]; then
    JMX_PORT=9999
fi

# Add JMX options and port together.
JMX_OPTS="$JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT "
<commit_msg>Revert "Service control out should go to /var/log/storm"<commit_after>#!/bin/sh

# Setup basic path information.
MAIN="com.webtrends.streaming.analysis.util.daemon.RealtimeDaemon"
HOME_DIR="<%= @home_dir %>"
LOG_OUT="$HOME_DIR/logs/service-control-process.out"
LOG_ERR="$HOME_DIR/logs/service-control-process.err"
JAVA_HOME="<%= @java_home %>"
JMX_OPTS="<%= @jmx_opts %>"
JMX_PORT="<%= @jmx_port %>"

# Setup classpath, initially empty.
CP=""

# Add all .jar files to the classpath.
for jar in `ls $HOME_DIR/lib/*`; do
    if [ "" = "$CP" ]; then
        CP=$jar
    else
        CP=$CP:$jar
    fi
done

# Add the JMX options.
if [ -z "$JMX_OPTS" ]; then
    JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "
fi

# Add the JMX port.
if [ -z "$JMX_PORT" ]; then
    JMX_PORT=9999
fi

# Add JMX options and port together.
JMX_OPTS="$JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT "

{'fraction_non_alphanumeric': 0.1655281135049921, 'fraction_numerical': 0.004203888596952181, 'mean_word_length': 4.0237467018469655, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2365691', 'n_tokens_mistral': 769, 'n_tokens_neox': 744, 'n_words': 151}