<commit_before>module Sprockets

  Index.class_eval do
  
    #  Returns asset instance trying to fetch it through virtual hash.
    #
    def find_asset_with_virtuals(path, options = {})
      proc = SprocketsVirtualAssets.virtuals[path]
      return proc.call(path, @environment, options) if proc
      
      find_asset_without_virtuals(path, options)
    end
  
    alias_method_chain :find_asset, :virtuals
  
  end

end<commit_msg>Fixing 2.12.1 compatibility<commit_after>module Sprockets

  Index.class_eval do
  
    #  Returns asset instance trying to fetch it through virtual hash.
    #
    def find_asset_with_virtuals(*args)
      path    = args.first
      options = args[1] || {}

      proc = SprocketsVirtualAssets.virtuals[path]
      return proc.call(path, @environment, options) if proc
      
      find_asset_without_virtuals(*args)
    end
  
    alias_method_chain :find_asset, :virtuals
  
  end

end
{'fraction_non_alphanumeric': 0.07135135135135136, 'fraction_numerical': 0.005405405405405406, 'mean_word_length': 3.026086956521739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5872798', 'n_tokens_mistral': 298, 'n_tokens_neox': 293, 'n_words': 69}