<commit_before>#!/bin/bash
#Creates the basic structure to later apply the updateEngine and runEngine scripts to launch the NetIDE Engine, also indicates what components to install (20/04/16)

NetIDE_DIR="$HOME/NetIDE"

if [ "$1" == "-h" ] || [ "$1" == "--help" ]
then
	echo "Usage: setEngine.sh"
	exit 0
fi

if [ -d $NetIDE_DIR ]; then
        echo "NetIDE folder already exists"
	exit 0
fi

mkdir $NetIDE_DIR
cd $NetIDE_DIR
git clone https://github.com/fp7-netide/Engine.git

echo -e "\nThis setup requires the following components:"
echo "  => git, curl,... (and other packages required by the Engine -> check GitHub)"
echo "  => Java 8: Oracle + JDK (specifically JDK for Java core + ODL shim; Oracle for ONOS shim)"
echo "  => Maven >3.1 (specifically 3.3.3 for Java core + ODL shim; 3.3.9 for ONOS shim)"
echo "  => Mininet >2.2.1"

echo -e "\nAnd having installed inside NetIDE folder ($NetIDE_DIR):"
echo "  => Apache Karaf 3.0.5"<commit_msg>Added instructions to install Java 8 OpenJDK in setEngine.sh<commit_after>#!/bin/bash
#Creates the basic structure to later apply the updateEngine and runEngine scripts to launch the NetIDE Engine, also indicates what components to install (20/04/16)

NetIDE_DIR="$HOME/NetIDE"

#if [ "$1" == "-h" ] || [ "$1" == "--help" ]
#then
#	echo "Usage: setEngine.sh"
#	exit 0
#fi

#if [ -d $NetIDE_DIR ]; then
#        echo "NetIDE folder already exists"
#	exit 0
#fi

#mkdir $NetIDE_DIR
#cd $NetIDE_DIR
#git clone https://github.com/fp7-netide/Engine.git

echo -e "\nThis setup requires the following components:"
echo "  => git, curl,... (and other packages required by the Engine -> check GitHub)"
echo "  => Mininet >2.2.1"
echo "  => Maven >3.1 (specifically 3.3.3 for Java core + ODL shim; 3.3.9 for ONOS shim)"
echo "  => Java 8 Oracle (for ONOS shim)"
echo "  => Java 8 OpenJDK (for Java core + ODL shim)"
echo "  ===> sudo add-apt-repository ppa:openjdk-r/ppa"
echo "  ===> sudo apt-get update"
echo "  ===> sudo apt-get install openjdk-8-jdk"
echo "  ===> sudo update-alternatives --config java"
echo "  ===> sudo update-alternatives --config javac"

echo -e "\nAnd having installed inside NetIDE folder ($NetIDE_DIR):"
echo "  => Apache Karaf 3.0.5"
{'fraction_non_alphanumeric': 0.14123524069028157, 'fraction_numerical': 0.024977293369663943, 'mean_word_length': 3.727467811158798, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, 'https://': 2, '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': '1975168', 'n_tokens_mistral': 797, 'n_tokens_neox': 752, 'n_words': 276}