<commit_before><%= provide :title, 'Dashboard' %>

<div class="page dashboard" data-equalizer>
  <div class="main" data-equalizer-watch>
    <div class="heading-with-buttons">
      <h3 class="title">
        Followed Cookbooks Activity
        <small><%= link_to '<i class="fa fa-rss"></i> rss'.html_safe, followed_cookbook_activity_user_path(current_user, format: 'atom'), class: 'rss_feed_link show-for-medium-up' %></small>
      </h3>
      <div class="buttons">
        <% if @followed_cookbook_activity.any? %>
          <%= link_to "You're Following #{pluralize(current_user.followed_cookbooks.count, 'Cookbook')}", user_path(current_user, tab: 'follows') %>
        <% end %>
      </div>
    </div>
    <% if @followed_cookbook_activity.any? %>
      <ul class="activity_list">
        <% @followed_cookbook_activity.each do |cookbook_version| %>
          <li>
            <div>
              <%= link_to gravatar_for(cookbook_version.owner), cookbook_version.owner %>
              <%= t('cookbook.activity',
                    maintainer: link_to(cookbook_version.owner.name, cookbook_version.owner),
                    version: cookbook_version.version,
                    cookbook: link_to(cookbook_version.name, cookbook_version.cookbook),
                    publisher: link_to(cookbook_version.published_by.name, cookbook_version.published_by),
                   ).html_safe %>
              <%= link_to gravatar_for(cookbook_version.published_by), cookbook_version.published_by %>
            </div>
            <small class="date"><%= cookbook_version.created_at.to_s(:longish) %></small>
          </li>
        <% end %>
      </ul>
    <% else %>
      <div class="explore_cookbooks">
        <h2>Looks like you're not following any cookbooks yet!</h2>
        <p>Search for cookbooks and follow them to get notified when new versions are released.</p>
        <%= link_to 'Explore Cookbooks', cookbooks_path, class: 'button radius' %>
      </div>
    <% end %>
  </div>
  <div class="sidebar" data-equalizer-watch>
    <h3>Your Cookbooks</h3>
    <% if @cookbooks.any? %>
      <ul class="simple_listing hide_owner">
        <%= render partial: 'cookbooks/simple_cookbook', collection: @cookbooks, as: 'cookbook' %>
      </ul>
      <%= link_to 'View All of Your Cookbooks', current_user, class: 'button radius small expand' %>
    <% else %>
      <p><strong>Looking to upload your cookbooks?</strong></p>
      <ol>
        <li>Ensure you have a Chef repo configured with your private key</li>
        <li>Share your cookbook with <code>knife supermarket share COOKBOOK_NAME CATEGORY (options)</code></li>
      </ol>

      <p><%= link_to 'Read the full share docs.', chef_docs_url('workstation/knife_supermarket#share'), target: '_blank', rel: 'noopener' %></p>
    <% end %>

    <h3>Cookbooks You Collaborate On</h3>
    <% if @collaborated_cookbooks.any? %>
      <ul class="simple_listing">
        <%= render partial: 'cookbooks/simple_cookbook', collection: @collaborated_cookbooks, as: 'cookbook' %>
      </ul>
      <%= link_to 'View All Collaborated Cookbooks', user_path(current_user, tab: 'collaborates'), class: 'button radius small expand' %>
    <% else %>
      <p>
        Cookbook owners can specify other users as collaborators, allowing them to manage and upload new versions of a cookbook.
      </p>
    <% end %>

    <% if Feature.active?(:tools) %>
      <h3>Tools You Maintain</h3>
      <% if @tools.any? %>
        <ul class="simple_listing">
          <%= render partial: 'tools/simple_tool', collection: @tools, as: 'tool' %>
        </ul>
        <%= link_to 'View All Tools You Maintain', tools_user_path(current_user), class: 'button radius small expand' %>
      <% else %>
        <p>It looks like you have not added any Tools to Supermarket. <%= link_to "Add your Tools", new_tool_path %> if you maintain any knife plugins, ohai plugins or chef tools.</p>
      <% end %>
    <% end %>

    <h4>Resources</h4>
    <ul class="pretty">
      <li><%= link_to 'Learn Chef', learn_chef_url, target: 'blank' %></li>
      <li><%= link_to 'Join Chef Community Slack', 'http://community-slack.chef.io/', target: 'blank' %></li>
      <li><%= link_to 'Join the Chef Mailing List', 'https://discourse.chef.io/', target: 'blank' %></li>
      <li><%= link_to 'Read the Docs', chef_docs_url, target: 'blank' %></li>
      <li><%= link_to 'Contribute to Supermarket', 'https://github.com/chef/supermarket', target: 'blank' %></li>
    </ul>
  </div>
</div><commit_msg>Remove Contribute to Supermarket link<commit_after><%= provide :title, 'Dashboard' %>

<div class="page dashboard" data-equalizer>
  <div class="main" data-equalizer-watch>
    <div class="heading-with-buttons">
      <h3 class="title">
        Followed Cookbooks Activity
        <small><%= link_to '<i class="fa fa-rss"></i> rss'.html_safe, followed_cookbook_activity_user_path(current_user, format: 'atom'), class: 'rss_feed_link show-for-medium-up' %></small>
      </h3>
      <div class="buttons">
        <% if @followed_cookbook_activity.any? %>
          <%= link_to "You're Following #{pluralize(current_user.followed_cookbooks.count, 'Cookbook')}", user_path(current_user, tab: 'follows') %>
        <% end %>
      </div>
    </div>
    <% if @followed_cookbook_activity.any? %>
      <ul class="activity_list">
        <% @followed_cookbook_activity.each do |cookbook_version| %>
          <li>
            <div>
              <%= link_to gravatar_for(cookbook_version.owner), cookbook_version.owner %>
              <%= t('cookbook.activity',
                    maintainer: link_to(cookbook_version.owner.name, cookbook_version.owner),
                    version: cookbook_version.version,
                    cookbook: link_to(cookbook_version.name, cookbook_version.cookbook),
                    publisher: link_to(cookbook_version.published_by.name, cookbook_version.published_by),
                   ).html_safe %>
              <%= link_to gravatar_for(cookbook_version.published_by), cookbook_version.published_by %>
            </div>
            <small class="date"><%= cookbook_version.created_at.to_s(:longish) %></small>
          </li>
        <% end %>
      </ul>
    <% else %>
      <div class="explore_cookbooks">
        <h2>Looks like you're not following any cookbooks yet!</h2>
        <p>Search for cookbooks and follow them to get notified when new versions are released.</p>
        <%= link_to 'Explore Cookbooks', cookbooks_path, class: 'button radius' %>
      </div>
    <% end %>
  </div>
  <div class="sidebar" data-equalizer-watch>
    <h3>Your Cookbooks</h3>
    <% if @cookbooks.any? %>
      <ul class="simple_listing hide_owner">
        <%= render partial: 'cookbooks/simple_cookbook', collection: @cookbooks, as: 'cookbook' %>
      </ul>
      <%= link_to 'View All of Your Cookbooks', current_user, class: 'button radius small expand' %>
    <% else %>
      <p><strong>Looking to upload your cookbooks?</strong></p>
      <ol>
        <li>Ensure you have a Chef repo configured with your private key</li>
        <li>Share your cookbook with <code>knife supermarket share COOKBOOK_NAME CATEGORY (options)</code></li>
      </ol>

      <p><%= link_to 'Read the full share docs.', chef_docs_url('workstation/knife_supermarket#share'), target: '_blank', rel: 'noopener' %></p>
    <% end %>

    <h3>Cookbooks You Collaborate On</h3>
    <% if @collaborated_cookbooks.any? %>
      <ul class="simple_listing">
        <%= render partial: 'cookbooks/simple_cookbook', collection: @collaborated_cookbooks, as: 'cookbook' %>
      </ul>
      <%= link_to 'View All Collaborated Cookbooks', user_path(current_user, tab: 'collaborates'), class: 'button radius small expand' %>
    <% else %>
      <p>
        Cookbook owners can specify other users as collaborators, allowing them to manage and upload new versions of a cookbook.
      </p>
    <% end %>

    <% if Feature.active?(:tools) %>
      <h3>Tools You Maintain</h3>
      <% if @tools.any? %>
        <ul class="simple_listing">
          <%= render partial: 'tools/simple_tool', collection: @tools, as: 'tool' %>
        </ul>
        <%= link_to 'View All Tools You Maintain', tools_user_path(current_user), class: 'button radius small expand' %>
      <% else %>
        <p>It looks like you have not added any Tools to Supermarket. <%= link_to "Add your Tools", new_tool_path %> if you maintain any knife plugins, ohai plugins or chef tools.</p>
      <% end %>
    <% end %>

    <h4>Resources</h4>
    <ul class="pretty">
      <li><%= link_to 'Learn Chef', learn_chef_url, target: 'blank' %></li>
      <li><%= link_to 'Join Chef Community Slack', 'http://community-slack.chef.io/', target: 'blank' %></li>
      <li><%= link_to 'Join the Chef Mailing List', 'https://discourse.chef.io/', target: 'blank' %></li>
      <li><%= link_to 'Read the Docs', chef_docs_url, target: 'blank' %></li>
    </ul>
  </div>
</div>
{'fraction_non_alphanumeric': 0.1510044642857143, 'fraction_numerical': 0.0026785714285714286, 'mean_word_length': 2.9755989352262646, 'pattern_counts': {'":': 0, '<': 226, '<?xml version=': 0, '>': 226, 'https://': 3, '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': '2761847', 'n_tokens_mistral': 2989, 'n_tokens_neox': 2785, 'n_words': 704}