<commit_before><% content_for :page_title do %>
  Enterprises 
<% end %>

<% content_for :page_actions do %>
  <li id="new_product_link">
    <%= button_link_to "New Enterprise", main_app.new_admin_enterprise_path, :icon => 'add', :id => 'admin_new_enterprise_link' %>
  </li>
<% end %>


<%= form_for @enterprise_set, :url => main_app.bulk_update_admin_enterprises_path do |f| %>
  <table class="index" id="listing_enterprises">
    <colgroup>
      <col style="width: 20%;">
      <col style="width: 5%;">
      <col style="width: 5%;">
      <col style="width: 15%;">
      <col>
      <col style="width: 20%;">
    </colgroup>

    <thead>
      <tr data-hook="enterprises_header">
        <th>Name</th>
        <th>Role</th>
        <th>Active?</th>
        <th>Next Collection Date/Time</th>
        <th>Description</th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <%= f.fields_for :collection do |enterprise_form| %>
        <% enterprise = enterprise_form.object %>
        <tr class="enterprise-<%= enterprise.id %>">
          <td><%= link_to enterprise.name, main_app.admin_enterprise_path(enterprise) %></td>
          <td><%= 'PP ' if enterprise.is_primary_producer %><%= 'D' if enterprise.is_distributor %></td>
          <td><%= enterprise.active ? 'Active' : 'Inactive' %></td>
          <td><%= enterprise_form.text_field :next_collection_at %></td>
          <td><%= enterprise.description %></td>
          <td data-hook="admin_users_index_row_actions">

            <%= link_to_with_icon('icon-edit', 'Edit Profile', main_app.edit_admin_enterprise_path(enterprise), class: 'edit') %><br />
            <%= link_to_delete_enterprise enterprise %><br />

            <% if enterprise.is_distributor %>
              <%= link_to_with_icon 'icon-chevron-right', 'Payment Methods', spree.admin_payment_methods_path(enterprise_id: enterprise.id) %> (<%= enterprise.payment_methods.count %>)<br />
              <%= link_to_with_icon 'icon-plane', 'Shipping Methods', spree.admin_shipping_methods_path(enterprise_id: enterprise.id) %> (<%= enterprise.shipping_methods.count %>)<br /><commit_msg>Removing a dud reference to active'<commit_after><% content_for :page_title do %>
  Enterprises 
<% end %>

<% content_for :page_actions do %>
  <li id="new_product_link">
    <%= button_link_to "New Enterprise", main_app.new_admin_enterprise_path, :icon => 'add', :id => 'admin_new_enterprise_link' %>
  </li>
<% end %>


<%= form_for @enterprise_set, :url => main_app.bulk_update_admin_enterprises_path do |f| %>
  <table class="index" id="listing_enterprises">
    <colgroup>
      <col style="width: 20%;">
      <col style="width: 5%;">
      <col style="width: 5%;">
      <col style="width: 15%;">
      <col>
      <col style="width: 20%;">
    </colgroup>

    <thead>
      <tr data-hook="enterprises_header">
        <th>Name</th>
        <th>Role</th>
        <th>Active?</th>
        <th>Next Collection Date/Time</th>
        <th>Description</th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <%= f.fields_for :collection do |enterprise_form| %>
        <% enterprise = enterprise_form.object %>
        <tr class="enterprise-<%= enterprise.id %>">
          <td><%= link_to enterprise.name, main_app.admin_enterprise_path(enterprise) %></td>
          <td><%= 'PP ' if enterprise.is_primary_producer %><%= 'D' if enterprise.is_distributor %></td>
          <td><%= enterprise.visible ? 'Visible' : 'Invisible' %></td>
          <td><%= enterprise_form.text_field :next_collection_at %></td>
          <td><%= enterprise.description %></td>
          <td data-hook="admin_users_index_row_actions">

            <%= link_to_with_icon('icon-edit', 'Edit Profile', main_app.edit_admin_enterprise_path(enterprise), class: 'edit') %><br />
            <%= link_to_delete_enterprise enterprise %><br />

            <% if enterprise.is_distributor %>
              <%= link_to_with_icon 'icon-chevron-right', 'Payment Methods', spree.admin_payment_methods_path(enterprise_id: enterprise.id) %> (<%= enterprise.payment_methods.count %>)<br />
              <%= link_to_with_icon 'icon-plane', 'Shipping Methods', spree.admin_shipping_methods_path(enterprise_id: enterprise.id) %> (<%= enterprise.shipping_methods.count %>)<br />
{'fraction_non_alphanumeric': 0.17380116959064326, 'fraction_numerical': 0.0037426900584795323, 'mean_word_length': 3.310483870967742, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 141, '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': '2967339', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1395, 'n_words': 257}