<commit_before><div class="row wrapper border-bottom white-bg page-heading">
  <div class="col-sm-4">
    <h2>Projects</h2>
    <ol class="breadcrumb">
      <li>
        <a href="#">Plan</a>
      </li>
      <li class="active">
        <strong>Projects</strong>
      </li>
    </ol>
  </div>
  <div class="col-sm-8">
    <div class="title-action">
      <%= link_to 'New Project', new_project_path, :class => "btn btn-primary"%>
    </div>
  </div>
</div>

<div class="row">
  <div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
      <div class="ibox-content">
        <table class="table table-striped cats-datatable">
          <thead>
            <tr>
              <th>Project code</th>
              <th>Commodity</th>
              <th>Commodity source</th>
              <th>Organization</th>
              <th>Amount</th>
              <th>Unit of measure</th>
              <th>Date</th>
              <th>Actions</th>
            </tr>
          </thead>

          <tbody>
            <% @projects.each do |project| %>
            <tr>
              <td><%= project.project_code %></td>
              <td><%= Commodity.find(project.commodity_id).name%></td>
              <td><%= project.commodity_source%></td>
              <td><%= Organization.find(project.organization_id).name%></td>
              <td><%= project.amount%></td>
              <td><%= UnitOfMeasure.find(project.unit_of_measure_id).name%></td>
              <td><%= project.publish_date.strftime('%d-%b-%Y')%></td>
              <td>
                <%= link_to 'Edit', edit_project_path(project) %>
                &middot;
                <%= link_to 'Delete', project, method: :delete, data: { confirm: 'Are you sure?' } %>
              </td>
            </tr>
            <% end %>
          </tbody>
        </table>

      </div>
    </div>
  </div>
</div>
<commit_msg>Fix bug in project list for items with no publish date<commit_after><div class="row wrapper border-bottom white-bg page-heading">
  <div class="col-sm-4">
    <h2>Projects</h2>
    <ol class="breadcrumb">
      <li>
        <a href="#">Plan</a>
      </li>
      <li class="active">
        <strong>Projects</strong>
      </li>
    </ol>
  </div>
  <div class="col-sm-8">
    <div class="title-action">
      <%= link_to 'New Project', new_project_path, :class => "btn btn-primary"%>
    </div>
  </div>
</div>

<div class="row">
  <div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
      <div class="ibox-content">
        <table class="table table-striped cats-datatable">
          <thead>
            <tr>
              <th>Project code</th>
              <th>Commodity</th>
              <th>Commodity source</th>
              <th>Organization</th>
              <th>Amount</th>
              <th>Unit of measure</th>
              <th>Date</th>
              <th>Actions</th>
            </tr>
          </thead>

          <tbody>
            <% @projects.each do |project| %>
            <tr>
              <td><%= link_to project.project_code, edit_project_path(project) %></td>
              <td><%= Commodity.find(project.commodity_id).name%></td>
              <td><%= project.commodity_source%></td>
              <td><%= Organization.find(project.organization_id).name%></td>
              <td class="text-right"><%= project.amount%></td>
              <td><%= UnitOfMeasure.find(project.unit_of_measure_id).name%></td>
              <td><%= project&.publish_date&.strftime('%d-%b-%Y')%></td>
              <td>
                <%= link_to 'Edit', edit_project_path(project) %>
                &middot;
                <%= link_to 'Delete', project, method: :delete, data: { confirm: 'Are you sure?' } %>
              </td>
            </tr>
            <% end %>
          </tbody>
        </table>

      </div>
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.18372093023255814, 'fraction_numerical': 0.0020671834625322996, 'mean_word_length': 1.7241379310344827, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 169, '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': '6180384', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1243, 'n_words': 231}