<commit_before>#!/usr/bin/env bash
# Heavily inspired by mathiasbynens/dotfiles/bootstrap.sh

cd "$(dirname "${BASH_SOURCE}")";

git pull origin master;

function bootstrap() {
	rsync --exclude ".git/" \
			--exclude ".DS_Store" \
			--exclude "bootstrap.sh" \
			--exclude "brew.sh" \
			--exclude "new-machine.sh" \
			--exclude "README.md" \
			--exclude "LICENSE" \
			-avh --no-perms . ~;

	source ~/.bash_profile;
}

if [ "$1" == "--force" -o "$1" == "-f" ]; then
	bootstrap;
else
	read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
	echo "";
	if [[ $RESPONSE =~ &[Yy]$ ]]; then
		bootstrap;
	fi;
fi;

unset bootstrap;<commit_msg>bootstrap: fixed bugs that prevented proper boostrapping<commit_after>#!/usr/bin/env bash
# Heavily inspired by mathiasbynens/dotfiles/bootstrap.sh

cd "$(dirname "${BASH_SOURCE}")";

function bootstrap() {
	rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" --exclude "LICENSE" -avh --no-perms . ~;
	source ~/.bash_profile;
}

if [ "$1" == "--force" -o "$1" == "-f" ]; then
	bootstrap;
else
	read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
	echo "";
	if [[ $REPLY =~ ^[Yy]$ ]]; then
		bootstrap;
	fi;
fi;

unset bootstrap;
{'fraction_non_alphanumeric': 0.19195046439628483, 'fraction_numerical': 0.0046439628482972135, 'mean_word_length': 3.211726384364821, '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': '2582891', 'n_tokens_mistral': 515, 'n_tokens_neox': 471, 'n_words': 137}