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

# brew
# --------

# installs command line utilities via homebrew

TOOLS=(
    ack
    autojump
    bash
    bash-completion
    binutils
    cmake
    diffutils
    emacs
    findutils
    flac
    ffmpeg
    gawk
    gdb
    gifsicle
    git
    gnu-indent
    gnu-sed
    gnu-tar
    gnu-which
    gnutls
    gradle
    grep
    gzip
    jq
    lame
    less
    libffi
    libxml2
    make
    mercurial
    nano
    openssl
    shellcheck
    sl
    tmux
    tree
    "vim --with-lua --override-system-vi"
    watch
    wdiff
    wget
    xz
)

DATABASES=(
    memcached
    mongodb
    mysql
    postgresql
    redis
    sqlite
)

log -v "setting up homebrew..."

brew update &> /dev/null
brew upgrade --all &> /dev/null

brew tap caskroom/cask &> /dev/null
brew tap caskroom/versions &> /dev/null
brew tap homebrew/binary &> /dev/null
brew tap homebrew/boneyard &> /dev/null
brew tap homebrew/bundle &> /dev/null
brew tap homebrew/core &> /dev/null
brew tap homebrew/dupes &> /dev/null
brew tap homebrew/services &> /dev/null
brew tap homebrew/versions &> /dev/null

log -v "installing command line tools & utilities..."

for t in "${TOOLS[@]}"; do
    brew_install "$t"
done

log -v "installing databases..."

for d in "${DATABASES[@]}"; do
    prompt_user "install $d?"

    if [ $? == "0" ]; then
        brew_install "$d"
    fi
done

log -v "brew prune & cleanup..."
<commit_msg>fix brew vim install issue<commit_after>#!/usr/bin/env bash

# brew
# --------

# installs command line utilities via homebrew

TOOLS=(
    ack
    autojump
    bash
    bash-completion
    binutils
    cmake
    diffutils
    emacs
    findutils
    flac
    ffmpeg
    gawk
    gdb
    gifsicle
    git
    gnu-indent
    gnu-sed
    gnu-tar
    gnu-which
    gnutls
    gradle
    grep
    gzip
    jq
    lame
    less
    libffi
    libxml2
    make
    mercurial
    nano
    openssl
    shellcheck
    sl
    tmux
    tree
    "vim --with-lua --override-system-vi"
    watch
    wdiff
    wget
    xz
)

DATABASES=(
    memcached
    mongodb
    mysql
    postgresql
    redis
    sqlite
)

log -v "setting up homebrew..."

brew update &> /dev/null
brew upgrade --all &> /dev/null

brew tap caskroom/cask &> /dev/null
brew tap caskroom/versions &> /dev/null
brew tap homebrew/binary &> /dev/null
brew tap homebrew/boneyard &> /dev/null
brew tap homebrew/bundle &> /dev/null
brew tap homebrew/core &> /dev/null
brew tap homebrew/dupes &> /dev/null
brew tap homebrew/services &> /dev/null
brew tap homebrew/versions &> /dev/null

log -v "installing command line tools & utilities..."

for t in "${TOOLS[@]}"; do
    brew_install $t
done

log -v "installing databases..."

for d in "${DATABASES[@]}"; do
    prompt_user "install $d?"

    if [ $? == "0" ]; then
        brew_install "$d"
    fi
done

log -v "brew prune & cleanup..."

{'fraction_non_alphanumeric': 0.10890052356020942, 'fraction_numerical': 0.0013961605584642235, 'mean_word_length': 2.0521831735889244, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5141985', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1030, 'n_words': 298}