<commit_before>#!/bin/sh

PATH=/usr/local/bin:$PATH

TAPS=(
    homebrew/dupes
    homebrew/science
    laurent22/massren
    peco/peco
)

FORMULAS=(
    zsh
    bash
    tmux
    "vim --with-lua --with-luajit"
    git
    git-flow
    tig
    homebrew/dupes/grep
    homebrew/dupes/less
    laurent22/massren/massren
    peco/peco/peco
    ack
    cloc
    watch
    tree
    pv
    rename
    jq
    multitail
    mtr
    nmap
    iftop
    wget
    curl
    siege
    wrk
    tcpdump
    w3m
    "gnuplot --wx"
    grap
    sqlite
    gdb
    cgdb
    "go --cross-compile-common"
    python3
    ghc
    cabal-install
    node
    automake
    autoconf
    cmake
    ctags
    graphviz
)

function install() {
    [ -x "/usr/local/bin/brew" ] || {
        ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"    
    }
}

function brew_up() {
    for tap in "${TAPS[@]}"; do
        brew tap $tap
    done

    for formula in "${FORMULAS[@]}"; do
        brew install $formula
    done
}

function main() {
    install

    brew update
    brew upgrade

    brew_up

    brew cleanup -s -f
    brew doctor
    brew prune
}

main<commit_msg>Linted version of brewfile.sh<commit_after>#!/usr/bin/env bash

PATH=/usr/local/bin:$PATH

TAPS=(
    homebrew/dupes
    homebrew/science
    laurent22/massren
    peco/peco
)

FORMULAS=(
    zsh
    bash
    tmux
    "vim --with-lua --with-luajit"
    git
    tig
    homebrew/dupes/grep
    homebrew/dupes/less
    laurent22/massren/massren
    peco/peco/peco
    grap
    ack
    cloc
    watch
    tree
    pv
    rename
    jq
    mtr
    nmap
    iftop
    wget
    curl
    siege
    wrk
    tcpdump
    w3m
    "gnuplot --wx"
    graphviz
    gdb
    cgdb
    "go --cross-compile-common"
    python3
    ghc
    cabal-install
    node
)

install() {
    [ -x "/usr/local/bin/brew" ] || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}

brew_up() {
    for t in "${TAPS[@]}"; do brew tap $t; done
    for f in "${FORMULAS[@]}"; do brew install $f; done
}

main() {
    install

    brew update
    brew upgrade

    brew_up

    brew cleanup -s -f
    brew doctor
    brew prune
}

main
{'fraction_non_alphanumeric': 0.10333935018050541, 'fraction_numerical': 0.005415162454873646, 'mean_word_length': 1.7540372670807454, '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': '4061487', 'n_tokens_mistral': 880, 'n_tokens_neox': 843, 'n_words': 195}