<commit_before>#!/bin/bash
#
# Copyright (c) 2012-2013 <NAME>
# Alle Rechte vorbehalten / All Rights Reserved.  Use is subject to license terms.
#
# <https://github.com/anba/es6draft>
#

#
# Description:
# Helper script to start the simple REPL
#

REL_PATH="$( dirname "$0" )"
BUILD_DIR="${REL_PATH}/../../../target"
CLASSES="${BUILD_DIR}/classes"
DEP_DIR="${BUILD_DIR}/dependencies"
DEPENDENCIES=`ls -1 "${DEP_DIR}" | sed 's,^,'"${DEP_DIR}"'/&,' | sed ':a;{N; s/\n/:/; ta}'`
CLASSPATH="${CLASSES}:${DEPENDENCIES}"
MAINCLASS="com.github.anba.es6draft.repl.Repl"

if [[ $OSTYPE == "cygwin" ]] ; then
  CLASSPATH=`cygpath -wp "${CLASSPATH}"`
fi

java -ea -esa -Xbootclasspath/a:"${CLASSPATH}" "${MAINCLASS}" "$@"
<commit_msg>Add optional JAVA_OPTS when startings the repl<commit_after>#!/bin/bash
#
# Copyright (c) 2012-2013 <NAME>
# Alle Rechte vorbehalten / All Rights Reserved.  Use is subject to license terms.
#
# <https://github.com/anba/es6draft>
#

#
# Description:
# Helper script to start the simple REPL
#

REL_PATH="$( dirname "$0" )"
BUILD_DIR="${REL_PATH}/../../../target"
CLASSES="${BUILD_DIR}/classes"
DEP_DIR="${BUILD_DIR}/dependencies"
DEPENDENCIES=`ls -1 "${DEP_DIR}" | sed 's,^,'"${DEP_DIR}"'/&,' | sed ':a;{N; s/\n/:/; ta}'`
CLASSPATH="${CLASSES}:${DEPENDENCIES}"
MAINCLASS="com.github.anba.es6draft.repl.Repl"
JAVA_OPTS="${JAVA_OPTS:-""}"

if [[ $OSTYPE == "cygwin" ]] ; then
  CLASSPATH=`cygpath -wp "${CLASSPATH}"`
fi

java ${JAVA_OPTS} -ea -esa -Xbootclasspath/a:"${CLASSPATH}" "${MAINCLASS}" "$@"

{'fraction_non_alphanumeric': 0.2294543063773833, 'fraction_numerical': 0.015779092702169626, 'mean_word_length': 5.0396825396825395, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4970871', 'n_tokens_mistral': 644, 'n_tokens_neox': 606, 'n_words': 120}