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

cd $(dirname $BASH_SOURCE)
SETUP_DIR=$(pwd)

# Pull down submodules, i.e. zim, and update them.
echo "Pull and update submodules:"
git submodule update --init --recursive

# Symlink dotfiles and zim folder.
echo "Symlink and back up dotfiles in dotfiles.old:"
mkdir -pv dotfiles.old
for file in aliases profile exports gitconfig gitignore path \
    zim zlogin zprofile zshrc; do
    [ -e ~/.$file ] && mv -v ~/.$file dotfiles.old/.$file
    ln -sfv $SETUP_DIR/$file ~/.$file
done
unset SETUP_DIR

# macOS-specific installations.
if [ $(uname -s) = 'Darwin' ]; then
    # Prevents macOS terminal from displaying last login on start.
    touch ~/.hushlogin

    # Install Homebrew if it doesn't exist.
    echo "Install Homebrew packages:"
    [ -z "$(which brew)" ] &&
        ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    # Install Homebrew packages.
    brew install git imagemagick python python3 ruby tree zsh

    # Install vim with Python 3 flag.
    brew install vim --with-python3
fi<commit_msg>Tab symlink file list for visual clarity<commit_after>#!/usr/bin/env bash

cd $(dirname $BASH_SOURCE)
SETUP_DIR=$(pwd)

# Pull down submodules, i.e. zim, and update them.
echo "Pull and update submodules:"
git submodule update --init --recursive

# Symlink dotfiles and zim folder.
echo "Symlink and back up dotfiles in dotfiles.old:"
mkdir -pv dotfiles.old
for file in aliases profile exports gitconfig gitignore path \
            zim zlogin zprofile zshrc; do
    [ -e ~/.$file ] && mv -v ~/.$file dotfiles.old/.$file
    ln -sfv $SETUP_DIR/$file ~/.$file
done
unset SETUP_DIR

# macOS-specific installations.
if [ $(uname -s) = 'Darwin' ]; then
    # Prevents macOS terminal from displaying last login on start.
    touch ~/.hushlogin

    # Install Homebrew if it doesn't exist.
    echo "Install Homebrew packages:"
    [ -z "$(which brew)" ] &&
        ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    # Install Homebrew packages.
    brew install git imagemagick python python3 ruby tree zsh

    # Install vim with Python 3 flag.
    brew install vim --with-python3
fi
{'fraction_non_alphanumeric': 0.11035730438715513, 'fraction_numerical': 0.0027137042062415195, 'mean_word_length': 3.1973434535104364, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5230137', 'n_tokens_mistral': 740, 'n_tokens_neox': 700, 'n_words': 257}