<commit_before>require 'rails'
require 'rails/railtie'
require 'webpack/rails/helper'
require 'generators/webpack-rails/install_generator'

module Webpack
  # :nodoc:
  class Railtie < ::Rails::Railtie
    config.after_initialize do
      ActiveSupport.on_load(:action_view) do
        include Webpack::Rails::Helper
      end
    end

    config.webpack = ActiveSupport::OrderedOptions.new
    config.webpack.config_file = 'config/webpack.config.js'
    config.webpack.binary = 'node_modules/.bin/webpack'

    config.webpack.dev_server = ActiveSupport::OrderedOptions.new
    config.webpack.dev_server.host = 'localhost'
    config.webpack.dev_server.port = 3808
    config.webpack.dev_server.binary = 'node_modules/.bin/webpack-dev-server'
    config.webpack.dev_server.enabled = !::Rails.env.production?

    config.webpack.output_dir = "public/webpack"
    config.webpack.public_path = "webpack"
    config.webpack.manifest_filename = "manifest.json"

    rake_tasks do
      load "tasks/webpack.rake"
    end<commit_msg>Railtie does not need to require generator<commit_after>require 'rails'
require 'rails/railtie'
require 'webpack/rails/helper'

module Webpack
  # :nodoc:
  class Railtie < ::Rails::Railtie
    config.after_initialize do
      ActiveSupport.on_load(:action_view) do
        include Webpack::Rails::Helper
      end
    end

    config.webpack = ActiveSupport::OrderedOptions.new
    config.webpack.config_file = 'config/webpack.config.js'
    config.webpack.binary = 'node_modules/.bin/webpack'

    config.webpack.dev_server = ActiveSupport::OrderedOptions.new
    config.webpack.dev_server.host = 'localhost'
    config.webpack.dev_server.port = 3808
    config.webpack.dev_server.binary = 'node_modules/.bin/webpack-dev-server'
    config.webpack.dev_server.enabled = !::Rails.env.production?

    config.webpack.output_dir = "public/webpack"
    config.webpack.public_path = "webpack"
    config.webpack.manifest_filename = "manifest.json"

    rake_tasks do
      load "tasks/webpack.rake"
    end
{'fraction_non_alphanumeric': 0.10897435897435898, 'fraction_numerical': 0.0039447731755424065, 'mean_word_length': 3.854066985645933, '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': '3911935', 'n_tokens_mistral': 651, 'n_tokens_neox': 615, 'n_words': 101}