<commit_before># Put this in config/application.rb
require File.expand_path('../boot', __FILE__)
CONFIG = {}
require File.expand_path('../default_config', __FILE__)
require File.expand_path('../local_config', __FILE__)

require 'rails/all'

Bundler.require(:default, Rails.env) if defined?(Bundler)

module Moebooru
  class Application < Rails::Application
    config.autoload_paths += [config.root.join('lib')]
    config.encoding = 'utf-8'

    # Add additional load paths for your own custom dirs
    config.autoload_paths += ["#{Rails.root}/app/models/post", "#{Rails.root}/app/models/post/image_store"]

    # Force all environments to use the same logger level
    # (by default production uses :info, the others :debug
    #config.log_level = :info

    if CONFIG['enable_caching']
      config.cache_store = :dalli_store, CONFIG['memcache_servers'], { :namespace => CONFIG['app_name'] }
    else
      config.cache_store = :file_store, Rails.root.join('tmp/cache')
    end

    # Activate observers that should always be running
    config.active_record.observers = :user_record_observer

    # Make Active Record use UTC-base instead of local time
    # config.active_record.default_timezone = :utc

    # Use Active Record's schema dumper instead of SQL when creating the test database
    # (enables use of different database adapters for development and test environments)
    config.active_record.schema_format = :sql

    config.action_mailer.smtp_settings = { :openssl_verify_mode => 'none', :domain => CONFIG['server_host'] }
    config.filter_parameters += [:password]
    config.threadsafe!
  end
end<commit_msg>Import comments(?) from original rails 3 application.rb.<commit_after># Put this in config/application.rb
require File.expand_path('../boot', __FILE__)
CONFIG = {}
require File.expand_path('../default_config', __FILE__)
require File.expand_path('../local_config', __FILE__)

require 'rails/all'

Bundler.require(:default, Rails.env) if defined?(Bundler)

module Moebooru
  class Application < Rails::Application
    config.autoload_paths += [config.root.join('lib')]
    config.encoding = 'utf-8'

    # Add additional load paths for your own custom dirs
    config.autoload_paths += ["#{Rails.root}/app/models/post", "#{Rails.root}/app/models/post/image_store"]

    # Force all environments to use the same logger level
    # (by default production uses :info, the others :debug
    #config.log_level = :info

    if CONFIG['enable_caching']
      config.cache_store = :dalli_store, CONFIG['memcache_servers'], { :namespace => CONFIG['app_name'] }
    else
      config.cache_store = :file_store, Rails.root.join('tmp/cache')
    end

    # Activate observers that should always be running
    config.active_record.observers = :user_record_observer

    # Make Active Record use UTC-base instead of local time
    # config.active_record.default_timezone = :utc

    # Use Active Record's schema dumper instead of SQL when creating the test database
    # (enables use of different database adapters for development and test environments)
    config.active_record.schema_format = :sql

    config.action_mailer.smtp_settings = { :openssl_verify_mode => 'none', :domain => CONFIG['server_host'] }
    config.filter_parameters += [:password]
    config.threadsafe!

    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    # config.i18n.default_locale = :de
  end
end
{'fraction_non_alphanumeric': 0.11586402266288952, 'fraction_numerical': 0.00198300283286119, 'mean_word_length': 4.17741935483871, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1509989', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1043, 'n_words': 282}