<commit_before>#!/bin/bash

# Path to JAR
JAR=`dirname $0`/target/gremlin-*-standalone.jar

# Find Java
if [ "$JAVA_HOME" = "" ] ; then
	JAVA="java -server"
else
	JAVA="$JAVA_HOME/bin/java -server"
fi

# Set Java options
if [ "$JAVA_OPTIONS" = "" ] ; then
	JAVA_OPTIONS="-Xms32M -Xmx512M"
fi

# Launch the application
if [ "$1" = "-e" ]; then
  k=$2
  if [ $# > 2 ]; then
    for (( i=3 ; i < $# + 1 ; i++ ))
    do
      eval a=\$$i
      k="$k \"$a\""
    done
  fi

  eval "$JAVA $JAVA_OPTIONS -cp $JAR com.tinkerpop.gremlin.ScriptExecutor $k"
else
  if [ "$1" = "-v" ]; then
    echo "Gremlin 0.6"
  else
    $JAVA $JAVA_OPTIONS -cp $JAR com.tinkerpop.gremlin.Console
  fi
fi

# Return the program's exit code
exit $?<commit_msg>modifying gremlin.sh to run the necessary stuff<commit_after>#!/bin/bash

NAME="gremlin-0.6-SNAPSHOT"

if [ -d "target/$NAME" ]
then
  target/$NAME/bin/gremlin $@
else
  mvn clean package -Dmaven.test.skip=true && unzip target/$NAME-standalone.zip -d target
  target/$NAME/bin/gremlin $@
fi

{'fraction_non_alphanumeric': 0.1728515625, 'fraction_numerical': 0.015625, 'mean_word_length': 3.0836653386454183, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3766494', 'n_tokens_mistral': 456, 'n_tokens_neox': 418, 'n_words': 102}