<commit_before>#!/bin/sh
set -eu

if [ "$(cat /etc/hostname)" == "Titus" ]; then
	printf >&2 'Refusing to sync to self.\n'
	exit 1
fi

if [ "$#" -eq 0 ]; then
    printf >&2 'Usage: %s path-to-sync\n' "$0"
    exit 1
fi

docmd() {
	echo "$@"
	"$@"
}

remote=TitusHamachi
source="$(dirname "$1")"
dest="$1"

shift
docmd rsync -vrtzpAXl --safe-links $@ "$remote:$dest" "$source"<commit_msg>Add --delete-after to sync-titus.<commit_after>#!/bin/sh
set -eu

if [ "$(cat /etc/hostname)" == "Titus" ]; then
	printf >&2 'Refusing to sync to self.\n'
	exit 1
fi

if [ "$#" -eq 0 ]; then
    printf >&2 'Usage: %s path-to-sync\n' "$0"
    exit 1
fi

docmd() {
	echo "$@"
	"$@"
}

remote=TitusHamachi
source="$(dirname "$1")"
dest="$1"

shift
docmd rsync -vrtzpAXl --safe-links --delete-after $@ "$remote:$dest" "$source"
{'fraction_non_alphanumeric': 0.22688039457459927, 'fraction_numerical': 0.01972872996300863, 'mean_word_length': 3.389189189189189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2805488', 'n_tokens_mistral': 368, 'n_tokens_neox': 343, 'n_words': 91}