<commit_before>
# ensure the gonano .ssh directory exists
directory "/home/gonano/.ssh" do
  recursive true
  mode 700
  owner 'gonano'
  group 'gonano'
end

# set custom ssh configuration
hook_file "/home/gonano/.ssh/config" do
  source 'ssh/config'
  mode 600
  owner 'gonano'
  group 'gonano'
end

# create file for each file passed in
payload[:ssh_files].each do |name, body|

  file "/home/gonano/.ssh/#{name}" do
    content body
    mode 600
    owner 'gonano'
    group 'gonano'
  end

end<commit_msg>best not assume a payload attribute will exist<commit_after>
# ensure the gonano .ssh directory exists
directory "/home/gonano/.ssh" do
  recursive true
  mode 700
  owner 'gonano'
  group 'gonano'
end

# set custom ssh configuration
hook_file "/home/gonano/.ssh/config" do
  source 'ssh/config'
  mode 600
  owner 'gonano'
  group 'gonano'
end

# create file for each file passed in
(payload[:ssh_files] || {}).each do |name, body|

  file "/home/gonano/.ssh/#{name}" do
    content body
    mode 600
    owner 'gonano'
    group 'gonano'
  end

end
{'fraction_non_alphanumeric': 0.10387157695939565, 'fraction_numerical': 0.0169971671388102, 'mean_word_length': 3.3089430894308944, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4292049', 'n_tokens_mistral': 390, 'n_tokens_neox': 353, 'n_words': 125}