<commit_before>#!/usr/bin/env bash

script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $script_dir/../lib/dotfiles.sh

if [[ $(platform_name) != "mac" ]]; then
    print_error "platform is not MacOS"
    exit 1
fi

if ! installed "brew"; then
    print_error "brew is not installed"
    exit 1
fi

brew install \
    bash \
    clang-format \
    cmake \
    coreutils \
    diffutils \
    git \
    gnu-sed \
    grep \
    macvim \
    nkf \
    python \
    python3 \
    rlwrap \
    tig \
    tmux \
    vim \
    zsh
<commit_msg>brew: Add update brew and findutils<commit_after>#!/usr/bin/env bash

script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $script_dir/../lib/dotfiles.sh

if [[ $(platform_name) != "mac" ]]; then
    print_error "platform is not MacOS"
    exit 1
fi

if ! installed "brew"; then
    print_error "brew is not installed"
    exit 1
fi

brew update
brew upgrade
brew install \
    bash \
    clang-format \
    cmake \
    coreutils \
    diffutils \
    findutils \
    git \
    gnu-sed \
    grep \
    macvim \
    nkf \
    python \
    python3 \
    rlwrap \
    tig \
    tmux \
    vim \
    zsh

{'fraction_non_alphanumeric': 0.1278772378516624, 'fraction_numerical': 0.0068201193520886615, 'mean_word_length': 1.913151364764268, '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': '2829547', 'n_tokens_mistral': 453, 'n_tokens_neox': 422, 'n_words': 114}