<commit_before># GPG agent
function __refresh_gpg_agent_info -d "Reload ~/.gpg-agent-info into environment"
	cat ~/.gpg-agent-info | sed 's/=/ /' | while read key value
		set -e $key
		set -U -x $key "$value"
	end
end

if not set -q -x GPG_AGENT_INFO
	gpg-agent --daemon --write-env-file ~/.gpg-agent-info >/dev/null
end

if test -f ~/.gpg-agent-info
	__refresh_gpg_agent_info

	gpg-connect-agent /bye ^/dev/null
	if test $status -eq 1
		pkill -U $USER gpg-agent
		gpg-agent --daemon --write-env-file ~/.gpg-agent-info >/dev/null
		__refresh_gpg_agent_info
	end
end

# Use curses based Pinentry
set -x GPG_TTY (tty)<commit_msg>Don't complain about gpg-agent daemon on Linux.<commit_after># GPG agent
function __refresh_gpg_agent_info -d "Reload ~/.gpg-agent-info into environment"
	cat ~/.gpg-agent-info | sed 's/=/ /' | while read key value
		set -e $key
		set -U -x $key "$value"
	end
end

if not set -q -x GPG_AGENT_INFO
	gpg-agent --daemon --write-env-file ~/.gpg-agent-info > /dev/null ^ /dev/null
end

if test -f ~/.gpg-agent-info
	__refresh_gpg_agent_info

	gpg-connect-agent /bye ^/dev/null
	if test $status -eq 1
		pkill -U $USER gpg-agent
		gpg-agent --daemon --write-env-file ~/.gpg-agent-info > /dev/null ^ /dev/null
		__refresh_gpg_agent_info
	end
end

# Use curses based Pinentry
set -x GPG_TTY (tty)
{'fraction_non_alphanumeric': 0.13774733637747336, 'fraction_numerical': 0.0015220700152207, 'mean_word_length': 3.021406727828746, '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': '2841925', 'n_tokens_mistral': 557, 'n_tokens_neox': 538, 'n_words': 153}