<commit_before>require 'evertils/test'

class ConvertersTest < Evertils::Test::Base

  #
  # @since 0.2.9
  def test_yaml_to_enml_from_file
    conv = Evertils::Common::Converter::YamlToEnml.new

    assert conv.from_file('/Users/ryanpriebe/test.yml'), 'Could not convert from YAML file'
  end

  #
  # @since 0.2.9
  def test_yaml_to_enml_from_string
    conv = Evertils::Common::Converter::YamlToEnml.new

    assert conv.from_string('name: HF2
children:
  - Accounts
  - Agendas
  - Design Documents
  - Interviews/HR
  - Notes + Documentation'), 'Could not convert from YAML string'
  end

end<commit_msg>only need to create one instance of YamlToEnml converter for these tests<commit_after>require 'evertils/test'

class ConvertersTest < Evertils::Test::Base

  def setup
    super

    @yml_conv_entity = Evertils::Common::Converter::YamlToEnml.new
  end

  #
  # @since 0.2.9
  def test_yaml_to_enml_from_file
    assert @yml_conv_entity.from_file('/Users/ryanpriebe/test.yml'), 'Could not convert from YAML file'
  end

  #
  # @since 0.2.9
  def test_yaml_to_enml_from_string
    assert @yml_conv_entity.from_string('name: HF2
children:
  - Accounts
  - Agendas
  - Design Documents
  - Interviews/HR
  - Notes + Documentation'), 'Could not convert from YAML string'
  end

end
{'fraction_non_alphanumeric': 0.09875583203732503, 'fraction_numerical': 0.01088646967340591, 'mean_word_length': 3.875, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7023436', 'n_tokens_mistral': 488, 'n_tokens_neox': 457, 'n_words': 102}