<commit_before>#!/bin/bash

##############################################################################
# install_cypress
#
# This script automates the manual installation instructions documented at:
# https://github.com/projectcypress/cypress/wiki/Installation-Guide
#
# It is designed to be run on a basic installation of Ubuntu 12.04 LTS 64-bit
# server (http://releases.ubuntu.com/precise/) and was tested using the ISO
# Ubuntu image named ubuntu-12.04.1-server-amd64.iso.
#
# After installing Ubuntu, log in as the admin user (the user account
# specified during the install) and perform the following commands to make
# sure all currently installed packages are current:
#
#   sudo apt-get update
#   sudo apt-get upgrade
#
# If any packages were upgraded, it is recommended to reboot, then log in
# again as the admin user and you are now ready to run this script.
#
# This script performs the following tasks:
#  1) Installs SSH server
#  2) Configures system to use an HTTP proxy if necessary
#  3) Install Git
#  4) Install RVM and Ruby 1.9.3
#  5) Install MongoDB
#  6) Install libxml2 2.8 from source
#  7) Install Nokogiri
#  8) Install Cypress application
#  9) Import measure bundle
# 10) Configure startup processes
# 11) Configure Passenger / Apache
#
# Author: <NAME> <<EMAIL>>
# Date:   10 Dec 2012
##############################################################################

# Variables that determine the versions of components we will install
install_ruby_ver="1.9.3-p286"
install_bundler_ver="1.2.3"
install_libxml_ver="2.8.0"
install_nokogiri_ver="1.5.5"
install_passenger_ver="3.0.18"

###################################################
# You shouldn't need to modify anything below here.
###################################################

mongodb_key_id="7F0CEB10"
libxml_archive="libxml2-${install_libxml_ver}.tar.gz"

# Variables that are set by options to the script
config_proxy=0
proxy_host=""
proxy_port=80
inport_valuesets=0
nlm_user=""
nlm_passwd=""

###################################################
# Functions used by the script
###################################################

#####
# Display a message in red text.
# Parameters:<commit_msg>Fixed typo in variable name.<commit_after>#!/bin/bash

##############################################################################
# install_cypress
#
# This script automates the manual installation instructions documented at:
# https://github.com/projectcypress/cypress/wiki/Installation-Guide
#
# It is designed to be run on a basic installation of Ubuntu 12.04 LTS 64-bit
# server (http://releases.ubuntu.com/precise/) and was tested using the ISO
# Ubuntu image named ubuntu-12.04.1-server-amd64.iso.
#
# After installing Ubuntu, log in as the admin user (the user account
# specified during the install) and perform the following commands to make
# sure all currently installed packages are current:
#
#   sudo apt-get update
#   sudo apt-get upgrade
#
# If any packages were upgraded, it is recommended to reboot, then log in
# again as the admin user and you are now ready to run this script.
#
# This script performs the following tasks:
#  1) Installs SSH server
#  2) Configures system to use an HTTP proxy if necessary
#  3) Install Git
#  4) Install RVM and Ruby 1.9.3
#  5) Install MongoDB
#  6) Install libxml2 2.8 from source
#  7) Install Nokogiri
#  8) Install Cypress application
#  9) Import measure bundle
# 10) Configure startup processes
# 11) Configure Passenger / Apache
#
# Author: <NAME> <<EMAIL>>
# Date:   10 Dec 2012
##############################################################################

# Variables that determine the versions of components we will install
install_ruby_ver="1.9.3-p286"
install_bundler_ver="1.2.3"
install_libxml_ver="2.8.0"
install_nokogiri_ver="1.5.5"
install_passenger_ver="3.0.18"

###################################################
# You shouldn't need to modify anything below here.
###################################################

mongodb_key_id="7F0CEB10"
libxml_archive="libxml2-${install_libxml_ver}.tar.gz"

# Variables that are set by options to the script
config_proxy=0
proxy_host=""
proxy_port=80
import_valuesets=0
nlm_user=""
nlm_passwd=""

###################################################
# Functions used by the script
###################################################

#####
# Display a message in red text.
# Parameters:
{'fraction_non_alphanumeric': 0.2395005675368899, 'fraction_numerical': 0.02996594778660613, 'mean_word_length': 5.517751479289941, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '7118784', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1200, 'n_words': 439}