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

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

git pull origin master;

function doIt() {
	rsync --exclude ".git/" --exclude ".DS_Store" --exclude "brew.sh" --exclude "Caskfile" \
    --exclude "Gemfile" --exclude "Gemfile.lock" --exclude "bootstrap.sh" --exclude "README.md" \
    --exclude "LICENSE-MIT.txt" --exclude "git-semver/" -avh --no-perms . ~;

	# https://github.com/tmux-plugins/tpm
	tpm_dir="$HOME/.tmux/plugins/tpm"
	if [[ ! -e $tpm_dir ]]; then
		mkdir -p $tpm_dir
		git clone https://github.com/tmux-plugins/tpm $tpm_dir
		if command -v tmux >/dev/null 2>&1 && [[ -e $HOME/.tmux.conf ]]; then
			tmux source $HOME/.tmux.conf
		fi
	fi

	# https://github.com/markchalloner/git-semver
	(cd git-semver && git checkout $(
    git tag | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+$' | \
    sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -n 1
	) && sudo ./install.sh)

	# https://github.com/dborzov/lsp
	if command -v go >/dev/null 2>&1; then
		go get github.com/dborzov/lsp
	fi

	# https://github.com/shyiko/commacd
	curl https://raw.githubusercontent.com/shyiko/commacd/master/commacd.bash -o $HOME/.commacd.bash

	# https://github.com/Jintin/aliasme
	aliasme_dir="$HOME/.aliasme"
	if [[ ! -e $aliasme_dir ]]; then
    mkdir $aliasme_dir
	fi
	curl https://raw.githubusercontent.com/Jintin/aliasme/master/aliasme.sh > $aliasme_dir/aliasme.sh

	source ~/.bash_profile;
}

if [ "$1" == "--force" -o "$1" == "-f" ]; then
	doIt;
else
	read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
	echo "";
	if [[ $REPLY =~ ^[Yy]$ ]]; then
		doIt;
	fi;
fi;
unset doIt;
<commit_msg>Make sure the submodules update too.<commit_after>#!/usr/bin/env bash

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

git pull origin master;

function doIt() {
	rsync --exclude ".git/" --exclude ".DS_Store" --exclude "brew.sh" --exclude "Caskfile" \
    --exclude "Gemfile" --exclude "Gemfile.lock" --exclude "bootstrap.sh" --exclude "README.md" \
    --exclude "LICENSE-MIT.txt" --exclude "git-semver/" -avh --no-perms . ~;

	g submodule update --init --recursive

	# https://github.com/tmux-plugins/tpm
	tpm_dir="$HOME/.tmux/plugins/tpm"
	if [[ ! -e $tpm_dir ]]; then
		mkdir -p $tpm_dir
		git clone https://github.com/tmux-plugins/tpm $tpm_dir
		if command -v tmux >/dev/null 2>&1 && [[ -e $HOME/.tmux.conf ]]; then
			tmux source $HOME/.tmux.conf
		fi
	fi

	# https://github.com/markchalloner/git-semver
	(cd git-semver && git checkout $(
    git tag | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+$' | \
    sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -n 1
	) && sudo ./install.sh)

	# https://github.com/dborzov/lsp
	if command -v go >/dev/null 2>&1; then
		go get github.com/dborzov/lsp
	fi

	# https://github.com/shyiko/commacd
	curl https://raw.githubusercontent.com/shyiko/commacd/master/commacd.bash -o $HOME/.commacd.bash

	# https://github.com/Jintin/aliasme
	aliasme_dir="$HOME/.aliasme"
	if [[ ! -e $aliasme_dir ]]; then
    mkdir $aliasme_dir
	fi
	curl https://raw.githubusercontent.com/Jintin/aliasme/master/aliasme.sh > $aliasme_dir/aliasme.sh

	source ~/.bash_profile;
}

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

{'fraction_non_alphanumeric': 0.19867350015073862, 'fraction_numerical': 0.012059089538739826, 'mean_word_length': 2.95, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 16, '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': '1140960', 'n_tokens_mistral': 1452, 'n_tokens_neox': 1355, 'n_words': 310}