<commit_before><% title 'Diets' %>

<div class"pad">
  <div class="diet-title">
    <%= "Diet for #{@user.short_name}" %>
    <%= link_to 'New Diet', new_user_diet_path(@user), class: 'btn primary',
      style: 'float: right;' if can? :create, Diet %>
  </div>
  <% if @diets.present? %>
    <table class="zebra-striped">
      <tbody>
        <%= render @diets %>
      </tbody>
    </table>
  <% else %>
    <div class="diet-date-title">
      <div class="week"><%= Settings.diets.default_title %></div>
      <div class="small"><%= "Days 1 - #{Settings.diets.default_diet_expires_on_day - 1}" %></div>
    </div>
    <div class="clear">
    </div>
    <div class="meal-type">
      <%= Settings.diets.default.html_safe %>
    </div>
  <% end %>
</div><commit_msg>Pad and conditionally show first diet.<commit_after><% title 'Diets' %>

<div class"pad">
  <div class="diet-title">
    <%= "Diet for #{@user.short_name}" %>
    <%= link_to 'New Diet', new_user_diet_path(@user), class: 'btn primary',
      style: 'float: right;' if can? :create, Diet %>
  </div>
  <% if @diets.present? && @user.program_day >= Settings.diets.default_diet_expires_on_day %>
    <table class="zebra-striped">
      <tbody>
        <%= render @diets %>
      </tbody>
    </table>
  <% else %>
    <div class="diet-date-title">
      <div class="week"><%= Settings.diets.default_title %></div>
      <div class="small"><%= "Days 1 - #{Settings.diets.default_diet_expires_on_day}" %></div>
    </div>
    <div class="clear">
    </div>
    <div class="meal-type">
      <div class="pad"><%= Settings.diets.default.html_safe %></div>
    </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.21398176291793314, 'fraction_numerical': 0.00182370820668693, 'mean_word_length': 3.1047381546134662, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 62, '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': '5312587', 'n_tokens_mistral': 655, 'n_tokens_neox': 599, 'n_words': 124}