<commit_before>#!/bin/sh
set -e

if [ -f /var/run/secrets/lagoon/sshkey/ssh-privatekey ]; then
  cp /var/run/secrets/lagoon/sshkey/ssh-privatekey /home/.ssh/id_rsa
  chmod 400 /home/.ssh/id_rsa
  eval $(ssh-agent -a /tmp/ssh-agent)
  ssh-add /home/.ssh/id_rsa
fi

# Test if pygmy or cachalot ssh-agents are mounted and symlink them as our known ssh-auth-sock file.
# This will only be used in local development
if [ -S /tmp/amazeeio_ssh-agent/socket ]; then
  ln -s /tmp/amazeeio_ssh-agent/socket $SSH_AUTH_SOCK
fi<commit_msg>add a new line to the key before adding to the agent, picky openssh is picky<commit_after>#!/bin/sh
set -e

if [ -f /var/run/secrets/lagoon/sshkey/ssh-privatekey ]; then
  cp /var/run/secrets/lagoon/sshkey/ssh-privatekey /home/.ssh/id_rsa
  # add a new line to the key. OpenSSH is very picky that keys are always end with a newline
  echo >> /home/.ssh/id_rsa

  chmod 400 /home/.ssh/id_rsa
  eval $(ssh-agent -a /tmp/ssh-agent)
  ssh-add /home/.ssh/id_rsa
fi

# Test if pygmy or cachalot ssh-agents are mounted and symlink them as our known ssh-auth-sock file.
# This will only be used in local development
if [ -S /tmp/amazeeio_ssh-agent/socket ]; then
  ln -s /tmp/amazeeio_ssh-agent/socket $SSH_AUTH_SOCK
fi
{'fraction_non_alphanumeric': 0.11560226354082458, 'fraction_numerical': 0.004850444624090542, 'mean_word_length': 3.283737024221453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6862797', 'n_tokens_mistral': 524, 'n_tokens_neox': 473, 'n_words': 141}