<commit_before># initializers/mailjet.rb
Mailjet.configure do |config|
  config.api_key = ENV['MAILJET_API_KEY']
  config.secret_key = ENV['MAILJET_API_SECRET']
  config.default_from = '<EMAIL>'
end<commit_msg>Inherit mail default from env config<commit_after># initializers/mailjet.rb
Mailjet.configure do |config|
  config.api_key = ENV['MAILJET_API_KEY']
  config.secret_key = ENV['MAILJET_API_SECRET']

  mail_host = Rails.application.config.action_mailer.default_url_options[:host]
  domain = URI.parse(mail_host).domain rescue 'covoiturage-libre.fr'
  config.default_from = "noreply@#{domain}"
end
{'fraction_non_alphanumeric': 0.12106135986733002, 'fraction_numerical': 0.0, 'mean_word_length': 6.6455696202531644, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '901689', 'n_tokens_mistral': 223, 'n_tokens_neox': 223, 'n_words': 34}