<commit_before>module Unidom
  module Visitor

    class Engine < ::Rails::Engine

      isolate_namespace ::Unidom::Visitor

      initializer :append_migrations do |app|<commit_msg>1, Improve the engine to load the enum YAML configuration files.<commit_after>require 'unidom/common/yaml_helper'

module Unidom
  module Visitor

    class Engine < ::Rails::Engine

      isolate_namespace ::Unidom::Visitor

      initializer :load_config_initializers do |app|
        Unidom::Common::YamlHelper.load_enum config: app.config, root: config.root
      end

      initializer :append_migrations do |app|
{'fraction_non_alphanumeric': 0.08153078202995008, 'fraction_numerical': 0.0016638935108153079, 'mean_word_length': 4.0588235294117645, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6173508', 'n_tokens_mistral': 184, 'n_tokens_neox': 175, 'n_words': 47}