<commit_before>require 'rbvmomi'
require 'pathname'
require 'vSphere/errors'
require 'vSphere/action'
require 'vSphere/action/connect_vsphere'
require 'vSphere/action/close_vsphere'
require 'vSphere/action/is_created'
require 'vSphere/action/get_state'
require 'vSphere/action/get_ssh_info'
require 'vSphere/action/clone'
require 'vSphere/action/message_already_created'
require 'vSphere/action/message_not_created'
require 'vSphere/action/destroy'
require 'vSphere/action/power_off'

VIM = RbVmomi::VIM

EXISTING_UUID = 'existing_uuid'
MISSING_UUID = 'missing_uuid'
NEW_UUID = 'new_uuid'
TEMPLATE = 'template'
NAME = 'vm'
IP_ADDRESS = '127.0.0.1'

RSpec.configure do |config|
  # removes deprecation warnings.
  # http://stackoverflow.com/questions/20275510/how-to-avoid-deprecation-warning-for-stub-chain-in-rspec-3-0/20296359#20296359
  config.mock_with :rspec do |c|
    c.syntax = [:should, :expect]
  end

  config.before(:each) do
    def call
      described_class.new(@app, @env).call(@env)
    end

    provider_config = double(
        host: 'testhost.com',
        user: 'testuser',
        password: '<PASSWORD>',
        data_center_name: nil,
        compute_resource_name: 'testcomputeresource',
        resource_pool_name: 'testresourcepool',
        vm_base_path: nil,
        template_name: TEMPLATE,
        name: NAME,<commit_msg>Setup I18n when setting up specs<commit_after>require 'rbvmomi'
require 'pathname'
require 'vSphere/errors'
require 'vSphere/action'
require 'vSphere/action/connect_vsphere'
require 'vSphere/action/close_vsphere'
require 'vSphere/action/is_created'
require 'vSphere/action/get_state'
require 'vSphere/action/get_ssh_info'
require 'vSphere/action/clone'
require 'vSphere/action/message_already_created'
require 'vSphere/action/message_not_created'
require 'vSphere/action/destroy'
require 'vSphere/action/power_off'
require 'vagrant-vsphere'

VIM = RbVmomi::VIM

EXISTING_UUID = 'existing_uuid'
MISSING_UUID = 'missing_uuid'
NEW_UUID = 'new_uuid'
TEMPLATE = 'template'
NAME = 'vm'
IP_ADDRESS = '127.0.0.1'

RSpec.configure do |config|
  VagrantPlugins::VSphere::Plugin.setup_i18n

  # removes deprecation warnings.
  # http://stackoverflow.com/questions/20275510/how-to-avoid-deprecation-warning-for-stub-chain-in-rspec-3-0/20296359#20296359
  config.mock_with :rspec do |c|
    c.syntax = [:should, :expect]
  end

  config.before(:each) do
    def call
      described_class.new(@app, @env).call(@env)
    end

    provider_config = double(
        host: 'testhost.com',
        user: 'testuser',
        password: '<PASSWORD>',
        data_center_name: nil,
        compute_resource_name: 'testcomputeresource',
        resource_pool_name: 'testresourcepool',
        vm_base_path: nil,
        template_name: TEMPLATE,
        name: NAME,
{'fraction_non_alphanumeric': 0.11815252416756176, 'fraction_numerical': 0.02434658073755818, 'mean_word_length': 4.352490421455939, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5036265', 'n_tokens_mistral': 1050, 'n_tokens_neox': 996, 'n_words': 175}