<commit_before><div class="zipcode_show">
  <h2>Welcome <%=@user.email%>. You reside in <span id="state_name"><%=@district%></span></h2><br>
  <p><em>(Address incorrect? Edit your profile <%= link_to "here", edit_user_path, class: "edit-profile-reminder" %>.)</em></p><br>
  <h3>Your polling place</h3>
  <%=@polling_place%>
  <%= render "users/map" %>
  <p><h3>Upcoming elections</h3></p>
  <% @state_elections.each do |election| %>
    <ul class="accordion" data-accordion>
      <li class="accordion-navigation">
        <a href="#panel0"><%=election.election_title%></a>
        <div id="panel0" class="content">
           <p>Election date: <%=election.election_date%> </p>
           <p>Voter registration: <%=election.voter_registration%></p>
           <p>Absentee ballot request: <%=election.absentee_ballot_request%></p>
           <p>Early in-person voting: <%=election.absentee_ballot_return%></p>
           <p>Voter registration: <%=election.early_in_person_voting%></p>
        </div>
      </li>
    </ul>
  <% end %>

  <p><h3>State Voting Information</h3></p>
  <%= render "zipcodes/state_voter_info" %>
  <%= render "zipcodes/soswebsite" %>
</div><commit_msg>added logic to show page for users whose district we can't find<commit_after><div class="zipcode_show">
  <h2>Welcome <%=@user.email%>.
  <% unless @district.include? "Sorry" %>
    You reside in <span id="state_name"><%=@district%></span><br>
  <% end %>
  </h2>

  <p><em>(Address incorrect? Edit your profile <%= link_to "here", edit_user_path, class: "edit-profile-reminder" %>.)</em></p><br>
    <% unless @district.include? "Sorry" %>
      <h3>Your polling place</h3>
      <%=@polling_place%>
      <%= render "users/map" %>
    <% end %>
  <p><h3>Upcoming elections</h3></p>
  <% @state_elections.each do |election| %>
    <ul class="accordion" data-accordion>
      <li class="accordion-navigation">
        <a href="#panel0"><%=election.election_title%></a>
        <div id="panel0" class="content">
           <p>Election date: <%=election.election_date%> </p>
           <p>Voter registration: <%=election.voter_registration%></p>
           <p>Absentee ballot request: <%=election.absentee_ballot_request%></p>
           <p>Early in-person voting: <%=election.absentee_ballot_return%></p>
           <p>Voter registration: <%=election.early_in_person_voting%></p>
        </div>
      </li>
    </ul>
  <% end %>

  <p><h3>State Voting Information</h3></p>
  <%= render "zipcodes/state_voter_info" %>
  <%= render "zipcodes/soswebsite" %>
</div>
{'fraction_non_alphanumeric': 0.2013396375098503, 'fraction_numerical': 0.007880220646178092, 'mean_word_length': 3.6845018450184504, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, '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': '899421', 'n_tokens_mistral': 969, 'n_tokens_neox': 876, 'n_words': 161}