<commit_before>#! /bin/bash

local _pwd=$(pwd)

# install bcc and dependencies
echo "installing bcc dependencies"
sudo apt-get install -y bison build-essential cmake flex git libedit-dev \
libllvm3.7 llvm-3.7-dev libclang-3.7-dev python zlib1g-dev libelf-dev

# echo installing bcc
cd $DATA_DIR
rm -rf bcc  # be sure that there is not al already git clone of bcc
git clone https://github.com/iovisor/bcc.git
# there is an issue with master bcc and hover. use a previous version of
# bcc to avoid it.
cd bcc
git checkout d31f845e23899ff3b27b7e6f5a18330266fef2f3
mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install

echo "installing go"
curl -O https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
tar -xvf go1.6.2.linux-amd64.tar.gz

sudo rm -rf /usr/local/go
sudo mv go /usr/local

sudo rm -f /usr/bin/go
sudo ln -s /usr/local/go/bin/go /usr/bin<commit_msg>tutorials/install-minimal: use latest bcc version<commit_after>#! /bin/bash

local _pwd=$(pwd)

# install bcc and dependencies
echo "installing bcc dependencies"
sudo apt-get install -y bison build-essential cmake flex git libedit-dev \
libllvm3.7 llvm-3.7-dev libclang-3.7-dev python zlib1g-dev libelf-dev

# echo installing bcc
cd $DATA_DIR
rm -rf bcc  # be sure that there is not al already git clone of bcc
git clone https://github.com/iovisor/bcc.git
cd bcc
mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install

echo "installing go"
curl -O https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
tar -xvf go1.6.2.linux-amd64.tar.gz

sudo rm -rf /usr/local/go
sudo mv go /usr/local

sudo rm -f /usr/bin/go
sudo ln -s /usr/local/go/bin/go /usr/bin
{'fraction_non_alphanumeric': 0.10604265402843602, 'fraction_numerical': 0.035545023696682464, 'mean_word_length': 3.665745856353591, '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': '4305671', 'n_tokens_mistral': 693, 'n_tokens_neox': 640, 'n_words': 202}