<commit_before>#!/bin/bash

#If this script is run in the AWS environment, H and shardID will be set by the provisioner. Do not set these manually.
H=""
shardId=""
#Dedicate 80% of the physical ram to the java heap
ram=`awk '/MemTotal/{print $2}' /proc/meminfo`
xmx=`python -c "print int($ram/1024.0*0.60)"`
xms=`python -c "print int($ram/1024.0*0.50)"`

HOMEDIR=/montysolr/build/contrib/examples/adsabs          
export PYTHONPATH=/montysolr/build/dist:/montysolr/src/python:
export JYTHONPATH=$HOMEDIR/jython

#          For reference (not needed by MontySOLR)
# export JCC_CP="${prop.jcc_egg}"
# export JAVA_CP="$HOMEDIR/lib/ext/jcl-over-slf4j-1.7.6.jar:$HOMEDIR/lib/ext/jul-to-slf4j-1.7.6.jar:$HOMEDIR/lib/ext/log4j-1.2.16.jar:$HOMEDIR/lib/ext/slf4j-api-1.7.6.jar:$HHOMEDIR/jython"
# export CP="$JCC_CP:$JAVA_CP"

if [ -z "$H" ]
then
java \
  -Xmx${xmx}m \
  -Xms${xms}m \
  -DnumShards=2 \<commit_msg>nshards=2 -> 1<commit_after>#!/bin/bash

#If this script is run in the AWS environment, H and shardID will be set by the provisioner. Do not set these manually.
H=""
shardId=""
#Dedicate 80% of the physical ram to the java heap
ram=`awk '/MemTotal/{print $2}' /proc/meminfo`
xmx=`python -c "print int($ram/1024.0*0.60)"`
xms=`python -c "print int($ram/1024.0*0.50)"`

HOMEDIR=/montysolr/build/contrib/examples/adsabs          
export PYTHONPATH=/montysolr/build/dist:/montysolr/src/python:
export JYTHONPATH=$HOMEDIR/jython

#          For reference (not needed by MontySOLR)
# export JCC_CP="${prop.jcc_egg}"
# export JAVA_CP="$HOMEDIR/lib/ext/jcl-over-slf4j-1.7.6.jar:$HOMEDIR/lib/ext/jul-to-slf4j-1.7.6.jar:$HOMEDIR/lib/ext/log4j-1.2.16.jar:$HOMEDIR/lib/ext/slf4j-api-1.7.6.jar:$HHOMEDIR/jython"
# export CP="$JCC_CP:$JAVA_CP"

if [ -z "$H" ]
then
java \
  -Xmx${xmx}m \
  -Xms${xms}m \
  -DnumShards=1 \
{'fraction_non_alphanumeric': 0.17815774958632102, 'fraction_numerical': 0.041919470490899065, 'mean_word_length': 3.9293478260869565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6931947', 'n_tokens_mistral': 842, 'n_tokens_neox': 807, 'n_words': 147}