<commit_before>begin
  if Rails.application.routes.default_url_options[:host].blank? and AppSetting.default_host_exists?
    host = AppSetting.default_host
    Rails.logger.info "setting default_host to #{host}"
    Rails.application.routes.default_url_options[:host] = host
  end
rescue
  puts "failed to set default_host, reason: #{$!}"
end<commit_msg>dont show the actual error message on a failing default_host check<commit_after>begin
  if Rails.application.routes.default_url_options[:host].blank? and AppSetting.default_host_exists?
    host = AppSetting.default_host
    Rails.logger.info "setting default_host to #{host}"
    Rails.application.routes.default_url_options[:host] = host
  end
rescue
  Rails.logger.error "[ERROR] Failed to set default_host. This is expected if this is the very first app deploy."
end
{'fraction_non_alphanumeric': 0.09101941747572816, 'fraction_numerical': 0.0, 'mean_word_length': 5.203007518796992, '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': '3204950', 'n_tokens_mistral': 248, 'n_tokens_neox': 249, 'n_words': 66}