<commit_before>#!/bin/bash
# Navigate to the dotfiles/ dir.
scripts="$(dirname "$BASH_SOURCE")"
dotfiles="$(cd "$scripts"/.. && pwd)"

# Run general scripts.
"$dotfiles"/scripts/setup.sh

# Homebrew
echo "Installing Homebrew..."

if ! type brew &> /dev/null; then
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

brew tap homebrew/bundle
brew update &> /dev/null

# Install from Brewfile.
brew bundle --global

brew linkapps &> /dev/null

echo "Done installing Homebrew."
echo<commit_msg>setup-mac: Add brew cleanup<commit_after>#!/bin/bash
# Navigate to the dotfiles/ dir.
scripts="$(dirname "$BASH_SOURCE")"
dotfiles="$(cd "$scripts"/.. && pwd)"

# Run general scripts.
"$dotfiles"/scripts/setup.sh

# Homebrew
echo "Installing Homebrew..."

if ! type brew &> /dev/null; then
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

brew tap homebrew/bundle
brew update &> /dev/null

# Install from Brewfile.
brew bundle --global

brew linkapps &> /dev/null
brew cleanup &> /dev/null

echo "Done installing Homebrew."
echo
{'fraction_non_alphanumeric': 0.1607773851590106, 'fraction_numerical': 0.0, 'mean_word_length': 4.035555555555556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '3908156', 'n_tokens_mistral': 398, 'n_tokens_neox': 377, 'n_words': 105}