<commit_before>  <table class="table">
    <thead>
      <p> head <p>
      <tr>
        <th>Avatar</th>
        <th>Username</th>
        <th>Country</th>
        <th> Native Language</th>
        <th> Chat </th>
      </tr>
    </thead>
    <tbody>
      <% @available_users.each do |user| %>
        <tr>
          <td> <img src= <%= user.avatar_url %> alt = "avatar"  ></td>
          <td> <%= user.username %></td>
          <td><%= user.country.try(:name) %></td>
          <td> <%= user.native_language.name %> </td>
          <td><%= form_for @invitation, url: create_invitation_path, method: 'post', remote: true do |f| %>
            <%= f.hidden_field :recipient_id, value: user.id %>
            <%= f.hidden_field :sender_id, value: current_user.id %>
            <%= f.submit "Speak!", class: 'btn btn-default' %>
          <% end %>
          </td>
          <!-- <td> <span class = "btn btn-default " > <%= link_to "Speak!", create_invitation_path(sender_id: current_user.id, recipient_id: user.id), method: "POST" %></span></td> -->
        </tr>
      <% end %>
    </tbody>
  </table>
  <script>
  $(function() {
    $('.new_invitation').on('submit', function(e) {
      e.preventDefault();
      var target = $(e.target);
      var recipientId = parseInt(target.find('#invitation_recipient_id').val());
      var senderId = parseInt(target.find('#invitation_sender_id').val());
      $.ajax({
        url: this.action,
        method: this.method,
        data: {invitation: {recipient_id: recipientId, sender_id: senderId}},
        dataType: "json"
      })
      .done(function(data) {
        $('.navbar-default').after('<p class="notice">'+ data + '</p>')
      })
      .fail(function(err) {
        console.log(err);
      });
    });<commit_msg>Bind globe button to toggle user notification list<commit_after>  <table class="table">
    <thead>
      <p> head <p>
      <tr>
        <th>Avatar</th>
        <th>Username</th>
        <th>Country</th>
        <th> Native Language</th>
        <th> Chat </th>
      </tr>
    </thead>
    <tbody>
      <% @available_users.each do |user| %>
        <tr>
          <td> <img src= <%= user.avatar_url %> alt = "avatar"  ></td>
          <td> <%= user.username %></td>
          <td><%= user.country.try(:name) %></td>
          <td> <%= user.native_language.name %> </td>
          <td><%= form_for @invitation, url: create_invitation_path, method: 'post', remote: true do |f| %>
            <%= f.hidden_field :recipient_id, value: user.id %>
            <%= f.hidden_field :sender_id, value: current_user.id %>
            <%= f.submit "Speak!", class: 'btn btn-default' %>
          <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <script>
  $(function() {
    $('.new_invitation').on('submit', function(e) {
      e.preventDefault();
      var target = $(e.target);
      var recipientId = parseInt(target.find('#invitation_recipient_id').val());
      var senderId = parseInt(target.find('#invitation_sender_id').val());
      $.ajax({
        url: this.action,
        method: this.method,
        data: {invitation: {recipient_id: recipientId, sender_id: senderId}},
        dataType: "json"
      })
      .done(function(data) {
        $('.navbar-default').after('<p class="notice">'+ data + '</p>')
      })
      .fail(function(err) {
        console.log(err);
      });
    });
    $('.notifications').on('click', function(e) {
      e.preventDefault();
      $('#notification-list').toggle();
    })
{'fraction_non_alphanumeric': 0.19886363636363635, 'fraction_numerical': 0.0, 'mean_word_length': 2.195099818511797, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '6794071', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1156, 'n_words': 233}