<commit_before>class ApplicationMailer < ActionMailer::Base
  helper MailerHelper

  attr_accessor :template_name

  def mail_markdown(options)
    mail options do |format|
      markdown_string = render_to_string(template_name || action_name, formats: :md)
      format.text { render plain: markdown_string }
      format.html { render body: Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(markdown_string)}
    end
  end
end<commit_msg>HTML first<commit_after>class ApplicationMailer < ActionMailer::Base
  helper MailerHelper

  attr_accessor :template_name

  def mail_markdown(options)
    mail options do |format|
      markdown_string = render_to_string(template_name || action_name, formats: :md)
      format.html { render body: Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(markdown_string)}
      format.text { render plain: markdown_string }
    end
  end
end
{'fraction_non_alphanumeric': 0.08773903262092239, 'fraction_numerical': 0.0, 'mean_word_length': 4.933333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6624963', 'n_tokens_mistral': 276, 'n_tokens_neox': 261, 'n_words': 58}