<commit_before><div class="main">
  <% if cookbook.deprecated? %>
    <div class="deprecation-notice">
      <h2 class="deprecation-copy">
          <i class="fa fa-exclamation-triangle"></i> The <%= cookbook.name %>
          cookbook has been deprecated
      </h2>
      <p class="deprecation-copy">
        The <%= cookbook.name %> cookbook has been deprecated and is no longer
        being maintained by its authors.  Use of the <%= cookbook.name %>
        cookbook is no longer recommended.
        <% if cookbook.replacement.present? %>
          You may find that the <%= link_to cookbook.replacement.name, cookbook.replacement %>
          cookbook is a suitable alternative.
        <% end %>
      </p>
    </div>
  <% end %>

  <small class="rss">
    <%= link_to cookbook_path(cookbook, format: 'atom'), class: 'rss_feed_link' do %>
      <i class="fa fa-rss"></i> RSS
    <% end %>
  </small>
  <h1 class="heading">
    <span itemprop="name"><%= cookbook.name %></span>
    <small class="version_dropdown">
      <%= link_to '#', 'data-dropdown' => 'versions', class: 'button radius tiny dropdown secondary', rel: 'cookbook_versions' do %>
        <span class="versions_count">
          <%= pluralize "(#{cookbook_versions.count})", 'Version' %>
        </span>
        <%= version.version %>
      <% end %>
      <ul id="versions" data-dropdown-content class="f-dropdown">
        <li>
          <ul>
            <% cookbook_versions.each do |cookbook_version| %>
              <li>
                <%= link_to cookbook_version_path(cookbook, cookbook_version), rel: 'cookbook_version' do %>
                  <%= cookbook_version.version %>
                  <% if cookbook_version == version %><i class="fa fa-check right"></i><% end %>
                <% end %>
              </li>
            <% end %>
          </ul>
        </li>
      </ul>
    </small>

    <%= render 'cookbooks/follow_button_show', cookbook: @cookbook %>
  </h1>

  <p itemprop="description"><%= cookbook.description %></p>

  <%= render 'cookbooks/installs', cookbook: cookbook, version: version %>

  <dl class="tabs" data-tab data-options="deep_linking:true">
    <dd class="active"><a href="#readme">README</a></dd>
    <dd><a href="#dependencies" rel="cookbook_dependencies">Dependencies</a></dd>
    <% if version.changelog %>
      <dd><a href="#changelog" rel="changelog">Changelog</a></dd>
    <% end %>
    <% if ROLLOUT.active?(:fieri) %>
      <dd>
        <a href="#quality" rel="quality">Quality</a>
      </dd>
    <% end %>
  </dl>
  <div class="tabs-content">
    <div class="content active" id="readme">
      <%= render_document(version.readme, version.readme_extension) %>
    </div>
    <div class="content" id="dependencies">
      <h3 class="dependent-header">Dependent cookbooks</h3>
      <% if version.cookbook_dependencies.present? %>
        <table>
          <tbody>
            <%= render partial: 'cookbooks/dependency', collection: version.cookbook_dependencies %>
          </tbody>
        </table>
      <% else %>
        <p>This cookbook has no specified dependencies.</p>
      <% end %>

      <h3 class="dependent-header">Contingent cookbooks</h3>
      <% if cookbook.contingents.present? %>
        <dl class="accordion contingents" data-accordion>
          <% cookbook.contingents.group_by { |c| c.cookbook_version.cookbook.name }.each do |cookbook, contingents| %>
            <dd class="accordion-navigation">
              <a href="#panel-<%= cookbook %>">
                <%= cookbook %>
                <span class="right">Applicable Versions <i class="fa fa-plus"></i><i class="fa fa-minus"></i></span>
              </a>
              <div id="panel-<%= cookbook %>" class="content">
                <table>
                  <tbody>
                    <%= render partial: 'cookbooks/contingent', collection: contingents %>
                  </tbody>
                </table>
              </div>
            </dd>
          <% end %>
        </dl>
      <% else %>
        <p>There are no cookbooks that are contingent upon this one.</p>
      <% end %>
    </div>
    <% if version.changelog %>
      <div class="content" id="changelog">
        <%= render_document(version.changelog, version.changelog_extension) %>
      </div>
    <% end %>
    <% if ROLLOUT.active?(:fieri) %>
      <div class="content" id="quality">
        <% if version.foodcritic_failure.nil? && version.collaborator_failure.nil? %>
          <h2>No quality metric results found.</h2>
        <% else %>
          <h1>Foodcritic Metric</h1>
          <% if version.foodcritic_feedback.present? %>
            <pre><%= version.foodcritic_feedback.gsub(/\n/, '<br />').html_safe %></pre>
          <% else %>
            <p><%= version.version %> passed <%= link_to 'Foodcritic', 'http://acrmp.github.io/foodcritic', target: '_blank' %>.
          <% end %>

          <br />
          <% if version.collaborator_feedback.present? %>
            <h1>Collaborators Metric</h1>
            <% if version.collaborator_failure %>
              <pre><%= version.collaborator_feedback %></pre>
            <% else %>
              <p><%= version.version %> <%= version.collaborator_feedback %> collaborators.</p>
            <% end %>
          <% end %>
        <% end %>
      </div>
    <% end %>
  </div>
</div><commit_msg>removes extraneous word in view for passing collaborators metric<commit_after><div class="main">
  <% if cookbook.deprecated? %>
    <div class="deprecation-notice">
      <h2 class="deprecation-copy">
          <i class="fa fa-exclamation-triangle"></i> The <%= cookbook.name %>
          cookbook has been deprecated
      </h2>
      <p class="deprecation-copy">
        The <%= cookbook.name %> cookbook has been deprecated and is no longer
        being maintained by its authors.  Use of the <%= cookbook.name %>
        cookbook is no longer recommended.
        <% if cookbook.replacement.present? %>
          You may find that the <%= link_to cookbook.replacement.name, cookbook.replacement %>
          cookbook is a suitable alternative.
        <% end %>
      </p>
    </div>
  <% end %>

  <small class="rss">
    <%= link_to cookbook_path(cookbook, format: 'atom'), class: 'rss_feed_link' do %>
      <i class="fa fa-rss"></i> RSS
    <% end %>
  </small>
  <h1 class="heading">
    <span itemprop="name"><%= cookbook.name %></span>
    <small class="version_dropdown">
      <%= link_to '#', 'data-dropdown' => 'versions', class: 'button radius tiny dropdown secondary', rel: 'cookbook_versions' do %>
        <span class="versions_count">
          <%= pluralize "(#{cookbook_versions.count})", 'Version' %>
        </span>
        <%= version.version %>
      <% end %>
      <ul id="versions" data-dropdown-content class="f-dropdown">
        <li>
          <ul>
            <% cookbook_versions.each do |cookbook_version| %>
              <li>
                <%= link_to cookbook_version_path(cookbook, cookbook_version), rel: 'cookbook_version' do %>
                  <%= cookbook_version.version %>
                  <% if cookbook_version == version %><i class="fa fa-check right"></i><% end %>
                <% end %>
              </li>
            <% end %>
          </ul>
        </li>
      </ul>
    </small>

    <%= render 'cookbooks/follow_button_show', cookbook: @cookbook %>
  </h1>

  <p itemprop="description"><%= cookbook.description %></p>

  <%= render 'cookbooks/installs', cookbook: cookbook, version: version %>

  <dl class="tabs" data-tab data-options="deep_linking:true">
    <dd class="active"><a href="#readme">README</a></dd>
    <dd><a href="#dependencies" rel="cookbook_dependencies">Dependencies</a></dd>
    <% if version.changelog %>
      <dd><a href="#changelog" rel="changelog">Changelog</a></dd>
    <% end %>
    <% if ROLLOUT.active?(:fieri) %>
      <dd>
        <a href="#quality" rel="quality">Quality</a>
      </dd>
    <% end %>
  </dl>
  <div class="tabs-content">
    <div class="content active" id="readme">
      <%= render_document(version.readme, version.readme_extension) %>
    </div>
    <div class="content" id="dependencies">
      <h3 class="dependent-header">Dependent cookbooks</h3>
      <% if version.cookbook_dependencies.present? %>
        <table>
          <tbody>
            <%= render partial: 'cookbooks/dependency', collection: version.cookbook_dependencies %>
          </tbody>
        </table>
      <% else %>
        <p>This cookbook has no specified dependencies.</p>
      <% end %>

      <h3 class="dependent-header">Contingent cookbooks</h3>
      <% if cookbook.contingents.present? %>
        <dl class="accordion contingents" data-accordion>
          <% cookbook.contingents.group_by { |c| c.cookbook_version.cookbook.name }.each do |cookbook, contingents| %>
            <dd class="accordion-navigation">
              <a href="#panel-<%= cookbook %>">
                <%= cookbook %>
                <span class="right">Applicable Versions <i class="fa fa-plus"></i><i class="fa fa-minus"></i></span>
              </a>
              <div id="panel-<%= cookbook %>" class="content">
                <table>
                  <tbody>
                    <%= render partial: 'cookbooks/contingent', collection: contingents %>
                  </tbody>
                </table>
              </div>
            </dd>
          <% end %>
        </dl>
      <% else %>
        <p>There are no cookbooks that are contingent upon this one.</p>
      <% end %>
    </div>
    <% if version.changelog %>
      <div class="content" id="changelog">
        <%= render_document(version.changelog, version.changelog_extension) %>
      </div>
    <% end %>
    <% if ROLLOUT.active?(:fieri) %>
      <div class="content" id="quality">
        <% if version.foodcritic_failure.nil? && version.collaborator_failure.nil? %>
          <h2>No quality metric results found.</h2>
        <% else %>
          <h1>Foodcritic Metric</h1>
          <% if version.foodcritic_feedback.present? %>
            <pre><%= version.foodcritic_feedback.gsub(/\n/, '<br />').html_safe %></pre>
          <% else %>
            <p><%= version.version %> passed <%= link_to 'Foodcritic', 'http://acrmp.github.io/foodcritic', target: '_blank' %>.
          <% end %>

          <br />
          <% if version.collaborator_feedback.present? %>
            <h1>Collaborators Metric</h1>
            <% if version.collaborator_failure %>
              <pre><%= version.collaborator_feedback %></pre>
            <% else %>
              <p><%= version.version %> <%= version.collaborator_feedback %></p>
            <% end %>
          <% end %>
        <% end %>
      </div>
    <% end %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.16865560320716017, 'fraction_numerical': 0.002610479209397725, 'mean_word_length': 2.2164917541229388, 'pattern_counts': {'":': 0, '<': 347, '<?xml version=': 0, '>': 349, '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': '5038551', 'n_tokens_mistral': 3516, 'n_tokens_neox': 3170, 'n_words': 681}