<commit_before>## Install dependencies on Ubuntu or OS X (using Homebrew)
set -e

if [ $TRAVIS = true ]; then
  os="$TRAVIS_OS_NAME"
else
  os=${1:-`uname`}
fi

# install pre-requisites on Ubuntu
if [ $os = linux ] || [ $os = Linux ]; then

  # see https://bugs.launchpad.net/ubuntu/+source/suitesparse/+bug/1333214
  sudo add-apt-repository -y ppa:bzindovic/suitesparse-bugfix-1319687

  sudo apt-get update -qq
  sudo apt-get install -y --no-install-recommends \
    freeglut3-dev \
    libarpack2-dev \
    libboost-math-dev \
    libboost-random-dev \
    libeigen3-dev \
    libflann-dev \
    libgtest-dev \
    libnifti-dev \
    libpng12-dev \
    libsuitesparse-dev \
    libtbb-dev \
    libvtk6-dev

  mkdir "$HOME/gtest-build" && cd "$HOME/gtest-build"
  cmake /usr/src/gtest && make
  sudo mv -f libgtest.a libgtest_main.a /usr/lib
  rm -rf "$HOME/gtest-build"

# install pre-requisites on OS X
elif [ $os = osx ] || [ $os = Darwin ]; then

  brew update
  brew tap homebrew/science
  brew install \
    arpack \
    boost \
    eigen \
    flann \<commit_msg>fix: Remove 'brew install boost'<commit_after>## Install dependencies on Ubuntu or OS X (using Homebrew)
set -e

if [ $TRAVIS = true ]; then
  os="$TRAVIS_OS_NAME"
else
  os=${1:-`uname`}
fi

# install pre-requisites on Ubuntu
if [ $os = linux ] || [ $os = Linux ]; then

  # see https://bugs.launchpad.net/ubuntu/+source/suitesparse/+bug/1333214
  sudo add-apt-repository -y ppa:bzindovic/suitesparse-bugfix-1319687

  sudo apt-get update -qq
  sudo apt-get install -y --no-install-recommends \
    freeglut3-dev \
    libarpack2-dev \
    libboost-math-dev \
    libboost-random-dev \
    libeigen3-dev \
    libflann-dev \
    libgtest-dev \
    libnifti-dev \
    libpng12-dev \
    libsuitesparse-dev \
    libtbb-dev \
    libvtk6-dev

  mkdir "$HOME/gtest-build" && cd "$HOME/gtest-build"
  cmake /usr/src/gtest && make
  sudo mv -f libgtest.a libgtest_main.a /usr/lib
  rm -rf "$HOME/gtest-build"

# install pre-requisites on OS X
elif [ $os = osx ] || [ $os = Darwin ]; then

  brew update
  brew tap homebrew/science
  brew install \
    arpack \
    eigen \
    flann \
{'fraction_non_alphanumeric': 0.13005109150023222, 'fraction_numerical': 0.019507663725034836, 'mean_word_length': 2.5544554455445545, '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': '3797420', 'n_tokens_mistral': 888, 'n_tokens_neox': 812, 'n_words': 193}