<commit_before>module RgGen
  module Core
    module Configuration
      class YAMLLoader < Loader
        include HashLoader

        support_types [:yaml, :yml]

        def read_file(file)
          YAML.load(File.binread(file), file)
        end
      end
    end
  end
end
<commit_msg>fix #10<commit_after>module RgGen
  module Core
    module Configuration
      class YAMLLoader < Loader
        include HashLoader

        support_types [:yaml, :yml]

        def read_file(file)
          YAML.safe_load(File.binread(file), [], [], true, file)
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.07419898819561552, 'fraction_numerical': 0.003372681281618887, 'mean_word_length': 2.077720207253886, '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': '4729064', 'n_tokens_mistral': 192, 'n_tokens_neox': 184, 'n_words': 48}