<commit_before>#!/usr/bin/env bash
set -Eeuxo pipefail

# Consider requiring admin account.
# if [[ "$(whoami)" != "admin" ]]; then
#     echo "This script must be run as admin"
#     exit 1
# fi

# Homebrew
brew update

echo "Upgrading Homebrew..."
brew upgrade --force-bottle
# brew list | xargs brew reinstall --force-bottle --cleanup

echo "Upgrading Homebrew Casks..."
brew cask outdated | xargs brew cask reinstall

# Mac App Store
if [[ -x "$(command -v mas)" ]]
then
    echo "Upgrading Mac App Store Apps..."
    mas upgrade
fi<commit_msg>Improve brew upgrade script<commit_after>#!/usr/bin/env bash
set -Eeuxo pipefail

# Upgrade Homebrew packages

# Consider requiring admin account.
# if [[ "$(whoami)" != "admin" ]]; then
#     echo "This script must be run as admin"
#     exit 1
# fi

brew analytics off

echo "Updating Homebrew..."
brew update

echo "Upgrading Homebrew packages..."
brew upgrade --force-bottle
# brew list | xargs brew reinstall --force-bottle --cleanup

echo "Upgrading Homebrew Casks..."
brew cask outdated | xargs brew cask reinstall

# Mac App Store
if [[ -x "$(command -v mas)" ]]
then
    echo "Upgrading Mac App Store Apps..."
    mas upgrade
fi
{'fraction_non_alphanumeric': 0.12236286919831224, 'fraction_numerical': 0.0016877637130801688, 'mean_word_length': 3.3284671532846715, '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': '3797625', 'n_tokens_mistral': 396, 'n_tokens_neox': 378, 'n_words': 149}