<commit_before>require 'active_support/core_ext/string/encoding'
require 'rails/engine/configuration'

module Rails
  class Application
    class Configuration < ::Rails::Engine::Configuration
      attr_accessor :allow_concurrency, :asset_host, :asset_path, :assets,
                    :cache_classes, :cache_store, :consider_all_requests_local,
                    :dependency_loading, :encoding, :filter_parameters,
                    :force_ssl, :helpers_paths, :logger, :preload_frameworks,
                    :reload_plugins, :secret_token, :serve_static_assets,
                    :static_cache_control, :session_options, :time_zone, :whiny_nils

      attr_writer :log_level

      def initialize(*)
        super
        self.encoding = "utf-8"
        @allow_concurrency           = false
        @consider_all_requests_local = false
        @filter_parameters           = []
        @helpers_paths               = []
        @dependency_loading          = true
        @serve_static_assets         = true
        @static_cache_control        = nil
        @force_ssl                   = false
        @session_store               = :cookie_store
        @session_options             = {}
        @time_zone                   = "UTC"
        @log_level                   = nil
        @middleware                  = app_middleware
        @generators                  = app_generators

        @assets = ActiveSupport::OrderedOptions.new
        @assets.enabled    = false
        @assets.paths      = []
        @assets.precompile = [ /\w+\.(?!js|css)$/, "application.js", "application.css" ]
        @assets.prefix     = "/assets"

        @assets.js_compressor  = nil
        @assets.css_compressor = nil
      end

      def compiled_asset_path
        "/"
      end

      def encoding=(value)
        @encoding = value
        if "ruby".encoding_aware?
          Encoding.default_external = value
          Encoding.default_internal = value
        else
          $KCODE = value
          if $KCODE == "NONE"
            raise "The value you specified for config.encoding is " \<commit_msg>Fix the assets regexp for non-js/css files<commit_after>require 'active_support/core_ext/string/encoding'
require 'rails/engine/configuration'

module Rails
  class Application
    class Configuration < ::Rails::Engine::Configuration
      attr_accessor :allow_concurrency, :asset_host, :asset_path, :assets,
                    :cache_classes, :cache_store, :consider_all_requests_local,
                    :dependency_loading, :encoding, :filter_parameters,
                    :force_ssl, :helpers_paths, :logger, :preload_frameworks,
                    :reload_plugins, :secret_token, :serve_static_assets,
                    :static_cache_control, :session_options, :time_zone, :whiny_nils

      attr_writer :log_level

      def initialize(*)
        super
        self.encoding = "utf-8"
        @allow_concurrency           = false
        @consider_all_requests_local = false
        @filter_parameters           = []
        @helpers_paths               = []
        @dependency_loading          = true
        @serve_static_assets         = true
        @static_cache_control        = nil
        @force_ssl                   = false
        @session_store               = :cookie_store
        @session_options             = {}
        @time_zone                   = "UTC"
        @log_level                   = nil
        @middleware                  = app_middleware
        @generators                  = app_generators

        @assets = ActiveSupport::OrderedOptions.new
        @assets.enabled    = false
        @assets.paths      = []
        @assets.precompile = [ /\w+\.(:?!js|css)$/, "application.js", "application.css" ]
        @assets.prefix     = "/assets"

        @assets.js_compressor  = nil
        @assets.css_compressor = nil
      end

      def compiled_asset_path
        "/"
      end

      def encoding=(value)
        @encoding = value
        if "ruby".encoding_aware?
          Encoding.default_external = value
          Encoding.default_internal = value
        else
          $KCODE = value
          if $KCODE == "NONE"
            raise "The value you specified for config.encoding is " \
{'fraction_non_alphanumeric': 0.0868235294117647, 'fraction_numerical': 0.00047058823529411766, 'mean_word_length': 1.7093690248565965, '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': '6808021', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1093, 'n_words': 222}