<commit_before>module Fog
  module Compute
    class Vsphere
      class Real
        def vm_reconfig_hardware(options = {})
          raise ArgumentError, "hardware_spec is a required parameter" unless options.has_key? 'hardware_spec'
          raise ArgumentError, "instance_uuid is a required parameter" unless options.has_key? 'instance_uuid'
          vm_mob_ref = get_vm_by_ref(options['instance_uuid'])
          task = vm_mob_ref.ReconfigVM_Task(:spec => RbVmomi::VIM.VirtualMachineConfigSpec(options['hardware_spec']))
          task.wait_for_completion
           { 'task_state' => task.info.state }
        end
      end

      class Mock
        def vm_reconfig_hardware(options = {})
          raise ArgumentError, "hardware_spec is a required parameter" unless options.has_key? 'hardware_spec'
          raise ArgumentError, "instance_uuid is a required parameter" unless options.has_key? 'instance_uuid'
          { 'task_state' => 'success' }
        end
      end
    end
  end
end
<commit_msg>Fog::Vsphere::Compute - misspelled method 'get_vm_by_ref' in vm_reconfig_hardware<commit_after>module Fog
  module Compute
    class Vsphere
      class Real
        def vm_reconfig_hardware(options = {})
          raise ArgumentError, "hardware_spec is a required parameter" unless options.has_key? 'hardware_spec'
          raise ArgumentError, "instance_uuid is a required parameter" unless options.has_key? 'instance_uuid'
          vm_mob_ref = get_vm_ref(options['instance_uuid'])
          task = vm_mob_ref.ReconfigVM_Task(:spec => RbVmomi::VIM.VirtualMachineConfigSpec(options['hardware_spec']))
          task.wait_for_completion
           { 'task_state' => task.info.state }
        end
      end

      class Mock
        def vm_reconfig_hardware(options = {})
          raise ArgumentError, "hardware_spec is a required parameter" unless options.has_key? 'hardware_spec'
          raise ArgumentError, "instance_uuid is a required parameter" unless options.has_key? 'instance_uuid'
          { 'task_state' => 'success' }
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.08097747963584093, 'fraction_numerical': 0.0, 'mean_word_length': 3.062256809338521, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4226639', 'n_tokens_mistral': 610, 'n_tokens_neox': 605, 'n_words': 147}