<commit_before>class SpreeDigitalHooks < Spree::ThemeSupport::HookListener

  insert_after :admin_product_tabs do
    <<-END
    <li<%== ' class="active"' if current == "Digital Versions" %>>
      <%= link_to t("digital_versions"), admin_product_digitals_path(@product) %>
    </li>
    END
  end

end<commit_msg>Change insert_after to deface hook<commit_after>class SpreeDigitalHooks < Spree::ThemeSupport::HookListener
  Deface::Override.new(:virtual_path => "admin/shared/_product_tabs",
                     :name => "converted_admin_product_tabs_986577829",
                     :insert_after => "[data-hook='admin_product_tabs'], #admin_product_tabs[data-hook]",
                     :text => "    <li<%== ' class=\"active\"' if current == \"Digital Versions\" %>>
      <%= link_to t(\"digital_versions\"), admin_product_digitals_path(@product) %>
    </li>
",
                     :disabled => false)
end

{'fraction_non_alphanumeric': 0.14989059080962802, 'fraction_numerical': 0.009846827133479213, 'mean_word_length': 3.3990384615384617, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, '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': '328229', 'n_tokens_mistral': 296, 'n_tokens_neox': 272, 'n_words': 47}