<commit_before># to load pagination in rails app
require 'will_paginate'
require 'jquery-rails'
require 'popper_js'
require 'bootstrap'
require 'simple_form' if system('gem list -i simple_form', :out => File::NULL)

module UiBibz
  module Rails
    class Engine < ::Rails::Engine

      initializer "ui_bibz.helpers" do
        ActionView::Base.send :include, UiBibz::Helpers::UtilsHelper
      end

      initializer "ui_bibz.helpers.ui" do
        ActionView::Base.send :include, UiBibz::Helpers::Ui::CoreHelper
        ActionView::Base.send :include, UiBibz::Helpers::Ui::UxHelper
      end

      config.autoload_paths += Dir["#{config.root}/lib/ui_bibz/inputs/**/"] if defined?(::SimpleForm)

      initializer "ui_bibz.helpers.form" do
        ActionView::Base.send :include, UiBibzForm
      end

      initializer 'font-awesome-sass.assets.precompile', group: :all do |app|
        config.assets.precompile << /\.(?:svg|eot|woff|woff2|ttf)\z/
      end

      config.after_initialize do
        unless UiBibz.configured?
          warn '[Ui Bibz] Ui Bibz is not configured in the application and will use the default values.' + ' Use `rails generate ui_bibz:install` to generate the Ui Bibz configuration.'
        end<commit_msg>Add compatibility with Sprockets 4<commit_after># to load pagination in rails app
require 'will_paginate'
require 'jquery-rails'
require 'popper_js'
require 'bootstrap'
require 'simple_form' if system('gem list -i simple_form', :out => File::NULL)

module UiBibz
  module Rails
    class Engine < ::Rails::Engine

      initializer "ui_bibz.helpers" do
        ActionView::Base.send :include, UiBibz::Helpers::UtilsHelper
      end

      initializer "ui_bibz.helpers.ui" do
        ActionView::Base.send :include, UiBibz::Helpers::Ui::CoreHelper
        ActionView::Base.send :include, UiBibz::Helpers::Ui::UxHelper
      end

      config.autoload_paths += Dir["#{config.root}/lib/ui_bibz/inputs/**/"] if defined?(::SimpleForm)

      initializer "ui_bibz.helpers.form" do
        ActionView::Base.send :include, UiBibzForm
      end

      initializer 'font-awesome-sass.assets.precompile', group: :all do |app|
        %w[eot svg ttf woff woff2].each do |ext|
          app.config.assets.precompile << "fonts/fa-brands-400.#{ext}"
          app.config.assets.precompile << "fonts/fa-regular-400.#{ext}"
          app.config.assets.precompile << "fonts/fa-solid-900.#{ext}"
        end
      end

      config.after_initialize do
        unless UiBibz.configured?
          warn '[Ui Bibz] Ui Bibz is not configured in the application and will use the default values.' + ' Use `rails generate ui_bibz:install` to generate the Ui Bibz configuration.'
        end
{'fraction_non_alphanumeric': 0.11806069578090303, 'fraction_numerical': 0.0044411547002220575, 'mean_word_length': 3.317891373801917, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 5, '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': '4198490', 'n_tokens_mistral': 903, 'n_tokens_neox': 862, 'n_words': 215}