<commit_before>#! /bin/sh

#mkdir -p /opt
#apt-get update
#apt-get -q -y install git bc wget build-essential
#wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
#
#tar -C /usr/local -xzf go1.4.2.linux-amd64.tar.gz
#
#export PATH=$PATH:/usr/local/go/bin

cd /opt

git clone https://github.com/couchbase/sync_gateway.git

cd /opt/sync_gateway
git submodule init
git submodule update
./build.sh
cp bin/sync_gateway /usr/local/bin

mkdir -p /opt/sync_gateway/data
rm go1.4.2.linux-amd64.tar.gz
rm -rf /opt/sync_gateway<commit_msg>sudo in build script<commit_after>#! /bin/sh

#mkdir -p /opt
#apt-get update
#apt-get -q -y install git bc wget build-essential
#wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
#
#tar -C /usr/local -xzf go1.4.2.linux-amd64.tar.gz
#
#export PATH=$PATH:/usr/local/go/bin

cd /opt

sudo git clone https://github.com/couchbase/sync_gateway.git

sudo cd /opt/sync_gateway
sudo git submodule init
sudo git submodule update
sudo ./build.sh
sudo cp bin/sync_gateway /usr/local/bin

sudo mkdir -p /opt/sync_gateway/data
sudo rm go1.4.2.linux-amd64.tar.gz
sudo rm -rf /opt/sync_gateway
{'fraction_non_alphanumeric': 0.1436077057793345, 'fraction_numerical': 0.02626970227670753, 'mean_word_length': 3.553784860557769, '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': '3354357', 'n_tokens_mistral': 497, 'n_tokens_neox': 463, 'n_words': 109}