<commit_before>#!/bin/bash
# description: Starts and stops Solr in acceptance and production servers (ves-hx-77, ves-pg-76, ves-pg-77, ves-oy-76, ves-oy-77))
SOLR_DIST=/nfs/public/rw/fg/atlas/solr-5.1.0
SOLR_INDEXES_DIR=/srv/gxa/solr/index
SOLR_CONF=/srv/gxa/solr/conf
SOLR_LOG=/srv/gxa/solr/log
SOLR_BIN=${SOLR_DIST}/server

JAVA_OPTIONS="-Dsolr.indexes.dir=/srv/gxa/solr -Dsolr.solr.home=./solr -Djava.util.logging.config.file=solr_test/logging.properties -server -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -Xmx12g -Xms12g"
JAVA=/nfs/public/rw/webadmin/java/jdks/jdk1.7.0_04/bin/java
CONSOLE_LOG=$SOLR_LOG/console.log
SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )/solr_test.sh

set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


case $1 in
	start)
		echo "Starting Solr"
		cd $SOLR_BIN
		nohup $JAVA $JAVA_OPTIONS -jar start.jar 2> $CONSOLE_LOG &
		echo "ok - remember it may take a minute or two before Solr responds on requests"
		;;
	forever)
		echo "Starting Solr with OOM handler"
		cd $SOLR_BIN<commit_msg>Backpropagate the fixes to solr_test.sh<commit_after>#!/bin/bash
# description: Starts and stops Solr in acceptance and production servers (ves-hx-77, ves-pg-76, ves-pg-77, ves-oy-76, ves-oy-77))
SOLR_DIST=/nfs/public/rw/fg/atlas/solr-5.1.0
SOLR_INDEXES_DIR=/srv/gxa/solr/index
SOLR_CONF=/srv/gxa/solr/conf
SOLR_LOG=/srv/gxa/solr/log
SOLR_BIN=${SOLR_DIST}/server

JAVA_OPTIONS="-Dsolr.indexes.dir=$SOLR_INDEXES_DIR -Dsolr.solr.home=$SOLR_CONF -Dsolr.log=$SOLR.LOG -Dlog4j.configuration=file:$SOLR_CONF/log4j.properties -server -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -Xmx8g -Xms1g"
JAVA=/nfs/public/rw/webadmin/java/jdks/jdk1.7.0_04/bin/java
CONSOLE_LOG=$SOLR_LOG/console.log
SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )/solr_test.sh

set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


case $1 in
	start)
		echo "Starting Solr"
		cd $SOLR_BIN
		nohup $JAVA $JAVA_OPTIONS -jar start.jar 2> $CONSOLE_LOG &
		echo "ok - remember it may take a minute or two before Solr responds on requests"
		;;
	forever)
		echo "Starting Solr with OOM handler"
		cd $SOLR_BIN
{'fraction_non_alphanumeric': 0.15362731152204837, 'fraction_numerical': 0.027501185395922237, 'mean_word_length': 4.355329949238579, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '956901', 'n_tokens_mistral': 1031, 'n_tokens_neox': 916, 'n_words': 166}