<commit_before>require 'fog/compute/models/server'
require 'net/ssh/proxy/command'

module Fog
  module Compute
    class Google

      class Server < Fog::Compute::Server

        identity :name
        attribute :image_name, :aliases => 'image'
        attribute :network_interfaces, :aliases => 'networkInterfaces'
        attribute :state, :aliases => 'status'
        attribute :zone_name, :aliases => 'zone'
        attribute :machine_type, :aliases => 'machineType'
        attribute :metadata

        def destroy
          requires :name
          service.delete_server(name)
        end

        def image
          service.get_image(self.image_name.split('/')[-1])
        end

        def public_ip_address
          if self.network_interfaces and self.network_interfaces.count
            self.network_interfaces[0]["networkIP"]
          else
            nil
          end
        end

        def metadata
          service.get_metadata(self.instance, self.zone)
        end

        def metadata[]=(k,v)
          service.set_metadata(self.instance, self.zone, {k => v})
          return self.metadata
        end


        def ready?
          data = service.get_server(self.name, self.zone_name).body
          data['zone_name'] = self.zone_name
          self.merge_attributes(data)
          self.state == RUNNING_STATE
        end<commit_msg>Forgot to delete two lines.<commit_after>require 'fog/compute/models/server'
require 'net/ssh/proxy/command'

module Fog
  module Compute
    class Google

      class Server < Fog::Compute::Server

        identity :name
        attribute :image_name, :aliases => 'image'
        attribute :network_interfaces, :aliases => 'networkInterfaces'
        attribute :state, :aliases => 'status'
        attribute :zone_name, :aliases => 'zone'
        attribute :machine_type, :aliases => 'machineType'

        def destroy
          requires :name
          service.delete_server(name)
        end

        def image
          service.get_image(self.image_name.split('/')[-1])
        end

        def public_ip_address
          if self.network_interfaces and self.network_interfaces.count
            self.network_interfaces[0]["networkIP"]
          else
            nil
          end
        end

        def metadata
          service.get_metadata(self.instance, self.zone)
        end

        def metadata[]=(k,v)
          service.set_metadata(self.instance, self.zone, {k => v})
          return self.metadata
        end

        def ready?
          data = service.get_server(self.name, self.zone_name).body
          data['zone_name'] = self.zone_name
          self.merge_attributes(data)
          self.state == RUNNING_STATE
        end
{'fraction_non_alphanumeric': 0.09369236444116562, 'fraction_numerical': 0.0014754703061600886, 'mean_word_length': 2.030167597765363, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '961770', 'n_tokens_mistral': 763, 'n_tokens_neox': 742, 'n_words': 167}