<commit_before>function confirm()
{
	read -r "response?${1:-Are you sure?} [Y/n] "
	case $response in
		[nN][oO]|[nN])
			false
			;;
		*)
			true
			;;
	esac
}

# aliases
# ask to use trash
function rm()
{
	if confirm "Use trash?"; then
		trash-put "$@"
	else
		/bin/rm "$@"
	fi
}
# use pacaur
alias pacman="pacaur"
# quick xdg-open with no output
alias o="xdg-open "$@" > /dev/null 2> /dev/null"
# quick sudo
alias s="sudo"
# run last command with sudo
alias sl='sudo zsh -c "$(fc -ln -1)"'
# open editor
alias edit="$EDITOR"<commit_msg>remove trash prompt<commit_after># use pacaur
alias pacman="pacaur"
# quick xdg-open with no output
alias o="xdg-open "$@" > /dev/null 2> /dev/null"
# quick sudo
alias s="sudo"
# run last command with sudo
alias sl='sudo zsh -c "$(fc -ln -1)"'
# open editor
alias edit="$EDITOR"
{'fraction_non_alphanumeric': 0.17258261933904528, 'fraction_numerical': 0.006119951040391677, 'mean_word_length': 3.621468926553672, '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': '5474951', 'n_tokens_mistral': 349, 'n_tokens_neox': 316, 'n_words': 101}