<commit_before>require 'veewee/builder/core/box'
require 'veewee/builder/core/box/vnc'

module Veewee
  module Builder
    module Kvm
      class Box < Veewee::Builder::Core::Box
        
        include ::Veewee::Builder::Core
        include ::Veewee::Builder::Kvm
        
        include ::Veewee::Builder::Core::BoxCommand
        
        attr_accessor :connection

        def initialize(name,env)

          require 'libvirt'
          require 'fog'

          super(name,env)
          
          @connection=::Fog::Compute.new(:provider => "Libvirt", :libvirt_uri => "qemu:///system")
          
        end
        
        # Type on the console
        def console_type(sequence,type_options={})
                  vnc_port=raw.vnc_port
                  vnc_type(sequence,"localhost",vnc_port)
        end
                
        <commit_msg>temporary fix for vnc port<commit_after>require 'veewee/builder/core/box'
require 'veewee/builder/core/box/vnc'

module Veewee
  module Builder
    module Kvm
      class Box < Veewee::Builder::Core::Box
        
        include ::Veewee::Builder::Core
        include ::Veewee::Builder::Kvm
        
        include ::Veewee::Builder::Core::BoxCommand
        
        attr_accessor :connection

        def initialize(name,env)

          require 'libvirt'
          require 'fog'

          super(name,env)
          
          @connection=::Fog::Compute.new(:provider => "Libvirt", :libvirt_uri => "qemu:///system")
          
        end
        
        # Type on the console
        def console_type(sequence,type_options={})
                  vnc_port=@connection.servers.all(:name => name).first.vnc_port
                  vnc_type(sequence,"localhost",vnc_port)
        end
                
        
{'fraction_non_alphanumeric': 0.1082766439909297, 'fraction_numerical': 0.0, 'mean_word_length': 1.846774193548387, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '3076582', 'n_tokens_mistral': 528, 'n_tokens_neox': 520, 'n_words': 89}