<commit_before><tr class="hoverrow" id="user-<%= project.dom_id %>">
  <td>
    <%= h((if defined?(name) then name end) || project.name) %>
  </td>
<%
   user_granted = project.users.include? @user
   perm = @user.project_permissions.find(:first, :conditions => ["project_id=?", project.id])
   perms = ProjectPermission.permissions


#-----------------
# user owns this project
#-----------------

 if @user == project.owner %>
  <td>
    <%= image_tag("user_suit.png", :title => "Can't remove <b>project creator</b>!".html_safe, :class => "tooltip") %>
  </td>
  <% for p in perms %>
    <td>
      <%= image_tag("user_suit.png", :title => "Can't remove the <b>project creator</b>!".html_safe, :class => "tooltip") if perm.can? p %>
      <%= image_tag("delete.png", :title => _("Can't remove the <b>project creator</b>!").html_safe, :class => "tooltip") unless perm.can? p %>
    </td>
  <% end 
  

#-----------------
# user has access
#-----------------
elsif user_granted %>
  <td>
    <%= link_to image_tag("tick.png", :title => _("Remove all access for <b>%s</b>?", escape_twice(@user.name)).html_safe, :class => "tooltip"),
    :update => 'permission_list',
    :url => { :controller => 'projects', :action => 'ajax_remove_permission', :user_id => @user.id, :id => project.id, :user_edit => user_edit },
    :loading => "showProgress();",
    :complete => "hideProgress();",
    :remote => true 
    %>
  </td>

  <% for p in perms %>
    <td>
      <%= link_to image_tag("tick.png", :title => _("Remove %s access for <b>%s</b>?", p, escape_twice(@user.name)).html_safe, :class => "tooltip"),
      :update => 'permission_list',
      :url => { :controller => 'projects', :action => 'ajax_remove_permission', :user_id => @user.id, :id => project.id, :perm => p, :user_edit => user_edit },
      :loading => "showProgress();",
      :complete => "hideProgress();".<commit_msg>Fix error in previous merge from master.<commit_after><tr class="hoverrow" id="user-<%= project.dom_id %>">
  <td>
    <%= h((if defined?(name) then name end) || project.name) %>
  </td>
<%
   user_granted = project.users.include? @user
   perm = @user.project_permissions.find(:first, :conditions => ["project_id=?", project.id])
   perms = ProjectPermission.permissions


#-----------------
# user owns this project
#-----------------

 if @user == project.owner %>
  <td>
    <%= image_tag("user_suit.png", :title => "Can't remove <b>project creator</b>!".html_safe, :class => "tooltip") %>
  </td>
  <% for p in perms %>
    <td>
      <%= image_tag("user_suit.png", :title => "Can't remove the <b>project creator</b>!".html_safe, :class => "tooltip") if perm.can? p %>
      <%= image_tag("delete.png", :title => _("Can't remove the <b>project creator</b>!").html_safe, :class => "tooltip") unless perm.can? p %>
    </td>
  <% end 
  

#-----------------
# user has access
#-----------------
elsif user_granted %>
  <td>
    <%= link_to image_tag("tick.png", :title => _("Remove all access for <b>%s</b>?", escape_twice(@user.name)).html_safe, :class => "tooltip"),
    :update => 'permission_list',
    :url => { :controller => 'projects', :action => 'ajax_remove_permission', :user_id => @user.id, :id => project.id, :user_edit => user_edit },
    :loading => "showProgress();",
    :complete => "hideProgress();",
    :remote => true 
    %>
  </td>

  <% for p in perms %>
    <td>
      <%= link_to image_tag("tick.png", :title => _("Remove %s access for <b>%s</b>?", p, escape_twice(@user.name)).html_safe, :class => "tooltip"),
      :update => 'permission_list',
      :url => { :controller => 'projects', :action => 'ajax_remove_permission', :user_id => @user.id, :id => project.id, :perm => p, :user_edit => user_edit },
      :loading => "showProgress();",
      :complete => "hideProgress();",
{'fraction_non_alphanumeric': 0.2458498023715415, 'fraction_numerical': 0.0, 'mean_word_length': 3.260381593714927, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 125, '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': '2469974', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1272, 'n_words': 291}