<commit_before>Puppet::Type.newtype(:ec2_instance) do
  @doc = 'type representing an EC2 instance'

  ensurable

  newparam(:name, namevar: true) do
    desc 'the name of the instance'
    validate do |value|
      fail Puppet::Error, 'Should not contains spaces' if value =~ /\s/
      fail Puppet::Error, 'Empty values are not allowed' if value == ''
    end
  end

  newparam(:security_groups) do
    desc 'the security groups to associate the instance'
  end

  newparam(:image_id) do
    desc 'the image id to use for the instance'
    validate do |value|
      fail Puppet::Error, 'Should not contains spaces' if value =~ /\s/
      fail Puppet::Error, 'Empty values are not allowed' if value == ''
    end
  end
end<commit_msg>added new param to instance type<commit_after>Puppet::Type.newtype(:ec2_instance) do
  @doc = 'type representing an EC2 instance'

  ensurable

  newparam(:name, namevar: true) do
    desc 'the name of the instance'
    validate do |value|
      fail Puppet::Error, 'Should not contains spaces' if value =~ /\s/
      fail Puppet::Error, 'Empty values are not allowed' if value == ''
    end
  end

  newparam(:security_groups) do
    desc 'the security groups to associate the instance'
  end

  newparam(:image_id) do
    desc 'the image id to use for the instance'
    validate do |value|
      fail Puppet::Error, 'Should not contains spaces' if value =~ /\s/
      fail Puppet::Error, 'Empty values are not allowed' if value == ''
    end
  end

  newparam(:instance_type) do
    desc 'the type to use for the instance'
    validate do |value|
      fail Puppet::Error, 'Should not contains spaces' if value =~ /\s/
      fail Puppet::Error, 'Empty values are not allowed' if value == ''
    end
  end
end
{'fraction_non_alphanumeric': 0.09747706422018348, 'fraction_numerical': 0.0022935779816513763, 'mean_word_length': 3.1547619047619047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3079981', 'n_tokens_mistral': 543, 'n_tokens_neox': 528, 'n_words': 213}