<commit_before>#/bin/sh
# Ensure that all your children are truly dead when you yourself are killed.
# trap "kill -- -$BASHPID" INT TERM EXIT
# leave out EXIT for now
trap "kill -- -$BASHPID" INT TERM
echo "BASHPID: $BASHPID"
echo "current PID: $$"

SH2JU=~/shell2junit/sh2ju.sh
echo "Checking that sh2ju.sh exists in the right place"
if [ -f $SH2JU ]
then
    echo "$SH2JU exists."
else
    # http://code.google.com/p/shell2junit
    # use in jenkins:
    # http://manolocarrasco.blogspot.com/2010/02/hudson-publish-bach.html
    pushd ~
    wget http://shell2junit.googlecode.com/files/shell2junit-1.0.0.zip
    unzip shell2junit-1.0.0.zip 
    ls -lt shell2junit/sh2ju_example.sh  
    ls -lt shell2junit/sh2ju.sh    
    popd

    if [ -f $SH2JU ]
    then
        echo "$SH2JU exists."
    fi
fi

#### Include the library
source $SH2JU

# This gets the h2o.jar
source ./runner_setup.sh

rm -f h2o-nodes.json
if [[ $USER == "jenkins" ]]
then 
    # clean out old ice roots from 0xcust.** (assuming we're going to run as 0xcust..
    # only do this if you're jenksin
    echo "If we use more machines, expand this cleaning list."
    echo "The possibilities should be relatively static over time"
    echo "Could be problems if other threads also using that user on these machines at same time"
    echo "Could make the rm pattern match a "sourcing job", not just 0xcustomer"
    ssh -i ~/.0xcustomer/0xcustomer_id_rsa 0xcustomer@192.168.1.161 rm -f -r /home/0xcustomer/ice*

    # HACK this is really 161 plus 164. this allows us to talk to localhost:54321 accidently (R)
    python ../four_hour_cloud.py -cj pytest_config-jenkins-161.json &
    CLOUD_IP=192.168.1.161
    CLOUD_PORT=54321
else
    if [[ $USER == "kevin" ]]
    then
        python ../four_hour_cloud.py -cj pytest_config-kevin.json &
        CLOUD_IP=127.1.1.1<commit_msg>match the changed port<commit_after>#/bin/sh
# Ensure that all your children are truly dead when you yourself are killed.
# trap "kill -- -$BASHPID" INT TERM EXIT
# leave out EXIT for now
trap "kill -- -$BASHPID" INT TERM
echo "BASHPID: $BASHPID"
echo "current PID: $$"

SH2JU=~/shell2junit/sh2ju.sh
echo "Checking that sh2ju.sh exists in the right place"
if [ -f $SH2JU ]
then
    echo "$SH2JU exists."
else
    # http://code.google.com/p/shell2junit
    # use in jenkins:
    # http://manolocarrasco.blogspot.com/2010/02/hudson-publish-bach.html
    pushd ~
    wget http://shell2junit.googlecode.com/files/shell2junit-1.0.0.zip
    unzip shell2junit-1.0.0.zip 
    ls -lt shell2junit/sh2ju_example.sh  
    ls -lt shell2junit/sh2ju.sh    
    popd

    if [ -f $SH2JU ]
    then
        echo "$SH2JU exists."
    fi
fi

#### Include the library
source $SH2JU

# This gets the h2o.jar
source ./runner_setup.sh

rm -f h2o-nodes.json
if [[ $USER == "jenkins" ]]
then 
    # clean out old ice roots from 0xcust.** (assuming we're going to run as 0xcust..
    # only do this if you're jenksin
    echo "If we use more machines, expand this cleaning list."
    echo "The possibilities should be relatively static over time"
    echo "Could be problems if other threads also using that user on these machines at same time"
    echo "Could make the rm pattern match a "sourcing job", not just 0xcustomer"
    ssh -i ~/.0xcustomer/0xcustomer_id_rsa 0xcustomer@192.168.1.161 rm -f -r /home/0xcustomer/ice*

    # HACK this is really 161 plus 164. this allows us to talk to localhost:54377 accidently (R)
    python ../four_hour_cloud.py -cj pytest_config-jenkins-161.json &
    CLOUD_IP=192.168.1.161
    CLOUD_PORT=54377
else
    if [[ $USER == "kevin" ]]
    then
        python ../four_hour_cloud.py -cj pytest_config-kevin.json &
        CLOUD_IP=127.1.1.1
{'fraction_non_alphanumeric': 0.10765485528807141, 'fraction_numerical': 0.04490127130105491, 'mean_word_length': 2.8926315789473684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '7234271', 'n_tokens_mistral': 1448, 'n_tokens_neox': 1339, 'n_words': 416}