<commit_before>module JellyfishAzure
  class Engine < ::Rails::Engine
    isolate_namespace JellyfishAzure

    config.generators do |g|
      g.test_framework :rspec, fixture: false
    end

    # Initializer to combine this engines static assets with the static assets of the hosting site.
    initializer 'static assets' do |app|
      app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
    end

    initializer 'jellyfish_azure.load_registered_providers', before: load_config_initializers do
      begin
        if RegisteredProvider.table_exists?
          Dir[File.expand_path '../../../app/models/jellyfish_azure/registered_provider/*', __FILE__].each do |file|
            require_dependency file
          end
        end
      rescue
        # ignored
        nil
      end
    end

    initializer 'jellyfish_azure.load_product_types', before: load_config_initializers do
      begin
        if ProductType.table_exists?
          Dir[File.expand_path '../../../app/models/jellyfish_azure/product_type/*.rb', __FILE__].each do |file|
            require_dependency file
          end
        end
      rescue
        # ignored
        nil
      end
    end

    initializer 'jellyfish_azure.register_extension', after: finisher_hook do ||
      ::Jellyfish::Extension.register 'jellyfish-azure' do
        requires_jellyfish '>= 4.0.0'

        load_scripts 'extensions/azure/components/forms/fields.config.js',
          'extensions/azure/resources/azure-data.factory.js'

        mount_extension JellyfishAzure::Engine, at: :azure
      end
    end
  end
end<commit_msg>Fix error with initialization registration<commit_after>module JellyfishAzure
  class Engine < ::Rails::Engine
    isolate_namespace JellyfishAzure

    config.generators do |g|
      g.test_framework :rspec, fixture: false
    end

    # Initializer to combine this engines static assets with the static assets of the hosting site.
    initializer 'static assets' do |app|
      app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
    end

    initializer 'jellyfish_azure.load_registered_providers', :before => :load_config_initializers do
      begin
        if RegisteredProvider.table_exists?
          Dir[File.expand_path '../../../app/models/jellyfish_azure/registered_provider/*', __FILE__].each do |file|
            require_dependency file
          end
        end
      rescue
        # ignored
        nil
      end
    end

    initializer 'jellyfish_azure.load_product_types', :before => :load_config_initializers do
      begin
        if ProductType.table_exists?
          Dir[File.expand_path '../../../app/models/jellyfish_azure/product_type/*.rb', __FILE__].each do |file|
            require_dependency file
          end
        end
      rescue
        # ignored
        nil
      end
    end

    initializer 'jellyfish_azure.register_extension', :after => :finisher_hook do ||
      ::Jellyfish::Extension.register 'jellyfish-azure' do
        requires_jellyfish '>= 4.0.0'

        load_scripts 'extensions/azure/components/forms/fields.config.js',
          'extensions/azure/resources/azure-data.factory.js'

        mount_extension JellyfishAzure::Engine, at: :azure
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09173478655767484, 'fraction_numerical': 0.0018165304268846503, 'mean_word_length': 2.6548672566371683, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '3840885', 'n_tokens_mistral': 939, 'n_tokens_neox': 922, 'n_words': 211}