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

module Fog
  module Compute
    class Google

      class Servers < Fog::Collection

        model Fog::Compute::Google::Server

        def all
          data = service.list_servers.body["items"] || []
          load(data)
        end

        def get(identity)
          data = service.get_server(identity).body
          new(data)
        rescue Excon::Errors::NotFound
          nil
        end

        def bootstrap(new_attributes = {})
          defaults = {
            :name => "fog-#{Time.now.to_i}",
            :image_name => "gcel-12-04-v20130225",
            :machine_type => "n1-standard-1",
            :zone_name => "us-central1-a",
          }

          p server = create(defaults.merge(new_attributes))
          server.wait_for { ready? }
          server
        end

      end

    end
  end
end<commit_msg>whoops.<commit_after>require 'fog/core/collection'
require 'fog/google/models/compute/server'

module Fog
  module Compute
    class Google

      class Servers < Fog::Collection

        model Fog::Compute::Google::Server

        def all
          data = service.list_servers.body["items"] || []
          load(data)
        end

        def get(identity)
          data = service.get_server(identity).body
          new(data)
        rescue Excon::Errors::NotFound
          nil
        end

        def bootstrap(new_attributes = {})
          defaults = {
            :name => "fog-#{Time.now.to_i}",
            :image_name => "gcel-12-04-v20130225",
            :machine_type => "n1-standard-1",
            :zone_name => "us-central1-a",
          }

          server = create(defaults.merge(new_attributes))
          server.wait_for { ready? }
          server
        end

      end

    end
  end
end
{'fraction_non_alphanumeric': 0.11299126637554585, 'fraction_numerical': 0.016375545851528384, 'mean_word_length': 1.7317436661698957, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4638624', 'n_tokens_mistral': 565, 'n_tokens_neox': 538, 'n_words': 102}