<commit_before>#!/bin/sh

if [ -z "$JAVA_HOME" ]; then
    export JAVA_HOME=$(readlink -f `which java` | sed "s:bin/java::")
fi

export CASSANDRA_HOME=/usr/share/brisk/cassandra
export CASSANDRA_BIN=/usr/sbin

if [ "x$CASSANDRA_INCLUDE" = "x" ]; then
    for include in /usr/share/cassandra/cassandra.in.sh \
                   /usr/local/share/cassandra/cassandra.in.sh \
                   /opt/cassandra/cassandra.in.sh \
                   ~/.cassandra.in.sh \
                   `dirname $0`/cassandra.in.sh; do
        if [ -r $include ]; then
            . $include
            break
        fi
    done
elif [ -r $CASSANDRA_INCLUDE ]; then
    . $CASSANDRA_INCLUDE
fi

# jasper hack
for jar in `find /usr/share/brisk/hadoop/lib/jasper*.jar`; do
    export CLASSPATH=$jar:$CLASSPATH
done
for jar in `find /usr/share/brisk/*/lib`; do
    export CLASSPATH=$CLASSPATH:$jar
done

if [ -n "$HADOOP_NATIVE_ROOT" ]; then
    for jar in $HADOOP_NATIVE_ROOT/*.jar; do
    export CLASSPATH=$CLASSPATH:$jar
    done

    JAVA_PLATFORM=`$HADOOP_HOME/bin/hadoop org.apache.hadoop.util.PlatformName | sed -e "s/ /_/g"`

    export JAVA_LIBRARY_PATH=$HADOOP_NATIVE_ROOT/lib/native/${JAVA_PLATFORM}/
fi

export HADOOP_CLASSPATH=$CLASSPATH

#hadoop requires absolute home
export HADOOP_HOME=/usr/share/brisk/hadoop
export HADOOP_CONF_DIR=/etc/brisk/hadoop<commit_msg>Add HADOOP_HOME to the classpath<commit_after>#!/bin/sh

if [ -z "$JAVA_HOME" ]; then
    export JAVA_HOME=$(readlink -f `which java` | sed "s:bin/java::")
fi

export CASSANDRA_HOME=/usr/share/brisk/cassandra
export CASSANDRA_BIN=/usr/sbin

if [ "x$CASSANDRA_INCLUDE" = "x" ]; then
    for include in /usr/share/cassandra/cassandra.in.sh \
                   /usr/local/share/cassandra/cassandra.in.sh \
                   /opt/cassandra/cassandra.in.sh \
                   ~/.cassandra.in.sh \
                   `dirname $0`/cassandra.in.sh; do
        if [ -r $include ]; then
            . $include
            break
        fi
    done
elif [ -r $CASSANDRA_INCLUDE ]; then
    . $CASSANDRA_INCLUDE
fi

# jasper hack
for jar in `find /usr/share/brisk/hadoop/lib/jasper*.jar`; do
    export CLASSPATH=$jar:$CLASSPATH
done
for jar in `find /usr/share/brisk/*/lib`; do
    export CLASSPATH=$CLASSPATH:$jar
done

if [ -n "$HADOOP_NATIVE_ROOT" ]; then
    for jar in $HADOOP_NATIVE_ROOT/*.jar; do
    export CLASSPATH=$CLASSPATH:$jar
    done

    JAVA_PLATFORM=`$HADOOP_HOME/bin/hadoop org.apache.hadoop.util.PlatformName | sed -e "s/ /_/g"`

    export JAVA_LIBRARY_PATH=$HADOOP_NATIVE_ROOT/lib/native/${JAVA_PLATFORM}/
fi

export HADOOP_CLASSPATH=$CLASSPATH

#hadoop requires absolute home
export HADOOP_HOME=/usr/share/brisk/hadoop
CLASSPATH=$CLASSPATH:$HADOOP_HOME
export HADOOP_CONF_DIR=/etc/brisk/hadoop
{'fraction_non_alphanumeric': 0.12865919768702566, 'fraction_numerical': 0.0007228044813877846, 'mean_word_length': 2.7711171662125342, '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': '5874335', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1070, 'n_words': 196}