<commit_before>class TemplateInfra < MiqTemplate
  SUBCLASSES = %w{
    TemplateKvm
    TemplateMicrosoft
    TemplateRedhat
    TemplateVmware
    TemplateXen
  }

  default_value_for :cloud, false
end

# Preload any subclasses of this class, so that they will be part of the
#   conditions that are generated on queries against this class.
TemplateInfra::SUBCLASSES.each { |c| require_dependency Rails.root.join("app", "models", "#{c.underscore}.rb").to_s }
<commit_msg>Disable Provisioning button for SCVMM.<commit_after>class TemplateInfra < MiqTemplate
  SUBCLASSES = %w{
    TemplateKvm
    TemplateMicrosoft
    TemplateRedhat
    TemplateVmware
    TemplateXen
  }

  default_value_for :cloud, false

  def self.eligible_for_provisioning
    super.where(:type => %w(TemplateRedhat TemplateVmware))
  end
end

# Preload any subclasses of this class, so that they will be part of the
#   conditions that are generated on queries against this class.
TemplateInfra::SUBCLASSES.each { |c| require_dependency Rails.root.join("app", "models", "#{c.underscore}.rb").to_s }

{'fraction_non_alphanumeric': 0.08294501397949673, 'fraction_numerical': 0.0, 'mean_word_length': 4.424242424242424, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1060135', 'n_tokens_mistral': 343, 'n_tokens_neox': 324, 'n_words': 96}