<commit_before>#!/bin/bash

# Set GPG TTY
export GPG_TTY=$(tty)

# Start the gpg-agent if not already running
if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 3>&1; then
  gpg-connect-agent /bye >/dev/null 3>&1
fi

# Set SSH to use gpg-agent
unset SSH_AGENT_PID
export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"

# Refresh gpg-agent tty in case user switches into an X session
gpg-connect-agent updatestartuptty /bye >/dev/null<commit_msg>Simplify / fix gpg agent script, apparently the socket path changed<commit_after>#!/bin/bash

# Set GPG TTY
export GPG_TTY=$(tty)

# Start the gpg-agent if not already running
gpg-connect-agent /bye >/dev/null 3>&1

# Set SSH to use gpg-agent
unset SSH_AGENT_PID
export SSH_AUTH_SOCK="/run/user/$(id -u)/gnupg/S.gpg-agent.ssh"
{'fraction_non_alphanumeric': 0.13020833333333334, 'fraction_numerical': 0.0078125, 'mean_word_length': 4.1610738255033555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '3472777', 'n_tokens_mistral': 319, 'n_tokens_neox': 296, 'n_words': 86}