<commit_before><div class="table-wrapper grid">

  <div class="grid-help">
    <% if current_user.able_to_edit?(@event) %>
      <h4>Invite People</h4>
      <p>Who do you want to invite?</p>
    <% else %>
      <h4>Cast Your Vote</h4>
      <p>What options suit you best?</p>
    <% end %>
  </div>

  <% if current_user.able_to_edit?(@event) %>
    <%= render 'add_invitation' %>
  <% end %>

  <div class="options">
    <table class="touch-scrollable">
      <thead>
        <tr>
          <% @suggestions.each do |suggestion| %>
            <th data-id="<%= suggestion.id %>">
              <%= suggestion.primary %>
              <span class="secondary">
                <%= suggestion.secondary %>
              </span>
            </th>
          <% end %>
        </tr>
      </thead>
      <tbody>

        <% if current_user.able_to_edit?(@event) %>
          <tr id="blank">
            <% @suggestions.each do |suggestion| %>
              <td></td>
            <% end %>
          </tr>
        <% end %>

        <% @event.invitees.each do |invitee| %>
          <% if current_user == invitee %>
            <tr class="votable">
          <% else %>
            <tr>
          <% end %>
          <% @suggestions.each do |suggestion| %>
            <% if display_invitee_in_grid?(@event, invitee)  %>
              <% if current_user == invitee %>
                <%= render 'vote', suggestion: suggestion,
                  vote_for_suggestion: current_user.vote_for_suggestion(suggestion) %>
              <% else %>
                <% if invitee.voted_for?(suggestion) %>
                  <td class="voted">
                    <%= image_tag('checkmark.png') %>
                  </td>
                <% else %>
                  <td></td>
                <% end %>
              <% end %>
            <% end %>
          <% end %>
          </tr>
        <% end %>
      </tbody>
      <tfoot>
        <tr>
          <% @suggestions.each do |suggestion| %>
            <td class="vote-count" data-id="<%= suggestion.id %>">
              <%= suggestion.vote_count %>
            </td>
          <% end %>
        </tr>
      </tfoot>
    </table>
  </div>

  <div id="invitees" <% if current_user.able_to_edit?(@event) %>class="blank"<% end %>>
    <table>
      <tbody>

        <% @event.invitees.each do |invitee| %>
          <% if display_invitee_in_grid?(@event, invitee) %>
            <tr class="<% "current-user" if  current_user == invitee %>">

            <% if @event.user_owner?(invitee) %>
              <td class="event-creator">
                <div class="avatar" style="background-image: url(<%= invitee.image %>)"></div>
                <img src="/assets/bullhorn.svg" >
            <% else %>
              <td>
                <div class="avatar" style="background-image: url(<%= invitee.image %>)"></div>
            <% end %>
                <span class="user-name">
                  <%= invitee.name || invitee.email %>
                </span>
              </td>
            </tr>
          <% end %>
        <% end %>
<commit_msg>fixes markup that labels the current user in the UI<commit_after><div class="table-wrapper grid">

  <div class="grid-help">
    <% if current_user.able_to_edit?(@event) %>
      <h4>Invite People</h4>
      <p>Who do you want to invite?</p>
    <% else %>
      <h4>Cast Your Vote</h4>
      <p>What options suit you best?</p>
    <% end %>
  </div>

  <% if current_user.able_to_edit?(@event) %>
    <%= render 'add_invitation' %>
  <% end %>

  <div class="options">
    <table class="touch-scrollable">
      <thead>
        <tr>
          <% @suggestions.each do |suggestion| %>
            <th data-id="<%= suggestion.id %>">
              <%= suggestion.primary %>
              <span class="secondary">
                <%= suggestion.secondary %>
              </span>
            </th>
          <% end %>
        </tr>
      </thead>
      <tbody>

        <% if current_user.able_to_edit?(@event) %>
          <tr id="blank">
            <% @suggestions.each do |suggestion| %>
              <td></td>
            <% end %>
          </tr>
        <% end %>

        <% @event.invitees.each do |invitee| %>
          <% if current_user == invitee %>
            <tr class="votable">
          <% else %>
            <tr>
          <% end %>
          <% @suggestions.each do |suggestion| %>
            <% if display_invitee_in_grid?(@event, invitee)  %>
              <% if current_user == invitee %>
                <%= render 'vote', suggestion: suggestion,
                  vote_for_suggestion: current_user.vote_for_suggestion(suggestion) %>
              <% else %>
                <% if invitee.voted_for?(suggestion) %>
                  <td class="voted">
                    <%= image_tag('checkmark.png') %>
                  </td>
                <% else %>
                  <td></td>
                <% end %>
              <% end %>
            <% end %>
          <% end %>
          </tr>
        <% end %>
      </tbody>
      <tfoot>
        <tr>
          <% @suggestions.each do |suggestion| %>
            <td class="vote-count" data-id="<%= suggestion.id %>">
              <%= suggestion.vote_count %>
            </td>
          <% end %>
        </tr>
      </tfoot>
    </table>
  </div>

  <div id="invitees" <% if current_user.able_to_edit?(@event) %>class="blank"<% end %>>
    <table>
      <tbody>

        <% @event.invitees.each do |invitee| %>
          <% if display_invitee_in_grid?(@event, invitee) %>
            <tr class="<%= 'current-user' if  current_user == invitee %>">

            <% if @event.user_owner?(invitee) %>
              <td class="event-creator">
                <div class="avatar" style="background-image: url(<%= invitee.image %>)"></div>
                <img src="/assets/bullhorn.svg" >
            <% else %>
              <td>
                <div class="avatar" style="background-image: url(<%= invitee.image %>)"></div>
            <% end %>
                <span class="user-name">
                  <%= invitee.name || invitee.email %>
                </span>
              </td>
            </tr>
          <% end %>
        <% end %>

{'fraction_non_alphanumeric': 0.17250282394707117, 'fraction_numerical': 0.0012909472325318702, 'mean_word_length': 1.4267815191855913, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 215, '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': '6589276', 'n_tokens_mistral': 2103, 'n_tokens_neox': 1835, 'n_words': 353}