<commit_before>Rails.application.configure do
  # Settings specified here will take precedence over those in config/application.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 web server 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.action_mailer.perform_deliveries = true

  config.action_mailer.default_url_options = { host: 'localhost:3000' }
  if ENV['EMAIL_SERVER'].present?
    mail_port=587
    if ENV['EMAIL_PORT'].present? && ENV['EMAIL_PORT'].length > 0
      mail_port=ENV['EMAIL_PORT']
    end
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      address: ENV['EMAIL_SERVER'],
      domain: ENV['EMAIL_DOMAIN'],
      port: mail_port
    }
    if ENV['EMAIL_USERNAME'].present? && ENV['EMAIL_USERNAME'].length > 0
      config.action_mailer.smtp_settings[:user_name] = ENV['EMAIL_USERNAME']
      config.action_mailer.smtp_settings[:password] = ENV['<PASSWORD>']
      config.action_mailer.smtp_settings[:authentication] = :login
    end
  end

  # Run embedded solr.
  # Set this to false if you're running your own solr instance in dev
  config.run_solr = true

  # Don't care if the mailer can't send.
  config.action_mailer.raise_delivery_errors = true<commit_msg>Variable to opt out of embedded solr in dev mode<commit_after>Rails.application.configure do
  # Settings specified here will take precedence over those in config/application.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 web server 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.action_mailer.perform_deliveries = true

  config.action_mailer.default_url_options = { host: 'localhost:3000' }
  if ENV['EMAIL_SERVER'].present?
    mail_port=587
    if ENV['EMAIL_PORT'].present? && ENV['EMAIL_PORT'].length > 0
      mail_port=ENV['EMAIL_PORT']
    end
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      address: ENV['EMAIL_SERVER'],
      domain: ENV['EMAIL_DOMAIN'],
      port: mail_port
    }
    if ENV['EMAIL_USERNAME'].present? && ENV['EMAIL_USERNAME'].length > 0
      config.action_mailer.smtp_settings[:user_name] = ENV['EMAIL_USERNAME']
      config.action_mailer.smtp_settings[:password] = ENV['<PASSWORD>']
      config.action_mailer.smtp_settings[:authentication] = :login
    end
  end

  # Run embedded solr.
  # Set this to false if you're running your own solr instance in dev
  config.run_solr = true
  config.run_solr = false if ENV['RUN_SOLR'] == 'false'

  # Don't care if the mailer can't send.
  config.action_mailer.raise_delivery_errors = true
{'fraction_non_alphanumeric': 0.09033423667570009, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 3.9730538922155687, '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': '108112', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1019, 'n_words': 277}