<commit_before><div class="btn-toolbar float-right">
  <%= link_to 'New', new_design_project_path, class: "btn btn-primary ml-2" %>
</div>

<h1>Design Projects</h1>

<p>
<table class="table table-striped">

  <thead>
    <tr>
      <th class="col-md-2">Name</th>
      <th class="col-md-3">Description</th>
      <th class="col-md-5">Analyses</th>
      <th class="col-md-2">Actions</th>
    </tr>
  </thead>

  <tbody>
    <% @design_projects.each do |project| %>
    <tr>
      <td><%= link_to project.name, mdas_url(design_project: project.id) %></td>
      <td><%= project.description %></td>
      <td><%= link_to_analyses_if_authorized(project) %></td>
      <td>
        <% if policy(project).update? %>
          <%= link_to edit_design_project_path(project), 
            class: "btn btn-sm", title: "Edit" do %>
            <i class="fas fa-edit"></i> 
          <% end %>    
        <% end %>
        <% if policy(project).destroy? %>
          <%= link_to design_project_path(project), method: :delete, data: { title: 'Are you sure?', 
                                                              confirm: "Remove #{project.name} design project?",
                                                              commit: 'Yes',
                                                              cancel: 'No, cancel' }, 
              class: "btn btn-sm text-danger", title:"Delete" do %>
              <i class="fas fa-times"></i> 
          <% end %>    
        <% end %>
      </td>
    </tr>
    <% end %>
  </tbody>
</table>
</p><commit_msg>display project owner<commit_after><div class="btn-toolbar float-right">
  <%= link_to 'New', new_design_project_path, class: "btn btn-primary ml-2" %>
</div>

<h1>Design Projects</h1>

<p>
<table class="table table-striped">

  <thead>
    <tr>
      <th class="col-md-2">Name</th>
      <th class="col-md-1">Owner</th>
      <th class="col-md-3">Description</th>
      <th class="col-md-4">Analyses</th>
      <th class="col-md-2">Actions</th>
    </tr>
  </thead>

  <tbody>
    <% @design_projects.each do |project| %>
    <tr>
      <td><%= link_to project.name, mdas_url(design_project: project.id) %></td>
      <td><%= project.owner.login %></td>
      <td><%= project.description %></td>
      <td><%= link_to_analyses_if_authorized(project) %></td>
      <td>
        <% if policy(project).update? %>
          <%= link_to edit_design_project_path(project), 
            class: "btn btn-sm", title: "Edit" do %>
            <i class="fas fa-edit"></i> 
          <% end %>    
        <% end %>
        <% if policy(project).destroy? %>
          <%= link_to design_project_path(project), method: :delete, data: { title: 'Are you sure?', 
                                                              confirm: "Remove #{project.name} design project?",
                                                              commit: 'Yes',
                                                              cancel: 'No, cancel' }, 
              class: "btn btn-sm text-danger", title:"Delete" do %>
              <i class="fas fa-times"></i> 
          <% end %>    
        <% end %>
      </td>
    </tr>
    <% end %>
  </tbody>
</table>
</p>
{'fraction_non_alphanumeric': 0.17857142857142858, 'fraction_numerical': 0.004699248120300752, 'mean_word_length': 1.6877104377104377, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1445250', 'n_tokens_mistral': 1052, 'n_tokens_neox': 974, 'n_words': 206}