<commit_before>CP_SEP=":"
CLASSPATH=`find ../ -name "*.jar" | awk '{p=$0"'$CP_SEP'"p;} END {print p}'`

JAVA_LOC=""
if [ "x$JAVA_HOME" != "x" ] ; then
  JAVA_LOC=${JAVA_HOME}"/bin/"
fi

CMD="${JAVA_LOC}java -classpath $CLASSPATH io.s4.client.example.Inject $1 $2 $3 $4"
echo $CMD
$CMD
<commit_msg>inject.sh would not run on Linux when current directory was not the script directory; fix that<commit_after>#!/bin/bash

osx=false
case "`uname`" in
Darwin*) osx=true;;
esac

if $osx; then
    READLINK="stat"    
else
    READLINK="readlink"
fi

BASE_DIR=`dirname $($READLINK -f $0)`
INJECT_HOME=`$READLINK -f ${BASE_DIR}/..`

CP_SEP=":"
CLASSPATH=`find ${INJECT_HOME} -name "*.jar" | awk '{p=$0"'$CP_SEP'"p;} END {print p}'`

JAVA_LOC=""
if [ "x$JAVA_HOME" != "x" ] ; then
  JAVA_LOC=${JAVA_HOME}"/bin/"
fi

CMD="${JAVA_LOC}java -classpath $CLASSPATH io.s4.client.example.Inject $1 $2 $3 $4"
#echo $CMD
$CMD

{'fraction_non_alphanumeric': 0.20860927152317882, 'fraction_numerical': 0.01434878587196468, 'mean_word_length': 4.777070063694268, 'pattern_counts': {'":': 2, '<': 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': '2271750', 'n_tokens_mistral': 404, 'n_tokens_neox': 394, 'n_words': 92}