<commit_before>DETECTION_DIRECTORY=$(cd `dirname $0` && pwd)

# installing dependecies
sudo apt-get install git subversion cmake build-essential libgtk2.0-dev libjpeg8-dev pkg-config

# setting up opencv
cd ~/Public
mkdir opencv
cd opencv
svn co https://code.ros.org/svn/opencv/tags/latest_tested_snapshot
cd latest_tested_snapshot/opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install
sudo ldconfig -v

# installing light plugin
sudo gem install jeweler
cd $DETECTION_DIRECTORY
cd spoc
sh install.sh

# installing runner
sudo apt-get install postgresql-8.4 pgadmin3 libpq-dev

sudo gem install bundler
cd $DETECTION_DIRECTORY
cd runner
sudo bundle install<commit_msg>setup script<commit_after>DETECTION_DIRECTORY=$(cd `dirname $0` && pwd)

# installing dependecies
sudo apt-get update; apt-get upgrade; apt-get install sudo git-core subversion cmake build-essential libgtk2.0-dev libjpeg-dev pkg-config postgresql libpq-dev libopenssl-ruby;

# setting up opencv
cd ~
mkdir opencv
cd opencv
svn co https://code.ros.org/svn/opencv/tags/latest_tested_snapshot
cd latest_tested_snapshot/opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install
sudo ldconfig -v

# installing light plugin
sudo gem install jeweler
cd $DETECTION_DIRECTORY
cd spoc
sh install.sh

cd $DETECTION_DIRECTORY
cd runner
sudo bundle install
{'fraction_non_alphanumeric': 0.07019958706125258, 'fraction_numerical': 0.006882312456985547, 'mean_word_length': 5.37719298245614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7172023', 'n_tokens_mistral': 529, 'n_tokens_neox': 476, 'n_words': 151}