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

set -e
set -u

cd "$(dirname "$0")"
git pull origin master
function syncDots() {
    rsync --exclude ".git/" --exclude ".DS_Store" --exclude "sync.sh" \
    --exclude "README.md" --exclude "LICENSE" -avh . ~
    source ~/.bash_profile
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
    syncDots
else
    read -p "This will overwrite existing files in $HOME. Are you sure? (y/n) " -n 1
    echo
    if [[ $REPLY =~ ^[Yy] ]]; then
        syncDots
    fi
fi
unset syncDots<commit_msg>Check for unset var in sync script<commit_after>#!/usr/bin/env bash

set -e
set -u

cd "$(dirname "$0")"

#git pull origin master

function syncDots() {
    rsync --exclude ".git/" --exclude ".DS_Store" --exclude "sync.sh" \
    --exclude "README.md" --exclude "LICENSE" -avh . ~
    source ~/.bash_profile
}

if [ ! -z "${1+x}" ] && [ "$1" == "--force" -o "$1" == "-f" ]; then
    syncDots
else
    read -p "This will overwrite existing files in $HOME. Are you sure? (y/n) " -n 1
    echo
    if [[ $REPLY =~ ^[Yy] ]]; then
        syncDots
    fi
fi

unset syncDots
{'fraction_non_alphanumeric': 0.18859245630174792, 'fraction_numerical': 0.00827966881324747, 'mean_word_length': 2.4213836477987423, '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': '3641295', 'n_tokens_mistral': 429, 'n_tokens_neox': 409, 'n_words': 133}