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

syncMyDotFiles() {
  rsync \
    --exclude ".DS_Store" \
    --exclude ".gitignore" \
    --exclude "README.md" \
    --exclude "LICENSE" \
    --exclude "logs/" \
    --exclude ".git/" \
    --exclude "ohmyzsh.sh" \
    --exclude "brew.sh" \
    --exclude "dotfiles.sh" \
    -avh . ~
}

echo ""
echo ""

echo "Update dotfiles to latest version"
git pull origin master

echo ""
read -p "This may overwrite existing dotfiles in your home directory. Are you sure? (y/n) " -n 1;
echo ""
[[ $REPLY =~ ^[Yy]$ ]] && syncMyDotFiles 


echo ""
echo ""
echo "Installation done"<commit_msg>add some functions to the dotfiles.sh<commit_after>#!/usr/bin/env sh

syncMyDotFiles() {
  echo ""
  read -p "This may overwrite existing dotfiles in your home directory. Are you sure? (y/n) " -n 1;
  echo ""
  [[ $REPLY =~ ^[Yy]$ ]] && echo "Start to sync dotfiles." && rsync \
    --exclude ".DS_Store" \
    --exclude ".gitignore" \
    --exclude "README.md" \
    --exclude "LICENSE" \
    --exclude "logs/" \
    --exclude ".git/" \
    --exclude "ohmyzsh.sh" \
    --exclude "brew.sh" \
    --exclude "dotfiles.sh" \
    -avh . ~
}

updateDotFiles() {
  echo "Update dotfiles to latest version"
  git pull origin master
}

updateDotFiles
syncMyDotFiles

{'fraction_non_alphanumeric': 0.17111459968602827, 'fraction_numerical': 0.0015698587127158557, 'mean_word_length': 2.390957446808511, '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': '1005983', 'n_tokens_mistral': 479, 'n_tokens_neox': 454, 'n_words': 128}