<commit_before>require 'fog/core/collection'
require 'fog/compute/models/go_grid/server'

module Fog
  module GoGrid
    class Compute

      class Servers < Fog::Collection

        model Fog::GoGrid::Compute::Server

        def all
          data = connection.grid_server_list.body['list']
          load(data)
        end

        def bootstrap(new_attributes = {})
          server = create(new_attributes)
          server.wait_for { ready? }
          server
        end

        def get(server_id)
          if server_id && server = connection.grid_server_get(server_id).body['list']
            new(server)
          end
        rescue Fog::GoGrid::Compute::NotFound
          nil
        end

      end

    end
  end
end<commit_msg>Add ability to get servers<commit_after>require 'fog/core/collection'
require 'fog/compute/models/go_grid/server'

module Fog
  module GoGrid
    class Compute

      class Servers < Fog::Collection

        model Fog::GoGrid::Compute::Server

        def all
          data = connection.grid_server_list.body['list']
          load(data)
        end

        def bootstrap(new_attributes = {})
          server = create(new_attributes)
          server.wait_for { ready? }
          server
        end

        def get(server_id)
          if server_id && server = connection.grid_server_get(server_id).body['list'].first
            new(server)
          end
        rescue Fog::GoGrid::Compute::NotFound
          nil
        end

      end

    end
  end
end
{'fraction_non_alphanumeric': 0.08571428571428572, 'fraction_numerical': 0.0, 'mean_word_length': 1.9529411764705882, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4926874', 'n_tokens_mistral': 438, 'n_tokens_neox': 427, 'n_words': 93}