<commit_before>export TMPDIR=${TMPDIR:-/tmp}

load_pubkey() {
  if [ -d $TMPDIR/git-resource-private-key.* ]; then
    private_key_path=$(find $TMPDIR --regex $TMPDIR/git-resource-private-key.* | head -n 1)
  else
    private_key_path=$(mktemp $TMPDIR/git-resource-private-key.XXXXXX)
  fi

  (jq -r '.source.private_key // empty' < $1) > $private_key_path

  if [ -s $private_key_path ]; then
    chmod 0600 $private_key_path

    eval $(ssh-agent) >/dev/null 2>&1
    trap "kill $SSH_AGENT_PID" 0

    ssh-add $private_key_path >/dev/null 2>&1<commit_msg>make private key path static<commit_after>export TMPDIR=${TMPDIR:-/tmp}

load_pubkey() {
  local private_key_path=$TMPDIR/git-resource-private-key

  (jq -r '.source.private_key // empty' < $1) > $private_key_path

  if [ -s $private_key_path ]; then
    chmod 0600 $private_key_path

    eval $(ssh-agent) >/dev/null 2>&1
    trap "kill $SSH_AGENT_PID" 0

    ssh-add $private_key_path >/dev/null 2>&1
{'fraction_non_alphanumeric': 0.15119916579770595, 'fraction_numerical': 0.021897810218978103, 'mean_word_length': 3.6153846153846154, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1018170', 'n_tokens_mistral': 395, 'n_tokens_neox': 373, 'n_words': 76}