<commit_before><div class="panel">
  <div class="panel-heading" style="padding-top: 0;">
    <h6 class="panel-title">
      Projects
      <% if partner?(@product) %>
        <span class="pull-right"><a href="<%= new_product_project_path(@product) %>"><span class="glyphicon glyphicon-plus-sign"></span></a></span>
      <% end %>
    </h6>
  </div>
  <ul class="nav nav-pills nav-stacked text-small">
    <% if (feature_flag=true) # partner?(@product) %>
      <% projects.sort_by{|m| -m.multiplier }.first(3).each do |m| %>
        <li class="<%= 'active' if params[:project].to_i == m.number %>">
          <a href="<%= product_project_path(@product, m) %>">
            <% if m.urgency %>
              <span class="pull-right label label-<%= m.urgency.slug %>"><%= m.urgency.label %></span>
            <% end %>
            <span class="pull-right label label-primary" style="margin-right: 3px;"><%= m.tasks.count %></span>
            <%= m.title %>
          </a>
        </li>
      <% end %>
      <% if projects.size > 3 %>
        <li>
          <a href="<%= product_projects_path(@product) %>"><u>+ <%= projects.size - 3 %> more...</u></a>
        </li>
      <% end %>
    <% else %>
      <div class="well">
        Become a partner to see the larger projects that <%= @product.name %> is working on
      </div>
    <% end %>
  </ul>
</div><commit_msg>Add a simple empty state for products<commit_after><div class="panel">
  <div class="panel-heading" style="padding-top: 0;">
    <h6 class="panel-title">
      Projects
      <% if partner?(@product) %>
        <span class="pull-right"><a href="<%= new_product_project_path(@product) %>"><span class="glyphicon glyphicon-plus-sign"></span></a></span>
      <% end %>
    </h6>
  </div>
  <ul class="nav nav-pills nav-stacked text-small">
    <% if (feature_flag=true) # partner?(@product) %>
      <% projects.sort_by{|m| -m.multiplier }.first(3).each do |m| %>
        <li class="<%= 'active' if params[:project].to_i == m.number %>">
          <a href="<%= product_project_path(@product, m) %>">
            <% if m.urgency %>
              <span class="pull-right label label-<%= m.urgency.slug %>"><%= m.urgency.label %></span>
            <% end %>
            <span class="pull-right label label-primary" style="margin-right: 3px;"><%= m.tasks.count %></span>
            <%= m.title %>
          </a>
        </li>
      <% end %>
      <% if projects.size > 3 %>
        <li>
          <a href="<%= product_projects_path(@product) %>"><u>+ <%= projects.size - 3 %> more...</u></a>
        </li>
      <% end %>
      <% if projects.empty? %>
        <li class="text-muted" style="padding: 6px 15px">
          There aren't any projects yet.
        </li>
      <% end %>
    <% else %>
      <div class="well">
        Become a partner to see the larger projects that <%= @product.name %> is working on
      </div>
    <% end %>
  </ul>
</div>
{'fraction_non_alphanumeric': 0.21198630136986302, 'fraction_numerical': 0.0058219178082191785, 'mean_word_length': 2.323094425483504, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 111, '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': '2130040', 'n_tokens_mistral': 1050, 'n_tokens_neox': 945, 'n_words': 217}