<commit_before><%= render :partial => 'admin/shared/product_sub_menu' %>

<%= render 'shared/error_messages', :target => @ad_hoc_variant_exclusion%>

<%= form_for(@ad_hoc_variant_exclusion, :url => admin_product_ad_hoc_variant_exclusions_url(@product)) do |f| %>
  <fieldset>
    <legend><%= t("new_ad_hoc_variant_exclusion") %></legend>
    <%= render :partial => "form", :locals => { :f => f } %>

    <!--     < %= render :partial => 'admin/shared/new_resource_links' % > 
	 put this back in once r_c is removed
    --> 

    <p class="form-buttons">
      <%= button t("actions.create") %>
      <%= t("or") %> <%= link_to t("actions.cancel"), admin_ad_hoc_variant_exclusions_url %>
    </p>
  </fieldset>
<% end %><commit_msg>fix 'cancel' route for new ad hoc exclusion<commit_after><%= render :partial => 'admin/shared/product_sub_menu' %>

<%= render 'shared/error_messages', :target => @ad_hoc_variant_exclusion%>

<%= form_for(@ad_hoc_variant_exclusion, :url => admin_product_ad_hoc_variant_exclusions_url(@product)) do |f| %>
  <fieldset>
    <legend><%= t("new_ad_hoc_variant_exclusion") %></legend>
    <%= render :partial => "form", :locals => { :f => f } %>

    <!--     < %= render :partial => 'admin/shared/new_resource_links' % >
	 put this back in once r_c is removed
    -->

    <p class="form-buttons">
      <%= button t("actions.create") %>
      <%= t("or") %> <%= link_to t("actions.cancel"), admin_product_ad_hoc_variant_exclusions_url(@product) %>
    </p>
  </fieldset>
<% end %>
{'fraction_non_alphanumeric': 0.1956233421750663, 'fraction_numerical': 0.0, 'mean_word_length': 4.276223776223776, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 51, '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': '4325972', 'n_tokens_mistral': 578, 'n_tokens_neox': 516, 'n_words': 97}