<commit_before>#!/usr/bin/env bash 
set -x #Pring every line of commands out

sudo apt-get update
sudo apt-get upgrade

export KS_INST_DIR=~/ks_inst
export KS_INST_SOURCE_DIR=~/ks-installation

if [ ! -d "$KS_INST_DIR" ]; then
   sudo mkdir $KS_INST_DIR
fi
if [ -f "$KS_INST_DIR/ks-inst.log" ]; then
   sudo rm $KS_INST_DIR/ks-inst.log
fi


sudo chown stack $KS_INST_DIR
# Set fd 1 and 2 to write the log file
exec 1> >( tools/outfilter.py -v -o "$KS_INST_DIR/ks-inst.log" ) 2>&1

cd $KS_INST_DIR

#Prerequisites
wget https://bootstrap.pypa.io/ez_setup.py
sudo python ez_setup.py
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

read -p "Microwise: ez_setup and get-pip." var

sudo apt-get install -y python-dev
sudo apt-get install -y libffi-dev
sudo apt-get install -y protobuf-compiler
sudo apt-get install -y memcached
sudo pip install pyeclib

read -p "Microwise: Prerequisites." var



#Install kinetic-java source
#KS(kinetic-swift) need kinetic-java to communicate with kinetic devices 
cd ~
wget http://172.16.31.10/files/4032000006347FDB/download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz<commit_msg>modified jdk download command<commit_after>#!/usr/bin/env bash 
set -x #Pring every line of commands out

sudo apt-get update
sudo apt-get upgrade

export KS_INST_DIR=~/ks_inst
export KS_INST_SOURCE_DIR=~/ks-installation

if [ ! -d "$KS_INST_DIR" ]; then
   sudo mkdir $KS_INST_DIR
fi
if [ -f "$KS_INST_DIR/ks-inst.log" ]; then
   sudo rm $KS_INST_DIR/ks-inst.log
fi


sudo chown stack $KS_INST_DIR
# Set fd 1 and 2 to write the log file
exec 1> >( tools/outfilter.py -v -o "$KS_INST_DIR/ks-inst.log" ) 2>&1

cd $KS_INST_DIR

#Prerequisites
wget https://bootstrap.pypa.io/ez_setup.py
sudo python ez_setup.py
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

read -p "Microwise: ez_setup and get-pip." var

sudo apt-get install -y python-dev
sudo apt-get install -y libffi-dev
sudo apt-get install -y protobuf-compiler
sudo apt-get install -y memcached
sudo pip install pyeclib

read -p "Microwise: Prerequisites." var



#Install kinetic-java source
#KS(kinetic-swift) need kinetic-java to communicate with kinetic devices 
cd ~
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz
{'fraction_non_alphanumeric': 0.11593591905564925, 'fraction_numerical': 0.021922428330522766, 'mean_word_length': 4.006329113924051, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4903951', 'n_tokens_mistral': 998, 'n_tokens_neox': 899, 'n_words': 247}