<commit_before>#!/usr/bin/env bash

APPNAME="auction"
VOLTJAR=`ls ../../../voltdb/voltdb-2.*.jar`
CLASSPATH="$VOLTJAR:../../../lib"
VOLTDB="../../../bin/voltdb"
VOLTCOMPILER="../../../bin/voltcompiler"
LICENSE="../../../voltdb/license.xml"

# remove build artifacts
function clean() {
    rm -rf obj debugoutput $APPNAME.jar voltdbroot plannerlog.txt voltdbroot
}

# compile the source code for procedures and the client
function srccompile() {
    mkdir -p obj/com/auctionexample/datafiles
    cp src/com/auctionexample/datafiles/*.txt obj/com/auctionexample/datafiles/
    javac -classpath $CLASSPATH -d obj \
        src/com/auctionexample/*.java \
        procedures/com/auctionexample/*.java \
        procedures/com/auctionexample/debug/*.java
    # stop if compilation fails
    if [ $? != 0 ]; then exit; fi
}

# build an application catalog
function catalog() {
    srccompile
    $VOLTCOMPILER obj project.xml $APPNAME.jar
    # stop if compilation fails
    if [ $? != 0 ]; then exit; fi
}

# run the voltdb server locally
function server() {
    # if a catalog doesn't exist, build one
    if [ ! -f $APPNAME.jar ]; then catalog; fi
    # run the server
    $VOLTDB create catalog $APPNAME.jar deployment deployment.xml \
        license $LICENSE leader localhost
}

# run the client that drives the example
function client() {
    srccompile
    java -classpath obj:$CLASSPATH com.auctionexample.Client
}

function export() {
    $EXPORTTOFILE -classpath $CLASSPATH \
        --connect admin --servers localhost --type csv \
        --nonce EXPORTDEMO --user voltdb --password demo
}

function help() {
    echo "Usage: ./run.sh {clean|catalog|client|server|export}"
}
<commit_msg>Fix broken export target in the auction tutorial.<commit_after>#!/usr/bin/env bash

APPNAME="auction"
VOLTJAR=`ls ../../../voltdb/voltdb-2.*.jar`
CLASSPATH="$VOLTJAR:../../../lib"
VOLTDB="../../../bin/voltdb"
EXPORTTOFILE="../../../bin/exporttofile"
VOLTCOMPILER="../../../bin/voltcompiler"
LICENSE="../../../voltdb/license.xml"

# remove build artifacts
function clean() {
    rm -rf obj debugoutput $APPNAME.jar voltdbroot plannerlog.txt voltdbroot
}

# compile the source code for procedures and the client
function srccompile() {
    mkdir -p obj/com/auctionexample/datafiles
    cp src/com/auctionexample/datafiles/*.txt obj/com/auctionexample/datafiles/
    javac -classpath $CLASSPATH -d obj \
        src/com/auctionexample/*.java \
        procedures/com/auctionexample/*.java \
        procedures/com/auctionexample/debug/*.java
    # stop if compilation fails
    if [ $? != 0 ]; then exit; fi
}

# build an application catalog
function catalog() {
    srccompile
    $VOLTCOMPILER obj project.xml $APPNAME.jar
    # stop if compilation fails
    if [ $? != 0 ]; then exit; fi
}

# run the voltdb server locally
function server() {
    # if a catalog doesn't exist, build one
    if [ ! -f $APPNAME.jar ]; then catalog; fi
    # run the server
    $VOLTDB create catalog $APPNAME.jar deployment deployment.xml \
        license $LICENSE leader localhost
}

# run the client that drives the example
function client() {
    srccompile
    java -classpath obj:$CLASSPATH com.auctionexample.Client
}

function export() {
    $EXPORTTOFILE \
        --connect client --servers localhost --type csv \
        --nonce EXPORTDEMO --user voltdb --password <PASSWORD>
}

function help() {
    echo "Usage: ./run.sh {clean|catalog|client|server|export}"
}

{'fraction_non_alphanumeric': 0.13681159420289854, 'fraction_numerical': 0.0017391304347826088, 'mean_word_length': 2.917139614074915, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '5143658', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1097, 'n_words': 298}