<commit_before>#!/bin/sh

current=`pwd`;

# .file
for file in ${current}/files/.*; do
  file_name=${file##*/}
  if [ ${file_name} != "." ] && [ ${file_name} != ".." ]; then
    echo "execute ln -s ${file} ~/${file_name}"
    ln -s ${file} ~/${file_name}
  fi
done

# reload
source ~/.bash_profile

# brew
while read application
do
  echo $ brew reinstall ${application}
  brew reinstall ${application}
done < ${current}/brew/default.txt

# brew cask
while read application
do
  echo $ brew cask reinstall ${application}
  brew cask reinstall ${application}
done < ${current}/brew/cask.txt

# appstore
while read application
do
  id=$(awk '{print $1}' <<< ${application})
  echo $ mas install ${id}
  mas install ${id}
done < ${current}/mas/default.txt

# remove cache
brew cleanup -s
<commit_msg>update (#47)<commit_after>#!/bin/sh

current=`pwd`;

# .file
for file in ${current}/files/.*; do
  file_name=${file##*/}
  if [ ${file_name} != "." ] && [ ${file_name} != ".." ]; then
    echo "execute ln -s ${file} ~/${file_name}"
    ln -s ${file} ~/${file_name}
  fi
done

# reload
source ~/.bash_profile

# brew
while read application
do
  echo $ brew reinstall ${application}
  brew reinstall ${application}
done < ${current}/brew/default.txt

# brew cask
while read application
do
  echo $ brew cask reinstall ${application}
  brew cask reinstall ${application}
done < ${current}/brew/cask.txt

# appstore
while read application
do
  id=$(awk '{print $1}' <<< ${application})
  echo $ mas install ${id}
  mas install ${id}
done < ${current}/mas/default.txt

# remove cache
brew cleanup -s
{'fraction_non_alphanumeric': 0.17672955974842766, 'fraction_numerical': 0.0025157232704402514, 'mean_word_length': 3.806646525679758, 'pattern_counts': {'":': 0, '<': 15, '<?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': '4948757', 'n_tokens_mistral': 555, 'n_tokens_neox': 539, 'n_words': 165}