<commit_before><commit_msg>Initial commit.<commit_after>require "yaml_parser/yaml_parser_logging_test"

class ValidationCommandTest < Test::Unit::TestCase
  include YamlParserLoggingTest

  def setup
    @expected = [
      { :level => "warn", :message => "YAML command definition for executor id \"identifier\" does not have a class. Skipping" },
      { :level => "warn", :message => "YAML command definition for executor id \"identifier_two\" does not have a class. Skipping" },
      { :level => "warn", :message => "YAML command definition class for executor id \"identifier_three\" must be of type String. Skipping" },
      { :level => "warn", :message => "YAML command definition class for executor id \"identifier_four\" must be of type String. Skipping" },
      { :level => "warn", :message => "YAML command definition for executor id \"identifier_five\" does not reference a valid class. Skipping" }
    ]
    @yaml_string = "
      - id: identifier
        type: single
        commands:
         - no_command: no_command
      - id: identifier_two
        type: single
        commands:
         - class:
      - id: identifier_three
        type: single
        commands:
         - class: true
      - id: identifier_four
        type: single
        commands:
         - class: 0
      - id: identifier_five
        type: single
        commands:
         - class: no_command
"
  end
end
{'fraction_non_alphanumeric': 0.1047008547008547, 'fraction_numerical': 0.0007122507122507123, 'mean_word_length': 2.5125, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 13, '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': '3865983', 'n_tokens_mistral': 387, 'n_tokens_neox': 378, 'n_words': 131}