<commit_before>require_relative "inbox"

class EmailVerifier
  attr_reader :missing_alerts, :emailed_alerts, :acknowledged_alerts

  ACKNOWLEDGED_EMAIL_CONTENTS = [
    %{subject:"Imatinib 400mg Capsules (3 x 10)  PL 36390/0180 : Company-led Drug Alert"},
    %(subject:"Field Safety Notice - 17 September to  21 September"),
    %{subject:"Various trauma guide wires – risk of infection due to packaging failure (MDA/2018/032)"},
    %{subject:"SureSigns VS & VM patient monitors and Viewing stations manufactured before May 2018: risk of batteries overheating or igniting (MDA/2018/031)"},
    %{subject:"Flex connectors in Halyard Closed Suction Kits – risk of interruption of ventilation (MDA/2018/030)"},
    %(subject:"Field safety notices - 26 to 30 November 2018"),
    %(subject:"Field Safety Notice - 19 November to 23 November 2018"),
    %{subject:"Implantable cardiac pacemakers: specific brands of dual chamber pacemakers - risk of syncope due to pause in pacing therapy (MDA/2019/008)"},
    %{subject:"Drug Alert Class 4: Paracetamol Infusion, Accord. (MDR 07-02/19)"},
    %(subject:"Field Safety Notice: 8 to 12 April 2019"),<commit_msg>Silence false alarm for medical safety alert<commit_after>require_relative "inbox"

class EmailVerifier
  attr_reader :missing_alerts, :emailed_alerts, :acknowledged_alerts

  ACKNOWLEDGED_EMAIL_CONTENTS = [
    %{subject:"Philips sterilizable defibrillator internal paddles (specific models) – may fail to deliver therapy if pre-use checks are not followed (MDA/2020/022)"},
    %{subject:"Imatinib 400mg Capsules (3 x 10)  PL 36390/0180 : Company-led Drug Alert"},
    %(subject:"Field Safety Notice - 17 September to  21 September"),
    %{subject:"Various trauma guide wires – risk of infection due to packaging failure (MDA/2018/032)"},
    %{subject:"SureSigns VS & VM patient monitors and Viewing stations manufactured before May 2018: risk of batteries overheating or igniting (MDA/2018/031)"},
    %{subject:"Flex connectors in Halyard Closed Suction Kits – risk of interruption of ventilation (MDA/2018/030)"},
    %(subject:"Field safety notices - 26 to 30 November 2018"),
    %(subject:"Field Safety Notice - 19 November to 23 November 2018"),
    %{subject:"Implantable cardiac pacemakers: specific brands of dual chamber pacemakers - risk of syncope due to pause in pacing therapy (MDA/2019/008)"},
    %{subject:"Drug Alert Class 4: Paracetamol Infusion, Accord. (MDR 07-02/19)"},
    %(subject:"Field Safety Notice: 8 to 12 April 2019"),
{'fraction_non_alphanumeric': 0.10163411717815862, 'fraction_numerical': 0.06735751295336788, 'mean_word_length': 4.810185185185185, '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': '880934', 'n_tokens_mistral': 899, 'n_tokens_neox': 710, 'n_words': 279}