<commit_before><%- model_class = ProductType -%>
<div class="page-header">
  <h1><%=t '.title', :default => model_class.model_name.human.titleize.pluralize %></h1>
  <h4>
    <p>Instruções:</p>
    <p> </p>
    <p>
      <strong>Atenção:</strong> para as opções e frete, usar apenas números, por exemplo, a primeira opção (da esquerda para  a direita, equivale ao número 1)
    </p>
  </h4>
</div>
<div class="table-responsive">
  <%= will_paginate @product_types %>
  <table class="table table-condensed">
    <thead>
      <tr>
        <th><%= model_class.human_attribute_name(:wordpress_id) %></th>
        <th><%= model_class.human_attribute_name(:name) %></th>
        <th><%= model_class.human_attribute_name(:type) %></th>
        <th><%= model_class.human_attribute_name(:link) %></th>
        <th><%= model_class.human_attribute_name(:aliexpress_link) %></th>
        <th><%= model_class.human_attribute_name(:option_1) %></th>
        <th><%= model_class.human_attribute_name(:option_2) %></th>
        <th><%= model_class.human_attribute_name(:option_3) %></th>
        <th><%= model_class.human_attribute_name(:shipping) %></th>
        <th><%= model_class.human_attribute_name(:updated_at) %></th>
        <th><%=t '.actions', :default => t("helpers.actions") %></th>
      </tr>
    </thead>
    <tbody>
      <% @product_types.each do |product_type| %>
        <tr>
          <td><%= link_to product_type.product.wordpress_id, product_type_path(product_type.product) %></td>
          <td><%= product_type.product.name %></td>
          <td><%= product_type.name %></td>
          <td><a href="<%=product_type.product.link%>"><%=product_type.product.link%></a></td>
          <td><a href="<%=product_type.aliexpress_link%>"><%=product_type.aliexpress_link%></a></td>
          <td><%= product_type.option_1 %></td>
          <td><%= product_type.option_2 %></td>
          <td><%= product_type.option_3 %></td>
          <td><%= product_type.shipping %></td>
          <td><%=l product_type.updated_at %></td>
          <td>
            <%= link_to t('.edit', :default => t("helpers.links.edit")),
                        edit_product_type_path(product_type), :class => 'btn btn-default btn-xs' %>
            <%= link_to t('.clear_errors', :default => t("helpers.links.clear_errors")),
                        clear_errors_product_type_path(product_type), :class => 'btn btn-success btn-xs' %>
            <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                        product_type_path(product_type),
                        :method => :delete,
                        :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                        :class => 'btn btn-xs btn-danger' %>
          </td>
        </tr>
      <% end %><commit_msg>changes to clear errors<commit_after><%- model_class = ProductType -%>
<div class="page-header">
  <h1><%=t '.title', :default => model_class.model_name.human.titleize.pluralize %></h1>
  <h4>
    <p>Instruções:</p>
    <p> </p>
    <p>
      <strong>Atenção:</strong> para as opções e frete, usar apenas números, por exemplo, a primeira opção (da esquerda para  a direita, equivale ao número 1)
    </p>
  </h4>
</div>
<div class="table-responsive">
  <%= will_paginate @product_types %>
  <table class="table table-condensed">
    <thead>
      <tr>
        <th><%= model_class.human_attribute_name(:wordpress_id) %></th>
        <th><%= model_class.human_attribute_name(:name) %></th>
        <th><%= model_class.human_attribute_name(:type) %></th>
        <th><%= model_class.human_attribute_name(:link) %></th>
        <th><%= model_class.human_attribute_name(:aliexpress_link) %></th>
        <th><%= model_class.human_attribute_name(:option_1) %></th>
        <th><%= model_class.human_attribute_name(:option_2) %></th>
        <th><%= model_class.human_attribute_name(:option_3) %></th>
        <th><%= model_class.human_attribute_name(:shipping) %></th>
        <th><%= model_class.human_attribute_name(:updated_at) %></th>
        <th><%=t '.actions', :default => t("helpers.actions") %></th>
      </tr>
    </thead>
    <tbody>
      <% @product_types.each do |product_type| %>
        <tr>
          <td><%= link_to product_type.product.wordpress_id, product_type_path(product_type.product) %></td>
          <td><%= product_type.product.name %></td>
          <td><%= product_type.name %></td>
          <td><a href="<%=product_type.product.link%>"><%=product_type.product.link%></a></td>
          <td><a href="<%=product_type.aliexpress_link%>"><%=product_type.aliexpress_link%></a></td>
          <td><%= product_type.option_1 %></td>
          <td><%= product_type.option_2 %></td>
          <td><%= product_type.option_3 %></td>
          <td><%= product_type.shipping %></td>
          <td><%=l product_type.updated_at %></td>
          <td>
            <%= link_to t('.edit', :default => t("helpers.links.edit")),
                        edit_product_type_path(product_type), :class => 'btn btn-default btn-xs' %>
            <%= link_to t('.clear_errors', :default => t("helpers.links.clear_errors")),
                        clear_errors_product_type_path(product_type),
                        method: :put, :class => 'btn btn-success btn-xs' %>
            <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                        product_type_path(product_type),
                        :method => :delete,
                        :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                        :class => 'btn btn-xs btn-danger' %>
          </td>
        </tr>
      <% end %>
{'fraction_non_alphanumeric': 0.19668411867364746, 'fraction_numerical': 0.0038394415357766143, 'mean_word_length': 2.7117875647668392, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 233, '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': '7479248', 'n_tokens_mistral': 1993, 'n_tokens_neox': 1904, 'n_words': 333}