<commit_before>#!/bin/bash

set -e

export DOTFILES=~/.dotfiles

# load logging functions
source $DOTFILES/lib/utils.sh

trap 'e_error "\nAn error occured. Aborting."' ERR

e_line "\nUpdating software. May require root password."

# reset permissions to avoid update problems
e_header "Updating brew and formulaes"
sudo chown -R $(whoami) /usr/local

# update homebrew
brew update

# update brew formulaes
brew upgrade --all

# cleanup
brew cleanup

# update global node packages
e_header "Updating global node packages"
if [ $(which npm) ]; then
  sudo npm update -g
fi

# update global gems
e_header "Updating gems"
if [ $(which gem) ]; then
  sudo gem update
fi

# update composer
e_header "Updating composer"
composer self-update

e_success "Software is up to date. Your system is ready to use!"<commit_msg>remove noop brew upgrade parameter<commit_after>#!/bin/bash

set -e

export DOTFILES=~/.dotfiles

# load logging functions
source $DOTFILES/lib/utils.sh

trap 'e_error "\nAn error occured. Aborting."' ERR

e_line "\nUpdating software. May require root password."

# reset permissions to avoid update problems
e_header "Updating brew and formulaes"
sudo chown -R $(whoami) /usr/local

# update homebrew
brew update

# update brew formulaes
brew upgrade

# cleanup
brew cleanup

# update global node packages
e_header "Updating global node packages"
if [ $(which npm) ]; then
  sudo npm update -g
fi

# update global gems
e_header "Updating gems"
if [ $(which gem) ]; then
  sudo gem update
fi

# update composer
e_header "Updating composer"
composer self-update

e_success "Software is up to date. Your system is ready to use!"
{'fraction_non_alphanumeric': 0.08430054978619425, 'fraction_numerical': 0.0, 'mean_word_length': 4.283870967741936, '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': '5780124', 'n_tokens_mistral': 532, 'n_tokens_neox': 505, 'n_words': 210}