<commit_before># Environment settings

export EDITOR='vim'
export PAGER='less'
export BLOCKSIZE='K'
export LSCOLORS='gxfxcxdxbxegedabagacad'
export GOROOT='/usr/local/go'

source ~/.zsh/path.zsh

export TERM="screen-256color"

# Nice features for less
export LESS_TERMCAP_se=$'\E[0m'           # end standout-mode
export LESS_TERMCAP_ue=$'\E[0m'           # end underline
export LESS_TERMCAP_me=$'\E[0m'           # end mode
export LESS_TERMCAP_mb=$'\E[01;31m'       # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m'  # begin bold
export LESS_TERMCAP_so=$'\E[38;5;016m\E[48;5;220m'    # begin standout-mode - info box
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline

# GPG agent
GPG_TTY=$(tty)
export GPG_TTY
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
	export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"
fi
<commit_msg>Restore X terminal application detection<commit_after># Environment settings

export EDITOR='vim'
export PAGER='less'
export BLOCKSIZE='K'
export LSCOLORS='gxfxcxdxbxegedabagacad'
export GOROOT='/usr/local/go'

source ~/.zsh/path.zsh

if [ -n "$DISPLAY" ]; then

	# detect terminals from runtime environment
	for termtype in urxvt rxvt-unicode xterm; do
		which -s $termtype > /dev/null
		if [ $? -eq 0 ] && [ -z "$DEFAULT_X_TERMINAL" ]; then
			export DEFAULT_X_TERMINAL="$termtype"
		fi
	done

	# fallback to xterm
	if [ -z "$DEFAULT_X_TERMINAL" ]; then
		export DEFAULT_X_TERMINAL="xterm"
	fi
fi

export TERM="screen-256color"

# Nice features for less
export LESS_TERMCAP_se=$'\E[0m'           # end standout-mode
export LESS_TERMCAP_ue=$'\E[0m'           # end underline
export LESS_TERMCAP_me=$'\E[0m'           # end mode
export LESS_TERMCAP_mb=$'\E[01;31m'       # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m'  # begin bold
export LESS_TERMCAP_so=$'\E[38;5;016m\E[48;5;220m'    # begin standout-mode - info box
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline

# GPG agent
GPG_TTY=$(tty)
export GPG_TTY
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
	export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"
fi

{'fraction_non_alphanumeric': 0.1397748592870544, 'fraction_numerical': 0.036116322701688554, 'mean_word_length': 4.4832904884318765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1742250', 'n_tokens_mistral': 940, 'n_tokens_neox': 876, 'n_words': 175}