<commit_before>#!/bin/bash
SCRIPT=`pwd`/$0
FILENAME=`basename $SCRIPT`
PATHNAME=`dirname $SCRIPT`
ROOT=$PATHNAME/..
BUILD_DIR=$ROOT/build
CURRENT_DIR=`pwd`

LIB_DIR=$BUILD_DIR/libdeps

pause() {
  read -p "$*"
}

install_homebrew(){
  ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
}

install_brew_deps(){
  brew install glib pkg-config boost cmake node mongodb rabbitmq
}

install_libnice(){
  if [ -d $LIB_DIR ]; then
    cd $LIB_DIR
    curl -O http://nice.freedesktop.org/releases/libnice-0.1.3.tar.gz
    tar -zxvf libnice-0.1.3.tar.gz
    cd libnice-0.1.3
    echo nice_agent_set_port_range >> nice/libnice.sym
    ./configure
    make
    sudo make install
    cd $CURRENT_DIR
  else
    mkdir -p $LIB_DIR
    install_libnice
  fi
}<commit_msg>Added node-gyp to mac dependencies<commit_after>#!/bin/bash
SCRIPT=`pwd`/$0
FILENAME=`basename $SCRIPT`
PATHNAME=`dirname $SCRIPT`
ROOT=$PATHNAME/..
BUILD_DIR=$ROOT/build
CURRENT_DIR=`pwd`

LIB_DIR=$BUILD_DIR/libdeps

pause() {
  read -p "$*"
}

install_homebrew(){
  ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
}

install_brew_deps(){
  brew install glib pkg-config boost cmake node mongodb rabbitmq
  npm install -g node-gyp
}

install_libnice(){
  if [ -d $LIB_DIR ]; then
    cd $LIB_DIR
    curl -O http://nice.freedesktop.org/releases/libnice-0.1.3.tar.gz
    tar -zxvf libnice-0.1.3.tar.gz
    cd libnice-0.1.3
    echo nice_agent_set_port_range >> nice/libnice.sym
    ./configure
    make
    sudo make install
    cd $CURRENT_DIR
  else
    mkdir -p $LIB_DIR
    install_libnice
  fi
}
{'fraction_non_alphanumeric': 0.13575525812619502, 'fraction_numerical': 0.012746972594008922, 'mean_word_length': 3.361111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '3594435', 'n_tokens_mistral': 659, 'n_tokens_neox': 614, 'n_words': 128}