<commit_before>#!/usr/bin/env bash

echo
echo "Setting up ssh keys..."

SSH_EMAIL="<EMAIL>"
DEFAULT_KEY_FILE=${HOME}/.ssh/id_rsa
LOCAL_USER_SSH_DIR=${HOME}/.ssh
LOCAL_USER_SSH_DIR_BAK=${HOME}/.ssh_bak

echo
echo "Generating default ssh key"
ssh-keygen -t rsa -b 4096 -C $SSH_EMAIL -f $DEFAULT_KEY_FILE

echo
echo "Starting ssh-agent..."
eval "$(ssh-agent -s)"

echo
echo "Adding $DEFAULT_KEY_FILE to ssh-agent"
ssh-add $DEFAULT_KEY_FILE<commit_msg>Add logic in ssh.sh to copy over an .ssh directory before install<commit_after>#!/usr/bin/env bash

echo
echo "Setting up ssh keys..."

FILEZ_DIR="$(dirname "$0")"/../filez

echo
echo "Checking if .ssh directory exists in filez directory..."
if [ -d ${FILEZ_DIR}/.ssh ]
then
    echo
    echo ".ssh directory exists, copying it to ~/"
    cp -r ${FILEZ_DIR}/.ssh ~/
else
  echo
  echo ".ssh directory not found, will generate default ssh key"

  SSH_EMAIL="<EMAIL>"
  DEFAULT_KEY_FILE=${HOME}/.ssh/id_rsa
  LOCAL_USER_SSH_DIR=${HOME}/.ssh
  LOCAL_USER_SSH_DIR_BAK=${HOME}/.ssh_bak

  echo
  echo "Generating default ssh key"
  ssh-keygen -t rsa -b 4096 -C $SSH_EMAIL -f $DEFAULT_KEY_FILE
fi



# SSH_EMAIL="<EMAIL>"
# DEFAULT_KEY_FILE=${HOME}/.ssh/id_rsa
# LOCAL_USER_SSH_DIR=${HOME}/.ssh
# LOCAL_USER_SSH_DIR_BAK=${HOME}/.ssh_bak
#
# echo
# echo "Generating default ssh key"
# ssh-keygen -t rsa -b 4096 -C $SSH_EMAIL -f $DEFAULT_KEY_FILE
#
# echo
# echo "Starting ssh-agent..."
# eval "$(ssh-agent -s)"
#
# echo
# echo "Adding $DEFAULT_KEY_FILE to ssh-agent"
# ssh-add $DEFAULT_KEY_FILE
{'fraction_non_alphanumeric': 0.1472312703583062, 'fraction_numerical': 0.008469055374592834, 'mean_word_length': 4.12, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '3342166', 'n_tokens_mistral': 660, 'n_tokens_neox': 597, 'n_words': 153}