<commit_before>cd /home/www-data
pwd

# Install local (for www-data) versions of carbon and its dependencies.
pip install https://github.com/graphite-project/ceres/tarball/master \
  --install-option="--prefix=/home/www-data/graphite" \
  --install-option="--install-lib=/home/www-data/graphite/lib"
pip install whisper --install-option="--prefix=/home/www-data/graphite" \
  --install-option="--install-lib=/home/www-data/graphite/lib"
pip install carbon --install-option="--prefix=/home/www-data/graphite" \
  --install-option="--install-lib=/home/www-data/graphite/lib"

# Install graphite-web.
if [ -d graphite-web ]; then
  (cd graphite-web && git pull);
else
  git clone https://github.com/graphite-project/graphite-web.git
fi

cd graphite-web
python setup.py  install --prefix=/home/www-data/graphite \
  --install-lib=/home/www-data/graphite/lib

cd /home/www-data
# Install Go
if [ -d go ]; then
  echo Go already installed.
else
  wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz
  tar -xzf go1.2.1.linux-amd64.tar.gz
fi

HOME=/home/www-data
mkdir=$HOME/golib
# Prebuilt Go binaries default to /usr/local/go
export GOROOT=$HOME/go
export GOPATH=$HOME/golib
export PATH=$PATH:$GOROOT/bin

# Get buildbot code so we can build the prober.
if [ -d buildbot ]; then
  (cd buildbot && git pull);
else
  git clone https://skia.googlesource.com/buildbot
fi

cd buildbot/compute_engine_scripts/monitoring/prober
go get -d
go build<commit_msg>Move HOME to a better location.<commit_after>cd /home/www-data
pwd

# Install local (for www-data) versions of carbon and its dependencies.
pip install https://github.com/graphite-project/ceres/tarball/master \
  --install-option="--prefix=/home/www-data/graphite" \
  --install-option="--install-lib=/home/www-data/graphite/lib"
pip install whisper --install-option="--prefix=/home/www-data/graphite" \
  --install-option="--install-lib=/home/www-data/graphite/lib"
pip install carbon --install-option="--prefix=/home/www-data/graphite" \
  --install-option="--install-lib=/home/www-data/graphite/lib"

# Install graphite-web.
if [ -d graphite-web ]; then
  (cd graphite-web && git pull);
else
  git clone https://github.com/graphite-project/graphite-web.git
fi

cd graphite-web
python setup.py  install --prefix=/home/www-data/graphite \
  --install-lib=/home/www-data/graphite/lib

HOME=/home/www-data
cd $HOME
# Install Go
if [ -d go ]; then
  echo Go already installed.
else
  wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz
  tar -xzf go1.2.1.linux-amd64.tar.gz
fi

mkdir=$HOME/golib
# Prebuilt Go binaries default to /usr/local/go
export GOROOT=$HOME/go
export GOPATH=$HOME/golib
export PATH=$PATH:$GOROOT/bin

# Get buildbot code so we can build the prober.
if [ -d buildbot ]; then
  (cd buildbot && git pull);
else
  git clone https://skia.googlesource.com/buildbot
fi

cd buildbot/compute_engine_scripts/monitoring/prober
go get -d
go build
{'fraction_non_alphanumeric': 0.15145299145299146, 'fraction_numerical': 0.006837606837606838, 'mean_word_length': 3.6444444444444444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 23, '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': '3222121', 'n_tokens_mistral': 1079, 'n_tokens_neox': 1023, 'n_words': 228}