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

export DEBIAN_FRONTEND=noninteractive

# All the commands will run as the root by vagrant provisioning
# unless the user is explicitly set.
# Add '/usr/local/bin' to root's $PATH variable.
export PATH=$PATH:/usr/local/bin

# Update
apt-get -q -y autoclean
apt-get -q -y autoremove
apt-get -q -y update
apt-get -q -y upgrade

# Tools
apt-get -q -y install zip
apt-get -q -y install git

# JavaScript
apt-get -q -y install nodejs
ln -s /usr/bin/nodejs /usr/bin/node
apt-get -q -y install phantomjs
apt-get -q -y install npm
npm install -g bower
npm install -g grunt-cli

# Sass
apt-get -q -y install ruby
gem install sass

# Build JavaScript
pushd .
cd /vagrant/public/app
npm install
bower --allow-root install
cd ../neurod
npm install
bower --allow-root install
cd ../shared
npm install
bower --allow-root install
cd ../consent
npm install
bower --allow-root install
cd ../
npm install
grunt release
popd

# Java
apt-get -q -y install openjdk-7-jdk

# Play
wget http://downloads.typesafe.com/play/2.2.4/play-2.2.4.zip
unzip play-2.2.4.zip
rm play-2.2.4.zip

# Redis
apt-get -q -y install redis-server
<commit_msg>Fix around the play command.<commit_after>#!/usr/bin/env bash

export DEBIAN_FRONTEND=noninteractive

# All the commands will run as the root by vagrant provisioning
# unless the user is explicitly set.
# Add '/usr/local/bin' to root's $PATH variable.
export PATH=$PATH:/usr/local/bin

# Update
apt-get -q -y autoclean
apt-get -q -y autoremove
apt-get -q -y update
apt-get -q -y upgrade

# Tools
apt-get -q -y install zip
apt-get -q -y install git

# JavaScript
apt-get -q -y install nodejs
ln -s /usr/bin/nodejs /usr/bin/node
apt-get -q -y install phantomjs
apt-get -q -y install npm
npm install -g bower
npm install -g grunt-cli

# Sass
apt-get -q -y install ruby
gem install sass

# Java
apt-get -q -y install openjdk-7-jdk

# Play
su -c "wget http://downloads.typesafe.com/play/2.2.4/play-2.2.4.zip" - vagrant
su -c "unzip play-2.2.4.zip" - vagrant
su
rm play-2.2.4.zip
echo 'export PATH=$PATH:/home/vagrant/play-2.2.4' >> /home/vagrant/.profile

# Redis
apt-get -q -y install redis-server

{'fraction_non_alphanumeric': 0.12365842277181521, 'fraction_numerical': 0.013532431171255249, 'mean_word_length': 3.052930056710775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6832652', 'n_tokens_mistral': 854, 'n_tokens_neox': 818, 'n_words': 278}