<commit_before>#!/bin/sh


#readlink -f does not work on mac, use alternate script
TARGET_FILE=$0

cd `dirname $TARGET_FILE`
TARGET_FILE=`basename $TARGET_FILE`

# Iterate down a (possible) chain of symlinks
while [ -L "$TARGET_FILE" ]
do
    TARGET_FILE=`readlink $TARGET_FILE`
    cd `dirname $TARGET_FILE`
    TARGET_FILE=`basename $TARGET_FILE`
done

REALPATH=$TARGET_FILE
#end of readlink -f

LOCATION=$( cd $(dirname $REALPATH) ; pwd -P )

MEMORY=$1
shift

CONFIGDIR=$1
shift

FLAG=""

JVMVERSION=`java -version 2>&1 | tail -1 -`

case "$JVMVERSION" in
  *64-Bit*) FLAG="-XX:+UseCompressedOops";;
esac


cp -r configuration ${CONFIGDIR}

ulimit -S -v unlimited
ulimit -S -s unlimited

export MALLOC_ARENA_MAX=1

export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"

java -Dfile.encoding=UTF-8 -Xss1M -Xms64m -Xmx${MEMORY} -Dosgi.locking=none -Dosgi.configuration.area=${CONFIGDIR} $FLAG -XX:ReservedCodeCacheSize=128m -XX:MaxMetaspaceSize=128m -XX:CompressedClassSpaceSize=128m -XX:+UseG1GC -XX:ParallelGCThreads=1 \
  -cp "${LOCATION}/launcher/*" org.openmole.launcher.Launcher --plugins ${LOCATION}/plugins/ --run org.openmole.runtime.SimExplorer --osgi-directory ${CONFIGDIR} -- $@

RETURNCODE=$?

rm -rf ${CONFIGDIR}

exit $RETURNCODE

<commit_msg>[Runtime] enh: increase stack size.<commit_after>#!/bin/sh


#readlink -f does not work on mac, use alternate script
TARGET_FILE=$0

cd `dirname $TARGET_FILE`
TARGET_FILE=`basename $TARGET_FILE`

# Iterate down a (possible) chain of symlinks
while [ -L "$TARGET_FILE" ]
do
    TARGET_FILE=`readlink $TARGET_FILE`
    cd `dirname $TARGET_FILE`
    TARGET_FILE=`basename $TARGET_FILE`
done

REALPATH=$TARGET_FILE
#end of readlink -f

LOCATION=$( cd $(dirname $REALPATH) ; pwd -P )

MEMORY=$1
shift

CONFIGDIR=$1
shift

FLAG=""

JVMVERSION=`java -version 2>&1 | tail -1 -`

case "$JVMVERSION" in
  *64-Bit*) FLAG="-XX:+UseCompressedOops";;
esac


cp -r configuration ${CONFIGDIR}

ulimit -S -v unlimited
ulimit -S -s unlimited

export MALLOC_ARENA_MAX=1

export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"

java -Dfile.encoding=UTF-8 -Xss2M -Xms64m -Xmx${MEMORY} -Dosgi.locking=none -Dosgi.configuration.area=${CONFIGDIR} $FLAG -XX:ReservedCodeCacheSize=128m -XX:MaxMetaspaceSize=128m -XX:CompressedClassSpaceSize=128m -XX:+UseG1GC -XX:ParallelGCThreads=1 \
  -cp "${LOCATION}/launcher/*" org.openmole.launcher.Launcher --plugins ${LOCATION}/plugins/ --run org.openmole.runtime.SimExplorer --osgi-directory ${CONFIGDIR} -- $@

RETURNCODE=$?

rm -rf ${CONFIGDIR}

exit $RETURNCODE


{'fraction_non_alphanumeric': 0.14488188976377953, 'fraction_numerical': 0.02047244094488189, 'mean_word_length': 4.854838709677419, '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': '12796', 'n_tokens_mistral': 1010, 'n_tokens_neox': 957, 'n_words': 222}