<commit_before>class Email
  attr_reader :msg
  def initialize(msg)
    @msg = msg
  end

  def dispatch
    Pony.mail(settings)
  end

  private

  def settings
    {
      :to => msg.email,
      :from => "%s <%s>" % [ENV["FROM_NAME"], ENV["FROM_EMAIL"]],
      :subject => msg.subject,
      :body => msg.body,
      :via => :smtp,
        :via_options => {
        :address              => ENV["SMTP_SERVER"],
        :port                 => ENV["SMTP_PORT"],
        :enable_starttls_auto => true,
        :user_name            => ENV["SMTP_LOGIN"],
        :password             => ENV["<PASSWORD>"],
        :authentication       => :login,
      }
    }
  end
end<commit_msg>Set default character set for emails<commit_after>class Email
  attr_reader :msg
  def initialize(msg)
    @msg = msg
  end

  def dispatch
    Pony.mail(settings)
  end

  private

  def settings
    {
      :to => msg.email,
      :from => "%s <%s>" % [ENV["FROM_NAME"], ENV["FROM_EMAIL"]],
      :subject => msg.subject,
      :body => msg.body,
      :charset => "UTF-8",
      :via => :smtp,
        :via_options => {
        :address              => ENV["SMTP_SERVER"],
        :port                 => ENV["SMTP_PORT"],
        :enable_starttls_auto => true,
        :user_name            => ENV["SMTP_LOGIN"],
        :password             => ENV["<PASSWORD>"],
        :authentication       => :login,
      }
    }
  end
end
{'fraction_non_alphanumeric': 0.15021156558533144, 'fraction_numerical': 0.0007052186177715092, 'mean_word_length': 1.75, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 32, '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': '4279970', 'n_tokens_mistral': 471, 'n_tokens_neox': 461, 'n_words': 94}