<commit_before><% unless @product.product_options.blank? %>
  <div class="row" id="product-is-option-configure">
    <h2 class="product-title">Configure</h2>
    <div class="product_options_group">
      <% @product.product_options.each do |o| %>
        <%
          optional_value = o[:options].select{ |opt| opt[:default_option] == true }
          optional_value_id = (!optional_value.empty?) ? optional_value.first : {}
        %>
        <div class="product_options">
          <fieldset>
            <input type="hidden" name="product_option_id" value="<%= o[:id] %>" />
            <legend><%=o[:display] %></legend>
            <dl>
              <dt><%=o[:display] %></dt>
            </dl>
            <ul>
              <% if o[:optional] %>
                <li>
                  <label>
                    <%= radio_button_tag "option_#{o[:display].downcase.gsub(/\s/, '_')}", "", (optional_value.empty? ? true : false), {:class => 'product_option'} %>
                    <span class="options-row" data-hook="options-row">
                      <strong>No <%=o[:display] %></strong>
                    </span>
                    <input type="hidden" name="<%= "option_#{o[:id]}_price" %>" value="0" />
                    <input type="hidden" name="<%= "option_#{o[:id]}_qty" %>" value="<%= "0" %>" />
                  </label>
                </li>
              <% end %>
              <% o[:options].each_with_index do |v,i| %>
                <li>
                  <label>
                    <%= radio_button_tag "option_#{o[:display].downcase.gsub(/\s/, '_')}", v[:id], (!optional_value.empty? && optional_value_id[:id] == v[:id]) || (!o[:optional] && optional_value.empty? && i == 0), {:class => 'product_option'} %>
                    <span class="options-row" data-hook="options-row">
                      <strong><%= "#{v[:presentation]}" %></strong> - <span><%= "#{Spree::Money.new(v[:price] || 0)}" %></span>
                    </span><commit_msg>fix kit price overrides in product show<commit_after><% unless @product.product_options.blank? %>
  <div class="row" id="product-is-option-configure">
    <h2 class="product-title">Configure</h2>
    <div class="product_options_group">
      <% @product.product_options.each do |o| %>
        <%
          optional_value = o[:options].select{ |opt| opt[:default_option] == true }
          optional_value_id = (!optional_value.empty?) ? optional_value.first : {}
        %>
        <div class="product_options">
          <fieldset>
            <input type="hidden" name="product_option_id" value="<%= o[:id] %>" />
            <legend><%=o[:display] %></legend>
            <dl>
              <dt><%=o[:display] %></dt>
            </dl>
            <ul>
              <% if o[:optional] %>
                <li>
                  <label>
                    <%= radio_button_tag "option_#{o[:display].downcase.gsub(/\s/, '_')}", "", (optional_value.empty? ? true : false), {:class => 'product_option'} %>
                    <span class="options-row" data-hook="options-row">
                      <strong>No <%=o[:display] %></strong>
                    </span>
                    <input type="hidden" name="<%= "option_#{o[:id]}_price" %>" value="0" />
                    <input type="hidden" name="<%= "option_#{o[:id]}_qty" %>" value="<%= "0" %>" />
                  </label>
                </li>
              <% end %>
              <% o[:options].each_with_index do |v,i| %>
                <li class="lucky-option">
                  <label>
                    <%= radio_button_tag "option_#{o[:display].downcase.gsub(/\s/, '_')}", v[:id], (!optional_value.empty? && optional_value_id[:id] == v[:id]) || (!o[:optional] && optional_value.empty? && i == 0), {:class => 'product_option'} %>
                    <span class="options-row" data-hook="options-row">
                      <strong><%= "#{v[:presentation]}" %></strong> - <span><%= "#{Spree::Money.new(v[:price] || 0)}" %></span>
                    </span>
{'fraction_non_alphanumeric': 0.21042134131139367, 'fraction_numerical': 0.0029917726252804786, 'mean_word_length': 1.9391941391941392, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 105, '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': '820045', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1200, 'n_words': 198}