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

if [[ "$OS" != "Darwin" ]]; then
  pprint step-error "Cask is only for Mac"
  exit 1
fi

# Get list of new casks
brew cask ls -1 > /tmp/cask-ls
new_casks=$(cat $DOT/cask/casks.txt | grep -v \# | grep -vwf /tmp/cask-ls)

# Install new casks
if [[ ! -z "${new_casks}" ]]; then
  brew cask install ${new_casks} --appdir=/Applications
fi

# Cleanup
$DOT/cask/ownerfix.sh
brew cask cleanup

exit 0<commit_msg>brew: fix apps.sh install script<commit_after>#!/usr/bin/env bash

if [[ "$OS" != "Darwin" ]]; then
  pprint step-error "Cask is only for Mac"
  exit 1
fi

# Get list of new casks
brew cask list > /tmp/cask-list
new_casks=$(cat $DOT/brew/casks.txt | grep -v \# | grep -vwf /tmp/cask-list)

# Install new casks
if [[ ! -z "${new_casks}" ]]; then
  brew cask install ${new_casks}
fi

# Cleanup
brew cask cleanup

exit 0
{'fraction_non_alphanumeric': 0.15752625437572929, 'fraction_numerical': 0.005834305717619603, 'mean_word_length': 3.377551020408163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4063109', 'n_tokens_mistral': 376, 'n_tokens_neox': 347, 'n_words': 106}