<commit_before>#!/bin/sh
sudo apt-get update  # To get the latest package lists
sudo apt-get install curl -y
curl -L get.rvm.io | bash -s stable

#Install and run rvm
source ~/.rvm/scripts/rvm

#Acquire dependencies for rvm
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion -y

#Use rvm to install ruby version 1.9.3
rvm install 1.9.3

#Make rvm use 1.9.3 as the default version
rvm use 1.9.3 --default

#Update rubygems with rvm
rvm rubygems current

#Install ruby on rails
gem install rails

#Download node.js and install
git clone https://github.com/joyent/node.git
cd node
git checkout v0.6.18
./configure
make
sudo make install
cd

#Download, install and launch the application
git clone https://github.com/alexlo03/CodeSwap.git

#Move into CodeSwap Directory
cd CodeSwap

#Move into src Directory
cd src

#installs/ updates bundle
bundle install

#set up the database
rake db:migrate

# Start the server!
rails server<commit_msg>Commented-out Git Repo Cloning for testing purposes<commit_after>#!/bin/sh
cd
sudo apt-get update  # To get the latest package lists
sudo apt-get install curl -y
curl -L get.rvm.io | bash -s stable

#Install and run rvm
source ~/.rvm/scripts/rvm

#Acquire dependencies for rvm
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion -y

#Use rvm to install ruby version 1.9.3
rvm install 1.9.3

#Make rvm use 1.9.3 as the default version
rvm use 1.9.3 --default

#Update rubygems with rvm
rvm rubygems current

#Install ruby on rails
gem install rails

#Download node.js and install
git clone https://github.com/joyent/node.git
cd node
git checkout v0.6.18
./configure
make
sudo make install
cd

##REMOVED FOR INITIAL TESTING
#Download, install and launch the application
#git clone https://github.com/alexlo03/CodeSwap.git

#Move into CodeSwap Directory
cd CodeSwap

#Move into src Directory
cd src

#installs/ updates bundle
bundle install

#set up the database
rake db:migrate

# Start the server!
rails server
{'fraction_non_alphanumeric': 0.0705073086844368, 'fraction_numerical': 0.02235597592433362, 'mean_word_length': 4.205816554809844, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7632266', 'n_tokens_mistral': 826, 'n_tokens_neox': 775, 'n_words': 304}