<commit_before>#!/bin/bash

# Be sure the right gpg-agent is started
if which gpg-agent >/dev/null 2>&1; then
    if [[ ! -f "${HOME}/tmp/gpg-agent.env" ]]; then
        if [[ ! -d "${HOME}/tmp" ]]; then
            mkdir -p "${HOME}/tmp"
        fi
        killall gpg-agent >/dev/null 2>&1
        gpg-agent --daemon > "${HOME}/tmp/gpg-agent.env";
    fi
    source "${HOME}/tmp/gpg-agent.env"
fi

export GPG_AGENT_INFO
export SSH_AUTH_SOCK
export GPG_TTY=$(tty)
<commit_msg>bash: don't load gpg agent config if ssh agent forwarding is active<commit_after>#!/bin/bash

# Don't do anything when the agent is forwarded in SSH connections
if [[ -z "${SSH_AUTH_SOCK}" ]]; then

    # Be sure the right gpg-agent is started
    if which gpg-agent >/dev/null 2>&1; then
        if [[ ! -f "${HOME}/tmp/gpg-agent.env" ]]; then
            if [[ ! -d "${HOME}/tmp" ]]; then
                mkdir -p "${HOME}/tmp"
            fi
            killall gpg-agent >/dev/null 2>&1
            gpg-agent --daemon > "${HOME}/tmp/gpg-agent.env";
        fi
        source "${HOME}/tmp/gpg-agent.env"
    fi

    export GPG_AGENT_INFO
    export SSH_AUTH_SOCK
    export GPG_TTY=$(tty)

fi

{'fraction_non_alphanumeric': 0.1577152600170503, 'fraction_numerical': 0.0068201193520886615, 'mean_word_length': 2.2076502732240435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7233863', 'n_tokens_mistral': 436, 'n_tokens_neox': 410, 'n_words': 113}