<commit_before>#!/bin/bash
set -e

readonly common=(httpie fd exa ripgrep bat htop neovim ranger zsh hub nnn tig fswatch)
cd "$(dirname "$0")/.."
# shellcheck source=/dev/null
source script/logging.sh

echo "The detected OS is ${DOTFILES_OS}"
if [[ ${DOTFILES_OS} == "Mac" ]]; then
  info "brew"
  brew update
  ok "brew update"
  brew cleanup
  ok "brew cleanup"
  brew upgrade
  ok "brew upgrade"
  brew cask upgrade
  ok "brew cask upgrade"

  info "Installing packages"
  bottles=("${common[@]}" python3 coreutils gnu-sed skktools)
  casks=(alacritty font-hack signal font-fira-code)
  brew tap homebrew/cask-fonts
  brew install "${bottles[@]}" || :
  brew cask install "${casks[@]}" || :

  info "Installing packages via pip"
  pip3 install --upgrade -U vim-vint
elif [[ ${DOTFILES_OS} == "ArchLinux" ]]; then
  info "pacman"
  debug "pacman: cleanup"
  sudo pacman -Sc --noconfirm || :
  ok "pacman: cleanup"
<commit_msg>arch: remove fswatch from pkg list<commit_after>#!/bin/bash
set -e

readonly common=(httpie fd exa ripgrep bat htop neovim ranger zsh hub nnn tig)
cd "$(dirname "$0")/.."
# shellcheck source=/dev/null
source script/logging.sh

echo "The detected OS is ${DOTFILES_OS}"
if [[ ${DOTFILES_OS} == "Mac" ]]; then
  info "brew"
  brew update
  ok "brew update"
  brew cleanup
  ok "brew cleanup"
  brew upgrade
  ok "brew upgrade"
  brew cask upgrade
  ok "brew cask upgrade"

  info "Installing packages"
  bottles=("${common[@]}" python3 coreutils gnu-sed skktools fswatch)
  casks=(alacritty font-hack signal font-fira-code)
  brew tap homebrew/cask-fonts
  brew install "${bottles[@]}" || :
  brew cask install "${casks[@]}" || :

  info "Installing packages via pip"
  pip3 install --upgrade -U vim-vint
elif [[ ${DOTFILES_OS} == "ArchLinux" ]]; then
  info "pacman"
  debug "pacman: cleanup"
  sudo pacman -Sc --noconfirm || :
  ok "pacman: cleanup"

{'fraction_non_alphanumeric': 0.14011720831113478, 'fraction_numerical': 0.0031965903036760787, 'mean_word_length': 3.9162303664921465, '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': '6769043', 'n_tokens_mistral': 706, 'n_tokens_neox': 672, 'n_words': 217}