<commit_before>#!/bin/bash
. ./storm_env.sh

printFormat (){
	echo "Format: ./squall_local.sh CONFIG_PATH [EXTRA_JARS]"
	echo "        or"
	echo "        ./squall_local.sh MODE CONFIG_PATH [EXTRA_JARS]"
}

MODE=$1
if [[ "$MODE" != "PLAN_RUNNER" && "$MODE" != "SQL" ]]; then
	MODE=SQL
else
        shift
fi

# Set default variables according to mode
if [ "$MODE" == "PLAN_RUNNER" ]; then
	CONFIG_DIR=../test/squall/confs/local
	COMMAND=squall/runPlanner
else
	CONFIG_DIR=../test/squall_plan_runner/confs/local
	COMMAND=squall/runParser
fi

CONFIG_PATH=$1
shift
EXTRA_JARS=$(realpath $@)

# check if your configuration file exists
if ! [ -f $CONFIG_PATH ]; then
	echo "File $CONFIG_PATH does not exist! Please specify a valid configuration file!"
	exit 1
fi

# Now run
cd ..

sbt "$COMMAND $CONFIG_PATH $EXTRA_JARS"
<commit_msg>Small fix in bin/squall_local.sh<commit_after>#!/bin/bash
. ./storm_env.sh

printFormat (){
	echo "Format: ./squall_local.sh CONFIG_PATH [EXTRA_JARS]"
	echo "        or"
	echo "        ./squall_local.sh MODE CONFIG_PATH [EXTRA_JARS]"
}

MODE=$1
if [[ "$MODE" != "PLAN_RUNNER" && "$MODE" != "SQL" ]]; then
	MODE=SQL
else
        shift
fi

# Set default variables according to mode
if [ "$MODE" == "PLAN_RUNNER" ]; then
	CONFIG_DIR=../test/squall/confs/local
	COMMAND=squall/runPlanner
else
	CONFIG_DIR=../test/squall_plan_runner/confs/local
	COMMAND=squall/runParser
fi

CONFIG_PATH=$1
shift
if [ "$#" -ne "0" ]; then
    EXTRA_JARS=$(realpath $@)
fi


# check if your configuration file exists
if ! [ -f $CONFIG_PATH ]; then
	echo "File $CONFIG_PATH does not exist! Please specify a valid configuration file!"
	exit 1
fi

# Now run
cd ..

sbt "$COMMAND $CONFIG_PATH $EXTRA_JARS"

{'fraction_non_alphanumeric': 0.13958944281524927, 'fraction_numerical': 0.004105571847507331, 'mean_word_length': 3.846590909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4582610', 'n_tokens_mistral': 665, 'n_tokens_neox': 636, 'n_words': 162}