<commit_before># Author:: <NAME> (<<EMAIL>>)
# License:: Apache License, Version 2.0

require 'chef/knife'
require 'chef/knife/base_ovh_cloud_command'
require 'rbvmomi'
require 'netaddr'

class Chef::Knife::OvhCloudVmQuery < Chef::Knife::BaseOvhCloudCommand
  banner "knife ovh cloud query VMNAME QUERY.  See \"http://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.VirtualMachine.html\" for allowed QUERY values."

  get_common_options

  def run
    $stdout.sync = true
    vmname = @name_args[0]
    if vmname.nil?
      show_usage
      fatal_exit("You must specify a virtual machine name")
    end<commit_msg>Corrected a typo in Query command<commit_after># Author:: <NAME> (<<EMAIL>>)
# License:: Apache License, Version 2.0

require 'chef/knife'
require 'chef/knife/base_ovh_cloud_command'
require 'rbvmomi'
require 'netaddr'

class Chef::Knife::OvhCloudVmQuery < Chef::Knife::BaseOvhCloudCommand
  banner "knife ovh cloud vm query VMNAME QUERY.  See \"http://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.VirtualMachine.html\" for allowed QUERY values."

  get_common_options

  def run
    $stdout.sync = true
    vmname = @name_args[0]
    if vmname.nil?
      show_usage
      fatal_exit("You must specify a virtual machine name")
    end
{'fraction_non_alphanumeric': 0.11442385173247381, 'fraction_numerical': 0.0064464141821112, 'mean_word_length': 4.330472103004292, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5199510', 'n_tokens_mistral': 452, 'n_tokens_neox': 424, 'n_words': 107}