<commit_before>module Fog
  module Compute
    class DigitalOcean 
      class Real

        def list_ssh_keys(options = {})
          request(
            :expects  => [200],
            :method   => 'GET',
            :path     => 'ssh_keys'
          )
        end

      end

      class Mock

        def list_ssh_keys
          Fog::Mock.not_implemented
        end

      end
    end
  end
end<commit_msg>[digitalocean|compute] added list_ssh_keys mock code<commit_after>module Fog
  module Compute
    class DigitalOcean 
      class Real

        def list_ssh_keys(options = {})
          request(
            :expects  => [200],
            :method   => 'GET',
            :path     => 'ssh_keys'
          )
        end

      end

      class Mock

        def list_ssh_keys
          response = Excon::Response.new
          response.status = 200
          response.body = {
            "status" => "OK",
            # key listing does not return ssh_pub_key
            # https://www.digitalocean.com/api#ssh_keys
            "ssh_keys"  => self.data[:ssh_keys].map { |k| k.delete('ssh_pub_key'); k }
          }
          response
        end

      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08853288364249579, 'fraction_numerical': 0.007588532883642495, 'mean_word_length': 1.3835341365461848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '4935636', 'n_tokens_mistral': 377, 'n_tokens_neox': 342, 'n_words': 80}