<commit_before><%- model_class = Party -%>
<div class="page-header">
  <h1><%=t '.title', :default => model_class.model_name.human.pluralize.titleize %></h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
      <th><%= model_class.human_attribute_name(:id) %></th>
      <th><%= model_class.human_attribute_name(:user_id) %></th>
      <th><%= model_class.human_attribute_name(:code_id) %></th>
      <th><%= model_class.human_attribute_name(:role_id) %></th>
      <th><%= model_class.human_attribute_name(:state) %></th>
      <th><%= model_class.human_attribute_name(:created_at) %></th>
      <th><%= t '.actions', :default => t("helpers.actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @parties.each do |party| %>
      <tr>
        <td><%= link_to party.id, party_path(party) %></td>
        <td><%= party.user.name %></td>
        <td><%= party.code.version %></td>
        <td><%= party.role.name %></td>
          <td><%= party.state %></td>
        <td><%=l party.created_at %></td>
        <td>
          <%= link_to t('.edit', :default => t("helpers.links.edit")),
                      edit_party_path(party), :class => 'btn btn-default btn-xs' %>
          <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      party_path(party),
                      :method => :delete,
                      :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                      :class => 'btn btn-xs btn-danger' %>
          <%=  link_to "Propose", controller: "parties", action: "propose", party_id: party.id  %>
          <%=  link_to "Sign", controller: "parties", action: "sign", party_id: party.id  %>
        </td>
      </tr>
    <% end %>
  </tbody><commit_msg>Parties view shows commands for self only<commit_after><%- model_class = Party -%>
<div class="page-header">
  <h1><%=t '.title', :default => model_class.model_name.human.pluralize.titleize %></h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
      <th><%= model_class.human_attribute_name(:id) %></th>
      <th><%= model_class.human_attribute_name(:user_id) %></th>
      <th><%= model_class.human_attribute_name(:code_id) %></th>
      <th><%= model_class.human_attribute_name(:role_id) %></th>
      <th><%= model_class.human_attribute_name(:state) %></th>
      <th><%= model_class.human_attribute_name(:created_at) %></th>
      <th><%= t '.actions', :default => t("helpers.actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @parties.each do |party| %>
      <tr>
        <td><%= link_to party.id, party_path(party) %></td>
        <td><%= party.user.name %></td>
        <td><%= party.code.version %></td>
        <td><%= party.role.name %></td>
          <td><%= party.state %></td>
        <td><%=l party.created_at %></td>
        <td>
          <%= link_to t('.edit', :default => t("helpers.links.edit")),
                      edit_party_path(party), :class => 'btn btn-default btn-xs' %>
          <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      party_path(party),
                      :method => :delete,
                      :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                      :class => 'btn btn-xs btn-danger' %>
          <% if party.user.id == session[:user_id] %>
            <%= link_to "Propose", controller: "parties", action: "propose", party_id: party.id %>
            <%= link_to "Sign", controller: "parties", action: "sign", party_id: party.id %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
{'fraction_non_alphanumeric': 0.21898803046789989, 'fraction_numerical': 0.001088139281828074, 'mean_word_length': 2.508587786259542, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 151, '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': '5155315', 'n_tokens_mistral': 1303, 'n_tokens_neox': 1238, 'n_words': 243}