<commit_before>#!/bin/bash

# LOG AS ifbuser
# THEN sudo su

# GUESS THE PULBIC IP ADRESS ON OPEN STACK CLOUD
# curl http://169.254.169.254/latest/meta-data/public-ipv4


sudo yum -y install git
sudo yum -y install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -
sudo yum -y install nodejs


export CLUSTER_QUEUELIST_CMD=`which qstat`
export CLUSTER_QUEUESUB_CMD=`which qsub`
export CLUSTER_QUEUEDEL_CMD=`which qdel`

HOME_DIR=`pwd`
CACHE_DIR=$HOME_DIR/cacheDir
sudo chmod a+w $CACHE_DIR

PRIVATE_IP=`awk '$2 == "master" {print $1;exit}' /etc/hosts`

cat << EOF > $HOME_DIR/configuration.json
{
    "binaries" : {
        "cancelBin" : $CLUSTER_QUEUEDEL_CMD,
        "queueBin"  : $CLUSTER_QUEUELIST_CMD,
        "submitBin" : $CLUSTER_QUEUELIST_CMD
  },
  "cacheDir" : $CACHE_DIR,
  "port" : 5000,
  "tcp" : $PRIVATE_IP,
  "engineType" : "sge",
    "jobSettings" : {
        "user" : "ifbuser",
        "script" : "/home/ifbuser/dummyTask.sh"
  }
}
EOF

mkdir $CACHE_DIR
<commit_msg>updated recipe<commit_after>#!/bin/bash

# LOG AS ifbuser
# THEN sudo su

# GUESS THE PULBIC IP ADRESS ON OPEN STACK CLOUD
# curl http://169.254.169.254/latest/meta-data/public-ipv4


sudo yum -y install git
sudo yum -y install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -
sudo yum -y install nodejs


export CLUSTER_QUEUELIST_CMD=`which qstat`
export CLUSTER_QUEUESUB_CMD=`which qsub`
export CLUSTER_QUEUEDEL_CMD=`which qdel`

HOME_DIR=`pwd`
CACHE_DIR=$HOME_DIR/cacheDir
sudo chmod a+w $CACHE_DIR

PRIVATE_IP=`awk '$2 == "master" {print $1;exit}' /etc/hosts`
mkdir $CACHE_DIR


cat << EOF > $HOME_DIR/configuration.json
{
    "binaries" : {
        "cancelBin" : $CLUSTER_QUEUEDEL_CMD,
        "queueBin"  : $CLUSTER_QUEUELIST_CMD,
        "submitBin" : $CLUSTER_QUEUELIST_CMD
  },
  "cacheDir" : $CACHE_DIR,
  "port" : 5000,
  "tcp" : $PRIVATE_IP,
  "engineType" : "sge",
    "jobSettings" : {
        "user" : "ifbuser",
        "script" : "/home/ifbuser/dummyTask.sh"
  }
}
EOF

cat << EOF > $HOME_DIR/dummy.sh
ls
pwd -P
sleep 35
echo "Something"
EOF

cat << EOF > $HOME_DIR/dummy.qsub
#!/bin/bash
#
# LOG ERROR SCHEDULER located in
# /opt/sge/default/spool/
#$ -u ifbuser
#$ -wd /home/ifbuser/cacheDir
#$ -N dummy_name_long
#$ -o dummy.out
#$ -e dummy.err

ls
pwd -P
EOF

sleep 300
{'fraction_non_alphanumeric': 0.14218415417558886, 'fraction_numerical': 0.019271948608137045, 'mean_word_length': 3.518375241779497, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2066259', 'n_tokens_mistral': 1049, 'n_tokens_neox': 972, 'n_words': 214}