<commit_before>require 'fog/compute/models/server'

module Fog
  module Compute
    class Tenderfusion

      class Server < Fog::Compute::Server

        identity :name

        attribute :running
        attribute :ip
        attribute :cube

        # def ssh(commands, options={}, &blk)
        #   require 'net/ssh'
        #   options[:password] = password
        #   super(commands, options)
        # end

        def ready?
          running && ip
        end

        def running?
          running
        end

        def public_ip_address
          ip
        end

        # def initialize(attributes={})
          # super
        # end

        def save
          requires :name, :cube

          cube_str = cube.kind_of?(Cube) ? cube.name : cube
<commit_msg>ready? should reload to check.<commit_after>require 'fog/compute/models/server'

module Fog
  module Compute
    class Tenderfusion

      class Server < Fog::Compute::Server

        identity :name

        attribute :running
        attribute :ip
        attribute :cube

        # def ssh(commands, options={}, &blk)
        #   require 'net/ssh'
        #   options[:password] = password
        #   super(commands, options)
        # end

        def ready?
          reload
          running && ip
        end

        def running?
          running
        end

        def public_ip_address
          ip
        end

        # def initialize(attributes={})
          # super
        # end

        def save
          requires :name, :cube

          cube_str = cube.kind_of?(Cube) ? cube.name : cube

{'fraction_non_alphanumeric': 0.08091024020227561, 'fraction_numerical': 0.0, 'mean_word_length': 1.4929133858267716, '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': '6336228', 'n_tokens_mistral': 455, 'n_tokens_neox': 422, 'n_words': 117}