<commit_before>#!/bin/sh

getKeys() {
  KEYURL=$1
  if [ ! -d $HOME/.ssh ] ; then
    mkdir $HOME/.ssh
    chmod 600 $HOME/.ssh
  fi

  curl "$KEYURL" >> $HOME/.ssh/authorized_keys
  chmod 600 $HOME/.ssh/authorized_keys
}
<commit_msg>add support for arbitrary path<commit_after>#!/bin/sh

getKeys() {
  KEYURL=$1
  PREF=${2:=$HOME}
  if [ ! -d $PREF/.ssh ] ; then
    mkdir $PREF/.ssh
    chmod 600 $PREF/.ssh
  fi

  curl "$KEYURL" >> $PREF/.ssh/authorized_keys
  chmod 600 $PREF/.ssh/authorized_keys
}

{'fraction_non_alphanumeric': 0.17261904761904762, 'fraction_numerical': 0.02976190476190476, 'mean_word_length': 2.8846153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7601623', 'n_tokens_mistral': 228, 'n_tokens_neox': 199, 'n_words': 43}