<commit_before>#!/usr/bin/env bash
# Update package manager
echo "- - - Updating Package Manager, Step 1 - - -"
sudo apt-get update
echo "- - - Updating Package Manager, Step 2 - - -"
sudo apt-get -y upgrade

# Install dependencies
echo "- - - Installing Dependencies - - -"
sudo apt-get install -y build-essential libv8-dev imagemagick libmagickwand-dev redis-server cmake libssh2-1-dev ghostscript libaprutil1-dev swig graphviz

# Install Ruby
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.5 ruby2.5-dev -y
sudo update-alternatives --config ruby
sudo update-alternatives --config gem
sudo gem install bundler

# Install git
echo "- - - Installing Git - - -"
sudo apt-get install -y git

# Install postgres (note: on 16.04+, can install postgres through the standard repository)
echo "- - - Installing Postgres - - -"
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5 libpq-dev

# Install node
echo "- - - Installing Node, Step 1 - - -"
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
echo "- - - Installing Node, Step 2 - - -"
sudo apt-get install -y nodejs

# Install yarn
echo "- - - Installing Yarn, Step 1 - - -"
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "- - - Installing Yarn, Step 2 - - -"
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
echo "- - - Installing Yarn, Step 3 - - -"
sudo apt-get update && sudo apt-get install -y yarn

# Change time zone
echo "- - - Changing Time Zone, Step 1 - - -"
sudo rm -f /etc/localtime
echo "- - - Changing Time Zone, Step 2 - - -"
sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime

# MarkUs installation
MARKUS_ROOT=~/Markus

# Clone the Markus repository.
echo "- - - Cloning Markus - - -"
git clone https://github.com/MarkUsProject/Markus.git $MARKUS_ROOT
cd $MARKUS_ROOT

# Project-specific dependencies now
echo "- - - Installing Project-specific Dependencies, Step 1 - - -"
bundle config libv8 -- --with-system-v8
bundle config github.https true
echo "- - - Installing Project-specific Dependencies, Step 2 - - -"
bundle install --without mysql sqlite3 --path vendor/bundle

echo "- - - Install JavaScript dependencies - - -"<commit_msg>Update provisioning bundle install command<commit_after>#!/usr/bin/env bash
# Update package manager
echo "- - - Updating Package Manager, Step 1 - - -"
sudo apt-get update
echo "- - - Updating Package Manager, Step 2 - - -"
sudo apt-get -y upgrade

# Install dependencies
echo "- - - Installing Dependencies - - -"
sudo apt-get install -y build-essential libv8-dev imagemagick libmagickwand-dev redis-server cmake libssh2-1-dev ghostscript libaprutil1-dev swig graphviz

# Install Ruby
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.5 ruby2.5-dev -y
sudo update-alternatives --config ruby
sudo update-alternatives --config gem
sudo gem install bundler

# Install git
echo "- - - Installing Git - - -"
sudo apt-get install -y git

# Install postgres (note: on 16.04+, can install postgres through the standard repository)
echo "- - - Installing Postgres - - -"
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5 libpq-dev

# Install node
echo "- - - Installing Node, Step 1 - - -"
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
echo "- - - Installing Node, Step 2 - - -"
sudo apt-get install -y nodejs

# Install yarn
echo "- - - Installing Yarn, Step 1 - - -"
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "- - - Installing Yarn, Step 2 - - -"
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
echo "- - - Installing Yarn, Step 3 - - -"
sudo apt-get update && sudo apt-get install -y yarn

# Change time zone
echo "- - - Changing Time Zone, Step 1 - - -"
sudo rm -f /etc/localtime
echo "- - - Changing Time Zone, Step 2 - - -"
sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime

# MarkUs installation
MARKUS_ROOT=~/Markus

# Clone the Markus repository.
echo "- - - Cloning Markus - - -"
git clone https://github.com/MarkUsProject/Markus.git $MARKUS_ROOT
cd $MARKUS_ROOT

# Project-specific dependencies now
echo "- - - Installing Project-specific Dependencies, Step 1 - - -"
bundle config libv8 -- --with-system-v8
bundle config github.https true
echo "- - - Installing Project-specific Dependencies, Step 2 - - -"
bundle install --without mysql sqlite unicorn --path vendor/bundle

echo "- - - Install JavaScript dependencies - - -"
{'fraction_non_alphanumeric': 0.1307722157547536, 'fraction_numerical': 0.01338766006984866, 'mean_word_length': 3.014797507788162, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, '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': '2232467', 'n_tokens_mistral': 1836, 'n_tokens_neox': 1692, 'n_words': 531}