<commit_before>#!/usr/bin/env sh 
#
#

# Update/upgrade
sudo apt-get update
sudo apt-get upgrade

# Get linux packages needed for Nitrogen
sudo apt-get install -yyq git emacs build-essential mongodb-server redis-server ruby1.9.1-dev libffi-dev

# Manage node installation on ubuntu
sudo apt-get --purge remove node nodejs
sudo apt-get install -yyq nodejs
sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
sudo apt-get install -yyq npm

# Get Nitrogen - this is a repo of submodules to make life easier
mkdir nitrogen
cd nitrogen
git clone https://github.com/nitrogenjs/service.git
git clone https://github.com/nitrogenjs/admin.git

# Start the service
cd service
sudo npm install
cp /vagrant/nitrogen-service.conf /etc/init/nitrogen-service.conf
start nitrogen-service

# Start the admin app 
cd ../admin
npm install -g yo grunt-cli bower
npm install
bower --allow-root install
gem install compass
cp /vagrant/nitrogen-admin.conf /etc/init/nitrogen-admin.conf
start nitrogen-admin
<commit_msg>Update install.sh<commit_after>#!/usr/bin/env sh 
#
#

# Update/upgrade
sudo apt-get update
sudo apt-get upgrade

# Get linux packages needed for Nitrogen
sudo apt-get install -yyq git emacs build-essential mongodb-server redis-server ruby1.9.1-dev libffi-dev

# Manage node installation on ubuntu
sudo apt-get --purge remove node nodejs
sudo apt-get install -yyq nodejs
sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
sudo apt-get install -yyq npm

# Get Nitrogen - this is a repo of submodules to make life easier
mkdir nitrogen
cd nitrogen

# Start the service
git clone https://github.com/nitrogenjs/service.git
cd service
sudo npm install
cp /vagrant/nitrogen-service.conf /etc/init/nitrogen-service.conf
start nitrogen-service
cd ..

# Start the admin app 
git clone https://github.com/nitrogenjs/admin.git
cd admin
npm install -g yo grunt-cli bower
npm install
bower --allow-root install
gem install compass
cp /vagrant/nitrogen-admin.conf /etc/init/nitrogen-admin.conf
start nitrogen-admin
cd ..

{'fraction_non_alphanumeric': 0.08606356968215159, 'fraction_numerical': 0.004889975550122249, 'mean_word_length': 3.9420289855072466, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7277656', 'n_tokens_mistral': 702, 'n_tokens_neox': 642, 'n_words': 231}