<commit_before>#!/bin/bash

# Terminate script on error
set -e

# Ruby stuffs: Install bundler so we can grab other gems
echo "Installing bundler"
gem install bundler

echo "Setup bundle"
( cd server && bundle install )

echo "Setup compass"
( cd server && compass init --config config.rb )

# Python stuffs: Install pip and virtualenv before we install any packages
echo "Installing pip"
easy_install pip

echo "Installing virtualenv"
pip install virtualenv

VENV_DIR="$HOME/.virtualenv"
RMC_VENV_DIR="$VENV_DIR/rmc"
echo "Creating virtualenv in $VENV_DIR"
mkdir $VENV_DIR
virtualenv $RMC_VENV_DIR
# TODO(Sandy): Couldn't find a better way to do this. Is this dangerous?
chown -R $SUDO_USER $VENV_DIR

echo "Activating virtualenv/rmc"
source $RMC_VENV_DIR/bin/activate

# Rest of Python stuff, under virtualenv
echo "Install pip requirements"<commit_msg>Added note to setup script<commit_after>#!/bin/bash

# Terminate script on error
set -e

# Ruby stuffs: Install bundler so we can grab other gems
echo "Installing bundler"
gem install bundler

echo "Setup bundle"
( cd server && bundle install )

echo "Setup compass"
( cd server && compass init --config config.rb )

# Python stuffs: Install pip and virtualenv before we install any packages
echo "Installing pip"
easy_install pip

echo "Installing virtualenv"
pip install virtualenv

VENV_DIR="$HOME/.virtualenv"
RMC_VENV_DIR="$VENV_DIR/rmc"
echo "Creating virtualenv in $VENV_DIR"
mkdir $VENV_DIR
virtualenv $RMC_VENV_DIR
# TODO(Sandy): Hmm shouldn't even need to run this script with sudo (at least
# for the gems, probably not for pip stuff either). Fix it next time I set up
# TODO(Sandy): Couldn't find a better way to do this. Is this dangerous?
# chown -R $SUDO_USER $VENV_DIR

echo "Activating virtualenv/rmc"
source $RMC_VENV_DIR/bin/activate

# Rest of Python stuff, under virtualenv
echo "Install pip requirements"
{'fraction_non_alphanumeric': 0.08027644869750133, 'fraction_numerical': 0.0, 'mean_word_length': 5.070967741935484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6824728', 'n_tokens_mistral': 613, 'n_tokens_neox': 592, 'n_words': 238}