<commit_before>#!/bin/bash
# This program installs the software needed to develop Hillview

# Bail out at first error
set -e
set -x

SAVEDIR=${PWD}
mydir="$(dirname -- "$0")"
if [[ ! -d "${mydir}" ]]; then mydir="${PWD}"; fi
# shellcheck source=./lib.sh
source ${mydir}/lib.sh

echo "Installing programs needed to build"

case "${OSTYPE}" in
    linux*)
        echo "Installing curl"
        ${SUDO} ${INSTALL} install curl -y
        if [ "$(cat /etc/*-release | grep -Ec 'ubuntu|debian')" -ne 0 ]; then
            curl -sL https://deb.nodesource.com/setup_12.x | ${SUDO} -E bash -
	elif [ "$(cat /etc/*-release | grep -c -e centos -e rhel )" -ne 0 ]; then
            curl -sL https://rpm.nodesource.com/setup_12.x | ${SUDO} -E bash -
	else
	    echo "Unhandled operating system $OSTYPE"; exit 1;
	fi
        ;;
esac

${SUDO} ${INSTALL} install wget maven ${NODEJS} ${LIBFORTRAN} unzip gzip python3
echo "Installing typescript compiler"
${SUDO} npm install -g typescript@3.9.7
pip install json

# Download apache if not there.
pushd ..
if [ ! -d apache-tomcat-${TOMCATVERSION} ]; then
    echo "Installing apache Tomcat web server"
    wget http://archive.apache.org/dist/tomcat/tomcat-9/v${TOMCATVERSION}/bin/apache-tomcat-${TOMCATVERSION}.tar.gz
    tar xvfz apache-tomcat-${TOMCATVERSION}.tar.gz
    cd apache-tomcat-${TOMCATVERSION}/webapps
    rm -rf ROOT* examples docs manager host-manager
    ln -s ../../web/target/web-1.0-SNAPSHOT.war ROOT.war
    cd ../..
    rm -rf apache-tomcat-${TOMCATVERSION}.tar.gz
else
    echo "Tomcat already installed"<commit_msg>Remove erroneous pip install command (#718)<commit_after>#!/bin/bash
# This program installs the software needed to develop Hillview

# Bail out at first error
set -e
set -x

SAVEDIR=${PWD}
mydir="$(dirname -- "$0")"
if [[ ! -d "${mydir}" ]]; then mydir="${PWD}"; fi
# shellcheck source=./lib.sh
source ${mydir}/lib.sh

echo "Installing programs needed to build"

case "${OSTYPE}" in
    linux*)
        echo "Installing curl"
        ${SUDO} ${INSTALL} install curl -y
        if [ "$(cat /etc/*-release | grep -Ec 'ubuntu|debian')" -ne 0 ]; then
            curl -sL https://deb.nodesource.com/setup_12.x | ${SUDO} -E bash -
	elif [ "$(cat /etc/*-release | grep -c -e centos -e rhel )" -ne 0 ]; then
            curl -sL https://rpm.nodesource.com/setup_12.x | ${SUDO} -E bash -
	else
	    echo "Unhandled operating system $OSTYPE"; exit 1;
	fi
        ;;
esac

${SUDO} ${INSTALL} install wget maven ${NODEJS} ${LIBFORTRAN} unzip gzip python3
echo "Installing typescript compiler"
${SUDO} npm install -g typescript@3.9.7

# Download apache if not there.
pushd ..
if [ ! -d apache-tomcat-${TOMCATVERSION} ]; then
    echo "Installing apache Tomcat web server"
    wget http://archive.apache.org/dist/tomcat/tomcat-9/v${TOMCATVERSION}/bin/apache-tomcat-${TOMCATVERSION}.tar.gz
    tar xvfz apache-tomcat-${TOMCATVERSION}.tar.gz
    cd apache-tomcat-${TOMCATVERSION}/webapps
    rm -rf ROOT* examples docs manager host-manager
    ln -s ../../web/target/web-1.0-SNAPSHOT.war ROOT.war
    cd ../..
    rm -rf apache-tomcat-${TOMCATVERSION}.tar.gz
else
    echo "Tomcat already installed"
{'fraction_non_alphanumeric': 0.1574279379157428, 'fraction_numerical': 0.010452961672473868, 'mean_word_length': 3.0127064803049555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3072286', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1098, 'n_words': 317}