<commit_before>module Digitalocean
  class SshKey
    # 
    # Api calls
    # 
    def self.all
      response = Digitalocean.request.get "ssh_keys"
      RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
    end

    def self.retrieve(ssh_key_id=nil)
      response = Digitalocean.request.get "ssh_keys/#{ssh_key_id}"
      RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
    end

    def self.create(attrs)
      response = Digitalocean.request.get "ssh_keys/new"
      RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
    end
  end
end
<commit_msg>SshKey.create fixed (didn't actually do anything before)<commit_after>module Digitalocean
  class SshKey
    # 
    # Api calls
    # 
    def self.all
      response = Digitalocean.request.get "ssh_keys"
      RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
    end

    def self.retrieve(ssh_key_id=nil)
      response = Digitalocean.request.get "ssh_keys/#{ssh_key_id}"
      RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
    end

    def self.create(attrs)
      response = Digitalocean.request.get "ssh_keys/new", attrs
      RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
    end
  end
end

{'fraction_non_alphanumeric': 0.09497645211930926, 'fraction_numerical': 0.0, 'mean_word_length': 3.381443298969072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3487154', 'n_tokens_mistral': 455, 'n_tokens_neox': 430, 'n_words': 77}