<commit_before>Rails.application.configure do
  # Settings specified here will take precedence over those in config/environment.rb

  # In the development environment your application's code is reloaded on
  # every request.  This slows down response time but is perfect for development
  # since you don't have to restart the webserver when you make code changes.
  config.cache_classes = false

  # Do not eager load code on boot.
  config.eager_load = false

  # Show full error reports and disable caching.
  config.consider_all_requests_local       = true
  config.action_controller.perform_caching = false

  config.cache_store = :memory_store, { size: 512 * (1024 ** 3) } # 512 Mb
  # config.cache_store = :dalli_store
  # config.cache_store = :file_store, '/tmp/cache'

  # Don't care if the mailer can't send
  config.action_mailer.raise_delivery_errors = false

  # Mail options for Devise.
  config.action_mailer.default_url_options = {
    host: ENV['ACTION_MAILER_HOST'] || 'etengine.dev'
  }

  # Print deprecation notices to the Rails logger.
  config.active_support.deprecation = :log

  # Raise an error on page load if there are pending migrations
  config.active_record.migration_error = :page_load

  # Debug mode disables concatenation and preprocessing of assets.
  # This option may cause significant delays in view rendering with a large
  # number of complex assets.
  config.assets.debug = true

  # Suppress logger output for asset requests.
  config.assets.quiet = true

  # Raises error for missing translations
  # config.action_view.raise_on_missing_translations = true

  require_relative '../../lib/gc_stats'
  config.middleware.use GCStats

  # Use an evented file watcher to asynchronously detect changes in source code,
  # config.file_watcher = ActiveSupport::EventedFileUpdateChecker

  config.after_initialize do
    Etsource::Reloader.start! if APP_CONFIG[:etsource_live_reload]
  end
end<commit_msg>Only use ETSource reloader when running as server<commit_after>Rails.application.configure do
  # Settings specified here will take precedence over those in config/environment.rb

  # In the development environment your application's code is reloaded on
  # every request.  This slows down response time but is perfect for development
  # since you don't have to restart the webserver when you make code changes.
  config.cache_classes = false

  # Do not eager load code on boot.
  config.eager_load = false

  # Show full error reports and disable caching.
  config.consider_all_requests_local       = true
  config.action_controller.perform_caching = false

  config.cache_store = :memory_store, { size: 512 * (1024 ** 3) } # 512 Mb
  # config.cache_store = :dalli_store
  # config.cache_store = :file_store, '/tmp/cache'

  # Don't care if the mailer can't send
  config.action_mailer.raise_delivery_errors = false

  # Mail options for Devise.
  config.action_mailer.default_url_options = {
    host: ENV['ACTION_MAILER_HOST'] || 'etengine.dev'
  }

  # Print deprecation notices to the Rails logger.
  config.active_support.deprecation = :log

  # Raise an error on page load if there are pending migrations
  config.active_record.migration_error = :page_load

  # Debug mode disables concatenation and preprocessing of assets.
  # This option may cause significant delays in view rendering with a large
  # number of complex assets.
  config.assets.debug = true

  # Suppress logger output for asset requests.
  config.assets.quiet = true

  # Raises error for missing translations
  # config.action_view.raise_on_missing_translations = true

  require_relative '../../lib/gc_stats'
  config.middleware.use GCStats

  # Use an evented file watcher to asynchronously detect changes in source code,
  # config.file_watcher = ActiveSupport::EventedFileUpdateChecker

  config.after_initialize do
    # Start ETSource reloader only when running as a server (i.e., not as a rake
    # task).
    if (defined?(Rails::Server) || defined?(Puma)) &&
          APP_CONFIG[:etsource_live_reload]
      Etsource::Reloader.start!
    end
  end
end
{'fraction_non_alphanumeric': 0.07008086253369272, 'fraction_numerical': 0.005390835579514825, 'mean_word_length': 3.971985383678441, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5305203', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1152, 'n_words': 398}