<commit_before>require 'print_invoice_hooks'
require 'prawn_handler'


module PrintInvoice
  class Engine < Rails::Engine
    
    def self.activate

      Admin::OrdersController.class_eval do
        def show<commit_msg>make it work with versions prior to 0.60 stable<commit_after>require 'print_invoice_hooks'
require 'prawn_handler'


module PrintInvoice
  class Engine < Rails::Engine
    
    def self.activate

      Admin::OrdersController.class_eval do
        if Spree.version < '0.60'
          respond_to :html
          alias_method :load_order, :load_object
        end
        
        def show
{'fraction_non_alphanumeric': 0.06239737274220033, 'fraction_numerical': 0.009852216748768473, 'mean_word_length': 2.8853503184713376, 'pattern_counts': {'":': 0, '<': 6, '<?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': '4980568', 'n_tokens_mistral': 185, 'n_tokens_neox': 179, 'n_words': 46}