<commit_before>bioguide: B001260
contact_form:
  method: post
  action: /email-me/
  steps:
    - visit: "https://buchanan.house.gov/email-me"
    - fill_in:
        - name: firstname
          selector: "#req_firstname"
          value: $NAME_FIRST
          required: true
        - name: lastname
          selector: "#req_lastname"
          value: $NAME_LAST
          required: true
        - name: street
          selector: "#req_street"
          value: $ADDRESS_STREET
          required: true
        - name: street2
          selector: "#address2"
          value: $ADDRESS_STREET_2
          required: false
        - name: city
          selector: "#req_city"
          value: $ADDRESS_CITY
          required: true
        - name: zipcode
          selector: "#req_zip"
          value: $ADDRESS_ZIP5
          required: true
        - name: zipfour
          selector: "#zip4"
          value: $ADDRESS_ZIP4
          required: true
        - name: emailaddress
          selector: "#req_email"
          value: $EMAIL
          required: true
        - name: message
          selector: "#req_message"
          value: $MESSAGE
          required: true
    - select:
        - name: prefix
          selector: "#req_prefix"
          value: $NAME_PREFIX
          required: true
          options:
            Mr.: "Mr. "
            Mrs.: Mrs.
            Ms.: Ms.
            Miss: Miss
            Dr.: Dr.
            Hon.: Hon.
            Rev.: Rev.
            Rabbi: Rabbi
        - name: issue
          selector: "#req_issue"
          value: $TOPIC
          required: true
          options:
            Agriculture: AGR
            Defense: DEF
            Education: EDUC
            Energy: ENE
            Environment: ENV
            Foreign Relations: FR
            Government Affairs: GOVT
            Healthcare: HE
            Medicare: HE_MCARE
            Homeland Security: HOM
            Immigration: IMM
            Iraq: IRAQ
            Judiciary: JUD
            Labor and Workforce: LAB
            Service Academy: ACAD
            Social Security: SSEC
            Tours - Capitol: TOURS
            Tours - White House: WHVIS
            Transportation: TRANS
            Trade: TRD
            " Veterans Issues": VET
            "Women's Issues": WOMEN
            Other: No Issue Code
    - click_on:
        - value: Send Email
          selector: "#submitButton"
    - find:
        - selector: "h1"
          value: "TH<NAME>"
  success:
    headers:
      status: 200
    body:
      contains: Your message has been successfully submitted.<commit_msg>Contact form changed for B001260<commit_after>bioguide: B001260
contact_form:
  method: post
  action: "/htbin/formproc_za/zip-auth.txt%26form%3D/contact/email-me/email-me-zip-authenticated%26nobase%26fpGetVer%3D2"
  steps:
    - visit: "http://buchanan.house.gov/contact"
    - fill_in:
        - name: required-zip5
          selector: "#required-zip5"
          value: $ADDRESS_ZIP5
          required: true
        - name: zip4
          selector: "#zip4"
          value: $ADDRESS_ZIP4
          required: false
    - click_on:
        - value: Go To Next Step
          selector: "#submit"
    - fill_in:
        - name: prefix
          selector: "#prefix"
          value: $NAME_PREFIX
          required: false
        - name: required-first
          selector: "#required-first"
          value: $NAME_FIRST
          required: true
        - name: required-last
          selector: "#required-last"
          value: $NAME_LAST
          required: true
        - name: required-address
          selector: "#required-address"
          value: $ADDRESS_STREET
          required: true
        - name: address2
          selector: "#address2"
          value: $ADDRESS_STREET_2
          required: false
        - name: required-city
          selector: "#required-city"
          value: $ADDRESS_CITY
          required: true
        - name: required-valid-email
          selector: "#required-valid-email"
          value: $EMAIL
          required: true
        - name: required-subject
          selector: "#required-subject"
          value: $SUBJECT
          required: true
        - name: required-message
          selector: "#required-message"
          value: $MESSAGE
          required: true
    - select:
        - name: required-issue
          selector: "#required-issue"
          value: $TOPIC
          required: true
          options:
            Agriculture: AGR
            Defense: DEF
            Education: EDU
            Energy: ENE
            Environment: ENV
            Foreign Relations: FR
            Government Affairs: GOV
            Healthcare: HEA
            Medicare: HE_MCARE
            Homeland Security: HOM
            Immigration: IMM
            Iraq: IRAQ
            Judiciary: JUD
            Labor and Workforce: LAB
            Service Academy: ACAD
            Social Security: SSEC
            Tours - Capital: TOURS
            Tours - White House: WHVIS
            Transportation: TRA
            Trade: TRADE
            Veterans Issues: VET
            "Women's Issues": WOMEN
            Other Issues: OTHER
    - click_on:
        - value: Send Email
          selector: "#submit"
    - find:
        - value: The following information has been submitted
          selector: "p"
  success:
    headers:
      status: 200
    body:
      contains: The following information has been submitted
{'fraction_non_alphanumeric': 0.07894736842105263, 'fraction_numerical': 0.008954678362573099, 'mean_word_length': 1.3754340277777777, 'pattern_counts': {'":': 3, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '3669057', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1453, 'n_words': 409}