<commit_before>module CommonwealthVlrEngine
  module Notifier
    extend ActiveSupport::Concern

    def feedback(details)

      @message = details[:message]
      @topic = details[:topic]
      @email = details[:email]
      @name = details[:name]
      @recipient = route_email(details[:topic])

      mail(:to => @recipient,
           :from => t('blacklight.email.record_mailer.name') + ' <' + t('blacklight.email.record_mailer.email') + '>',
           :subject => t('blacklight.feedback.text.subject'))

    end

    private

    def route_email(topic)
      if topic == t('blacklight.feedback.form.topic.options.repro')
        recipient_email = CONTACT_EMAILS['image_requests']
      else
        recipient_email = CONTACT_EMAILS['site_admin']
      end
      recipient_email
    end



  end
end<commit_msg>allow an identifier to be passed to feedback email subject line<commit_after>module CommonwealthVlrEngine
  module Notifier
    extend ActiveSupport::Concern

    def feedback(details)

      @message = details[:message]
      @topic = details[:topic]
      @email = details[:email]
      @name = details[:name]
      @recipient = route_email(details[:topic])

      mail(:to => @recipient,
           :from => t('blacklight.email.record_mailer.name') + ' <' + t('blacklight.email.record_mailer.email') + '>',
           :subject => t('blacklight.feedback.text.subject', identifier: Time.now.strftime('%s')))

    end

    private

    def route_email(topic)
      if topic == t('blacklight.feedback.form.topic.options.repro')
        recipient_email = CONTACT_EMAILS['image_requests']
      else
        recipient_email = CONTACT_EMAILS['site_admin']
      end
      recipient_email
    end



  end
end
{'fraction_non_alphanumeric': 0.12260313771063336, 'fraction_numerical': 0.0, 'mean_word_length': 3.013986013986014, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5512031', 'n_tokens_mistral': 535, 'n_tokens_neox': 513, 'n_words': 95}