<commit_before>#!/usr/bin/env bash

# Install homebrew
if ! [ -x "$(command -v brew)" ]; then
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi;

brew tap caskroom/cask
brew tap homebrew/versions
brew tap homebrew/dupes
brew tap homebrew/homebrew-php

brew install brew-cask
brew tap caskroom/versions

brew install ansible
brew install composer

brew install fish
echo /usr/local/bin/fish >>/etc/shells #add to list of shells
chsh -s /usr/local/bin/fish #fish default

brew install git
brew install mysql
brew install node
brew install php56
brew install php56-mcrypt
brew install php56-xdebug
brew install siege
brew install rmtrash
brew install wget

brew cask install atom
brew cask install hipchat
brew cask install firefox
brew cask install google-chrome
brew cask install mongohub
brew cask install sequel-pro
brew cask install the-unarchiver

brew cleanup
brew cask cleanup<commit_msg>Error checking on brew.sh<commit_after>#!/usr/bin/env bash

packages=(
    ansible
    brew-cask
    composer
    fish
    git
    mysql
    node
    php56
    php56-mcrypt
    php56-xdebug
    siege
    rmtrash
    wget
)

apps=(
    atom
    hipchat
    firefox
    google-chrome
    mongohub
    sequel-pro
    the-unarchiver
)

# Install homebrew
if ! [ -x "$(command -v brew)" ]; then
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi;

# Tapping
brew tap caskroom/cask
brew tap homebrew/versions
brew tap homebrew/dupes
brew tap homebrew/homebrew-php
brew tap caskroom/versions

# Install Packages
for p in "${packages[@]}"
do
    if ! brew list -1 | grep -q "^${p}\$"; then
        brew install $p;
    fi
done

# Install Applications
for a in "${apps[@]}"
do
    if ! brew cask list -1 | grep -q "^${a}\$"; then
        brew cask install $a;
    fi
done

# Setup fish shell
if ! grep -q 'fish' /etc/shells; then
    echo /usr/local/bin/fish >>/etc/shells #add to list of shells
fi;
chsh -s /usr/local/bin/fish #fish default

# Cleanup
brew cleanup
brew cask cleanup
{'fraction_non_alphanumeric': 0.0941747572815534, 'fraction_numerical': 0.006796116504854369, 'mean_word_length': 3.214723926380368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2504924', 'n_tokens_mistral': 718, 'n_tokens_neox': 683, 'n_words': 243}