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

set -eu

scripts/configure.sh
echo

scripts/deploy.sh
echo

# Install Rosetta 2 when ARM
if [ "$(uname -m)" = "arm64" ]; then
  softwareupdate --install-rosetta --agree-to-license
fi

# install homebrew
if ! command -v brew >/dev/null 2>&1; then
  prefix=""
  if [ "$(uname -m)" = "arm64" ]; then
    # Install on Rosetta 2
    prefix="arch -arch x86_64"
  fi
  # Install homebrew: https://brew.sh/
  "${prefix}" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
brew bundle
echo

mackup restore
echo<commit_msg>fixup! Install brew as Intel compatible<commit_after>#!/usr/bin/env bash

set -eu

scripts/configure.sh
echo

scripts/deploy.sh
echo

# Install Rosetta 2 when ARM
if [ "$(uname -m)" = "arm64" ]; then
  softwareupdate --install-rosetta --agree-to-license
fi

# install homebrew
if ! command -v brew >/dev/null 2>&1; then
  prefix=""
  if [ "$(uname -m)" = "arm64" ]; then
    # Install on Rosetta 2
    prefix="arch -arch x86_64"
  fi
  # Install homebrew: https://brew.sh/
  $prefix /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
brew bundle
echo

mackup restore
echo
{'fraction_non_alphanumeric': 0.15, 'fraction_numerical': 0.019672131147540985, 'mean_word_length': 3.4239130434782608, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '1307503', 'n_tokens_mistral': 467, 'n_tokens_neox': 435, 'n_words': 126}