<commit_before>#!/bin/bash
# description: Starts and stops Solr production
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
SOLR_DIR=/nfs/public/rw/fg/atlas/solr_dev/example
JAVA_OPTIONS="-Dsolr.indexes.dir=/srv/gxa/solr -Dsolr.solr.home=./solr -Djava.util.logging.config.file=solr_dev/logging.properties -server -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -Xmx8192M -Xms1024M -jar start.jar"
JAVA=/nfs/public/rw/webadmin/java/jdks/jdk1.7.0_04/bin/java
LOG_FILE="/srv/gxa/solr/log/console.log"
case $1 in
	start)
		echo "Starting Solr"
		cd $SOLR_DIR
		nohup $JAVA $JAVA_OPTIONS 2> $LOG_FILE &
		echo "ok - remember it may take a minute or two before Solr responds on requests"
		;;
	stop)
		echo "Stopping Solr"
		cd $SOLR_DIR
		$JAVA $JAVA_OPTIONS --stop
    		echo "ok"
		;;
	restart)
		$0 stop<commit_msg>split out config directory, update to use log4j<commit_after>#!/bin/bash
# description: Starts and stops Solr production
SOLR_DIST=/nfs/public/rw/fg/atlas/solr_dev/
SOLR_INDEXES_DIR=/srv/gxa/solr
SOLR_CONF=/nfs/public/rw/fg/atlas/solr_dev_conf
SOLR_LOG=/srv/gxa/solr/log/
SOLR_BIN=${SOLR_DIST}/example
JAVA="/nfs/public/rw/webadmin/java/jdks/jdk1.7.0_04/bin/java"
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 -Xmx8192M -Xms1024M -jar start.jar"
CONSOLE_LOG=/srv/gxa/solr/log/console.log
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 2> $CONSOLE_LOG &
		echo "ok - remember it may take a minute or two before Solr responds on requests"
		;;
	stop)
		echo "Stopping Solr"
		cd $SOLR_BIN
		$JAVA $JAVA_OPTIONS --stop
    		echo "ok"
		;;
	restart)
		$0 stop
{'fraction_non_alphanumeric': 0.14363143631436315, 'fraction_numerical': 0.023306233062330622, 'mean_word_length': 4.156424581005586, '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': '5797944', 'n_tokens_mistral': 891, 'n_tokens_neox': 794, 'n_words': 143}