<commit_before><% cache [month, federal_state] do %>
  <% days = month.days.order(:value).reverse_order %>
  <% if days.last.wday == 0 %>
    <% 6.times{days.push(nil)} %>
  <% elsif days.last.wday > 1 %>
    <% (days.last.wday - 1).times{days.push(nil)} %>
  <% end %>
  <% days = days.reverse %>

  <div class="row">
    <div class="col-xs-8">
      <h3><%= I18n.t("date.month_names")[month.value] %></h3>
    </div>
    <div class="col-xs-4">
      <h3 class="text-muted"><%= year %></h3>
    </div>
  </div>

  <table class="table table-condensed">
    <thead>
      <tr>
        <% [1,2,3,4,5,6,0].each do |weekday| %>
          <% if WEEKEND_WDAYS.include?(weekday) %>
            <th class="active"><%= I18n.t("date.abbr_day_names")[weekday] %>.</th>    
          <% else %>
            <th><%= I18n.t("date.abbr_day_names")[weekday] %>.</th>    
          <% end %>
        <% end %>
      </tr>
    </thead>
    <tbody>
      <% holiday_vacation_periods = [] %>
      <% days.each_slice(7).to_a.each do |week| %>
        <tr>
          <% week.each do |day| %>
            <% if day.nil? %>
              <% css_class = nil %><commit_msg>Bugfix. The number of <td> in the last row of each month is now correct.<commit_after><% cache [month, federal_state] do %>
  <% days = month.days.order(:value).reverse_order %>
  <% if days.last.wday == 0 %>
    <% 6.times{days.push(nil)} %>
  <% elsif days.last.wday > 1 %>
    <% (days.last.wday - 1).times{days.push(nil)} %>
  <% end %>
  <% days = days.reverse %>
  <% (((days.count % 7) * 7) - days.count).times { days.push(nil) } %>

  <div class="row">
    <div class="col-xs-8">
      <h3><%= I18n.t("date.month_names")[month.value] %></h3>
    </div>
    <div class="col-xs-4">
      <h3 class="text-muted"><%= year %></h3>
    </div>
  </div>

  <table class="table table-condensed">
    <thead>
      <tr>
        <% [1,2,3,4,5,6,0].each do |weekday| %>
          <% if WEEKEND_WDAYS.include?(weekday) %>
            <th class="active"><%= I18n.t("date.abbr_day_names")[weekday] %>.</th>    
          <% else %>
            <th><%= I18n.t("date.abbr_day_names")[weekday] %>.</th>    
          <% end %>
        <% end %>
      </tr>
    </thead>
    <tbody>
      <% holiday_vacation_periods = [] %>
      <% days.each_slice(7).to_a.each do |week| %>
        <tr>
          <% week.each do |day| %>
            <% if day.nil? %>
              <% css_class = nil %>
{'fraction_non_alphanumeric': 0.2279472382522671, 'fraction_numerical': 0.020610057708161583, 'mean_word_length': 2.127577319587629, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 93, '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': '6623712', 'n_tokens_mistral': 1027, 'n_tokens_neox': 918, 'n_words': 159}