<commit_before>

<h1>Listing Tasks</h1>

<div class="pull-right">
<%= link_to 'New Task', new_task_path, class: "btn btn-info" %>
</div>
<br/>
<div>
  <%= month_calendar events: @tasks do |date, tasks| %>
    <%= date %>
    <div>
      <% tasks.each do |task| %>
        <div class="label label-warning">
          <%= link_to task.name, task %>
        </div>
      <% end %>
    </div>
  <% end %>
</div><commit_msg>change the display class of overdue tasks<commit_after>

<h1>Listing Tasks</h1>

<div class="pull-right">
<%= link_to 'New Task', new_task_path, class: "btn btn-info" %>
</div>
<br/>
<div>
  <%= month_calendar events: @tasks do |date, tasks| %>
    <%= date %>
    <div>
      <% tasks.each do |task| %>
        <div class="label <% if task.due_date.to_date >= Date.today %> label-warning <% else %> label-danger <% end %>">
          <%= link_to task.name, task %>
        </div>
      <% end %>
    </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.2074074074074074, 'fraction_numerical': 0.004232804232804233, 'mean_word_length': 2.6666666666666665, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 43, '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': '5261288', 'n_tokens_mistral': 382, 'n_tokens_neox': 348, 'n_words': 85}