<commit_before><div id="your-groups-div" class="group-tab">
  <h2>Your groups</h2>
  <% if @person.memberships.length == 0 %>
  <p>You are not a member of any groups.</p>
  <% else %>
  <ul>
    <% @person.memberships.each do |membership| %>
    <li><%= group_link(membership.group) %>
      (<%= link_to "leave this group", :controller => :membership, :action => :leave, :id => membership.id %>)
    </li>
    <% end %>
  </ul>
  <% end %>
</div>

<hr />
<div id="create-group-div" class="group-tab">
  <h2>Create a new group</h2>
  <% form_tag :controller => "membership", :action => :create_group do |form| %>
  <%= text_field_tag "group_name" %>
  <p><%= submit_tag "Create group" %></p>
  <% end %>
</div>

<hr />
<div id="find-group-div" class="group-tab">
  <h2>Find an existing group</h2>
  <% form_tag :controller => "membership", :action => :find_group do |form| %>
  <%= text_field_tag "group_name" %>
  <p><%= submit_tag "Find group" %></p>
  <% end %>
</div>

<hr />
<div id="manage-groups-div" class="group-tab">
  <h2>Groups you manage</h2>
  <% if @person.memberships.length == 0 %>
  <p>You are not a member of any groups.</p>
  <% else %>
  <ul>
    <% @person.administrated_groups.each do |group| %>
    <li><%= grop_link(group) %></li>
    <ul>
      <% group.memberships.each do |membership| %>
      <li>
            <%= person_link(membership.person) -%>

        <% if membership.status == 'pending' %>
        (<%= link_to "approve", :controller => :membership, :action => :approve_membership, :id => membership.id %>)
        <% end %>

        <% if membership.person != @person %>
        (<%= link_to "remove", :controller => :membership, :action => :leave, :id => membership.id %>)
        <% if membership.is_administrator? %>
        (<%= link_to "remove administrator", :controller => :membership, :action => :remove_administrator, :id => membership.id %>)
        <% else %>
        (<%= link_to "make administrator", :controller => :membership, :action => :make_administrator, :id => membership.id %>)
        <% end %>
        <% end %><commit_msg>Fixed typo ("grop_link" -> "group_link")<commit_after><div id="your-groups-div" class="group-tab">
  <h2>Your groups</h2>
  <% if @person.memberships.length == 0 %>
  <p>You are not a member of any groups.</p>
  <% else %>
  <ul>
    <% @person.memberships.each do |membership| %>
    <li><%= group_link(membership.group) %>
      (<%= link_to "leave this group", :controller => :membership, :action => :leave, :id => membership.id %>)
    </li>
    <% end %>
  </ul>
  <% end %>
</div>

<hr />
<div id="create-group-div" class="group-tab">
  <h2>Create a new group</h2>
  <% form_tag :controller => "membership", :action => :create_group do |form| %>
  <%= text_field_tag "group_name" %>
  <p><%= submit_tag "Create group" %></p>
  <% end %>
</div>

<hr />
<div id="find-group-div" class="group-tab">
  <h2>Find an existing group</h2>
  <% form_tag :controller => "membership", :action => :find_group do |form| %>
  <%= text_field_tag "group_name" %>
  <p><%= submit_tag "Find group" %></p>
  <% end %>
</div>

<hr />
<div id="manage-groups-div" class="group-tab">
  <h2>Groups you manage</h2>
  <% if @person.memberships.length == 0 %>
  <p>You are not a member of any groups.</p>
  <% else %>
  <ul>
    <% @person.administrated_groups.each do |group| %>
    <li><%= group_link(group) %></li>
    <ul>
      <% group.memberships.each do |membership| %>
      <li>
            <%= person_link(membership.person) -%>

        <% if membership.status == 'pending' %>
        (<%= link_to "approve", :controller => :membership, :action => :approve_membership, :id => membership.id %>)
        <% end %>

        <% if membership.person != @person %>
        (<%= link_to "remove", :controller => :membership, :action => :leave, :id => membership.id %>)
        <% if membership.is_administrator? %>
        (<%= link_to "remove administrator", :controller => :membership, :action => :remove_administrator, :id => membership.id %>)
        <% else %>
        (<%= link_to "make administrator", :controller => :membership, :action => :make_administrator, :id => membership.id %>)
        <% end %>
        <% end %>
{'fraction_non_alphanumeric': 0.2111534795042898, 'fraction_numerical': 0.004766444232602479, 'mean_word_length': 3.2308467741935485, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 176, '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': '2210264', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1433, 'n_words': 331}