<commit_before>#!/bin/sh
if test -z "${TREEMACHINE_ROOT}" -o test -z "${TREEMACHINE_NEO4J_HOME}"
then
    EXIT_WITH_ERR=1
fi
if ! test -d ${VAGRANT_HOME_DIR}
then
    EXIT_WITH_ERR=1
fi

if test $EXIT_WITH_ERR = 1
then
    echo Your environment is not configured correctly.
    echo IMPORTANT: this script is intended to be run from within a vagrant provisioning set-up.
    echo IT WILL OVERWRITE your treemachine configuration files.
    exit 1
fi

set -x

apt-get install -y openjdk-7-jdk || exit
apt-get install -y maven || exit

cd "${TREEMACHINE_ROOT}" || exit
sh mvn_cmdline.sh || exit
if test -f "${OPEN_TREE_DATA_DIR}/ott/${OTT_WITH_VERSION_NAME}/taxonomy"
then
    # add the taxonomy
    java -Xmx10g \
        -XX:-UseConcMarkSweepGC \
        -jar target/taxomachine-0.0.1-SNAPSHOT-jar-with-dependencies.jar \
        inittax \
        "${OPEN_TREE_DATA_DIR}/taxonomy" \
        "${OPEN_TREE_DATA_DIR}/synonyms" \
        "${TREEMACHINE_NEO4J_HOME}/data/gol.db"

    # add the metadatanode
    java -Xmx10g \
        -XX:-UseConcMarkSweepGC \<commit_msg>corrected paths for treemachine inittax command<commit_after>#!/bin/sh
if test -z "${TREEMACHINE_ROOT}" -o test -z "${TREEMACHINE_NEO4J_HOME}"
then
    EXIT_WITH_ERR=1
fi
if ! test -d ${VAGRANT_HOME_DIR}
then
    EXIT_WITH_ERR=1
fi

if test $EXIT_WITH_ERR = 1
then
    echo Your environment is not configured correctly.
    echo IMPORTANT: this script is intended to be run from within a vagrant provisioning set-up.
    echo IT WILL OVERWRITE your treemachine configuration files.
    exit 1
fi

set -x

apt-get install -y openjdk-7-jdk || exit
apt-get install -y maven || exit

cd "${TREEMACHINE_ROOT}" || exit
sh mvn_cmdline.sh || exit
if test -f "${OPEN_TREE_DATA_DIR}/ott/${OTT_WITH_VERSION_NAME}/taxonomy"
then
    # add the taxonomy
    java -Xmx10g \
        -XX:-UseConcMarkSweepGC \
        -jar target/taxomachine-0.0.1-SNAPSHOT-jar-with-dependencies.jar \
        inittax \
        "${OPEN_TREE_DATA_DIR}/ott/${OTT_WITH_VERSION_NAME}/taxonomy" \
        "${OPEN_TREE_DATA_DIR}/ott/${OTT_WITH_VERSION_NAME}/synonyms" \
        "${TREEMACHINE_NEO4J_HOME}/data/gol.db"

    # add the metadatanode
    java -Xmx10g \
        -XX:-UseConcMarkSweepGC \
{'fraction_non_alphanumeric': 0.1079136690647482, 'fraction_numerical': 0.012589928057553957, 'mean_word_length': 3.1203703703703702, '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': '4206848', 'n_tokens_mistral': 844, 'n_tokens_neox': 842, 'n_words': 201}