<commit_before>#!/bin/bash

# Bash strict mode
set -euo pipefail

function osx_system_settings {

  # Show hidden files
  defaults write com.apple.finder AppleShowAllFiles YES
  killall Finder

  # Set screenshot output folder
  defaults write com.apple.screencapture location ~/Downloads
  killall SystemUIServer
}


function homebrew_packages {

  # Install Homebrew
  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  # Use Homebrew to install command line packages
  for package in $1; do
    brew install $package
  done
}

function npm_packages {

  # Use npm to install command line packages
  for package in $1; do
    npm install -g $package
  done
}

function dotfiles {

  # Create dotfile symlinks in home directory
  for file in $1; do
    ln -s $2/$file ~/$file
  done
}

function vim_plugins {

  # Install Vundle
  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

  # Use Vundle to install Vim plugins
  vim +PluginInstall +qall
}

function graphical_apps {

  # Use Homebrew Cask to install graphical apps
  brew tap caskroom/cask
  for app in $1; do
    brew cask install $app
  done
}

function bootstrap {

  # Install all the things
  osx_system_settings
  homebrew_packages "bash git n node vim youtube-dl"
  npm_packages "create-react-app eslint_d"
  dotfiles ".bash_profile .vimrc .git-prompt.sh .git-completion.sh .gitignore .gitconfig .npmrc .ghci .eslintrc .slate" ~/Google Drive/settings/dotfiles 
  vim_plugins
  graphical_apps "1password anki dash google-chrome google-drive google-photos-backup iterm2 karabiner screenflow seil sketch skitch slack slate spotify flux rescuetime iexplorer"

  # Configure what was installed
  n stable
}

# Init
bootstrap
<commit_msg>Add ava test framework to global npm packages<commit_after>#!/bin/bash

# Bash strict mode
set -euo pipefail

function osx_system_settings {

  # Show hidden files
  defaults write com.apple.finder AppleShowAllFiles YES
  killall Finder

  # Set screenshot output folder
  defaults write com.apple.screencapture location ~/Downloads
  killall SystemUIServer
}


function homebrew_packages {

  # Install Homebrew
  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  # Use Homebrew to install command line packages
  for package in $1; do
    brew install $package
  done
}

function npm_packages {

  # Use npm to install command line packages
  for package in $1; do
    npm install -g $package
  done
}

function dotfiles {

  # Create dotfile symlinks in home directory
  for file in $1; do
    ln -s $2/$file ~/$file
  done
}

function vim_plugins {

  # Install Vundle
  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

  # Use Vundle to install Vim plugins
  vim +PluginInstall +qall
}

function graphical_apps {

  # Use Homebrew Cask to install graphical apps
  brew tap caskroom/cask
  for app in $1; do
    brew cask install $app
  done
}

function bootstrap {

  # Install all the things
  osx_system_settings
  homebrew_packages "bash git n node vim youtube-dl"
  npm_packages "ava create-react-app eslint_d"
  dotfiles ".bash_profile .vimrc .git-prompt.sh .git-completion.sh .gitignore .gitconfig .npmrc .ghci .eslintrc .slate" ~/Google Drive/settings/dotfiles 
  vim_plugins
  graphical_apps "1password anki dash google-chrome google-drive google-photos-backup iterm2 karabiner screenflow seil sketch skitch slack slate spotify flux rescuetime iexplorer"

  # Configure what was installed
  n stable
}

# Init
bootstrap

{'fraction_non_alphanumeric': 0.07174638487208009, 'fraction_numerical': 0.00389321468298109, 'mean_word_length': 3.629343629343629, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1295431', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1121, 'n_words': 386}