<commit_before>#!/bin/bash

# ***********************************************
# The following environment-specific settings vary
# between deployments, and are required in order
# to run the CTIA service:
#
# CTIA_MAX_MEMORY
# CTIA_HEADLESS
# CTIA_LOG_LEVEL
# CTIA_LOGFILE

# Load the deployment-specific env variables
source /srv/ctia/environment

# ***********************************************
# These are package-specific settings and do not
# vary between deployment environments.  These
# values should NOT be changed:

MAIN_CLASS=ctia.main
BIN_DIR=/srv/ctia
CTIA_JAR=/srv/ctia/ctia.jar
CLASSPATH=$BIN_DIR:$CTIA_JAR
LANG=en_US.UTF-8

JVM_ARGS="-Xmx$CTIA_MAX_MEMORY -Djava.awt.headless=$CTIA_HEADLESS -Dlog.console.threshold=$CTIA_LOG_LEVEL"

exec java $JVM_ARGS -cp $CLASSPATH $MAIN_CLASS 2>&1 >> $CTIA_LOGFILE<commit_msg>Tenzin Issue-439: Add JMX Remote Config Params<commit_after>#!/bin/bash

# ***********************************************
# The following environment-specific settings vary
# between deployments, and are required in order
# to run the CTIA service:
#
# CTIA_MAX_MEMORY
# CTIA_HEADLESS
# CTIA_LOG_LEVEL
# CTIA_LOGFILE
# CTIA_JMX_PORT

# Load the deployment-specific env variables
source /srv/ctia/environment

# ***********************************************
# These are package-specific settings and do not
# vary between deployment environments.  These
# values should NOT be changed:

MAIN_CLASS=ctia.main
BIN_DIR=/srv/ctia
CTIA_JAR=/srv/ctia/ctia.jar
CLASSPATH=$BIN_DIR:$CTIA_JAR
LANG=en_US.UTF-8

JVM_ARGS="-Xmx$CTIA_MAX_MEMORY -Djava.awt.headless=$CTIA_HEADLESS -Dlog.console.threshold=$CTIA_LOG_LEVEL"
JMX_ARGS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$CTIA_JMX_PORT -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

exec java $JVM_ARGS $JMX_ARGS -cp $CLASSPATH $MAIN_CLASS 2>&1 >> $CTIA_LOGFILE

{'fraction_non_alphanumeric': 0.18903688524590165, 'fraction_numerical': 0.004610655737704918, 'mean_word_length': 6.3977272727272725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3934045', 'n_tokens_mistral': 691, 'n_tokens_neox': 676, 'n_words': 136}