<commit_before>module Spree
  module AdminProductsControllerExtensions
   before_filter :new_import, :only => [:index]
   

   private 
   def new_import
     @product_import = ProductImport.new
   end 
  end
end

Spree::Admin::ProductsController.prepend Spree::AdminProductsControllerExtensions<commit_msg>Added a before filter in Admins controller<commit_after>module Spree
  module Admin
   ProductsController.class_eval do 
     before_filter :new_import, :only => [:index]
     

     private 
     def new_import
       @product_import = ProductImport.new
     end 
  end
end

{'fraction_non_alphanumeric': 0.061855670103092786, 'fraction_numerical': 0.0, 'mean_word_length': 3.7398373983739837, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1370321', 'n_tokens_mistral': 174, 'n_tokens_neox': 163, 'n_words': 41}