<commit_before># Install Homebrew if not present
echo "Checking if Homebrew already present..."
if ! which -s brew; then
    # Install Homebrew
    echo "Downloading and installing Homebrew..."
    NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi

# Make sure we're using the latest Homebrew
echo "Updating Homebrew..."
brew update

# Upgrade any already-installed formulae
echo "Upgrading Homebrew..."
brew upgrade

echo "Installing formulae..."
grep -v "#" brew/formulae.txt | xargs brew install

# Required for installing font-fira-code<commit_msg>Fix brew installation<commit_after># Install Homebrew if not present
echo "Checking if Homebrew already present..."
if ! which -s brew; then
    # Install Homebrew
    echo "Downloading and installing Homebrew..."
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi

# Make sure we're using the latest Homebrew
echo "Updating Homebrew..."
brew update

# Upgrade any already-installed formulae
echo "Upgrading Homebrew..."
brew upgrade

echo "Installing formulae..."
grep -v "#" brew/formulae.txt | xargs brew install

# Required for installing font-fira-code
{'fraction_non_alphanumeric': 0.10804224207961008, 'fraction_numerical': 0.0008123476848090983, 'mean_word_length': 4.008130081300813, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3880011', 'n_tokens_mistral': 371, 'n_tokens_neox': 352, 'n_words': 130}