<commit_before>#!/bin/bash

set -e

echo Installing dependencies
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
    sudo add-apt-repository --yes ppa:neovim-ppa/unstable
    sudo apt-get -qq update
    sudo apt-get install -y neovim libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
    export DISPLAY=':99.0'
    sh -e /etc/init.d/xvfb start
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    brew install neovim pkg-config cairo pango libpng giflib jpeg || true
else
    echo "Unknown platform: ${TRAVIS_OS_NAME}"
    exit 1
fi

npm run dep

uname -a
nvim --version
./node_modules/.bin/tsc --version
./node_modules/.bin/browserify --version
./node_modules/.bin/mocha --version
./node_modules/.bin/electron --version<commit_msg>avoid 'Homebrew must be run under Ruby 2.3!' on macOS on Travis CI<commit_after>#!/bin/bash

set -e

echo Installing dependencies
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
    sudo add-apt-repository --yes ppa:neovim-ppa/unstable
    sudo apt-get -qq update
    sudo apt-get install -y neovim libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
    export DISPLAY=':99.0'
    sh -e /etc/init.d/xvfb start
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    brew update
    HOMEBREW_NO_AUTO_UPDATE=1 brew install neovim pkg-config cairo pango libpng giflib jpeg
else
    echo "Unknown platform: ${TRAVIS_OS_NAME}"
    exit 1
fi

npm run dep

uname -a
nvim --version
./node_modules/.bin/tsc --version
./node_modules/.bin/browserify --version
./node_modules/.bin/mocha --version
./node_modules/.bin/electron --version
{'fraction_non_alphanumeric': 0.12966476913345984, 'fraction_numerical': 0.012017710309930424, 'mean_word_length': 3.3822714681440442, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2107200', 'n_tokens_mistral': 606, 'n_tokens_neox': 568, 'n_words': 157}