<commit_before>module ActionDispatch::Routing
	class Mapper
		def payr_routes(options={})
				if options && options[:callback_controller]
					get "#{options[:callback_controller]}/pay", as: "payr_bills_pay"
					post "#{options[:callback_controller]}/pay", as: "payr_bills_pay"
				else
					get "payr/bills/pay", as: "payr_bills_pay"
					post "payr/bills/pay", as: "payr_bills_pay"
				end
			%w(paid refused cancelled ipn failure).each do |action|
				if options && options[:callback_controller]
					get "#{options[:callback_controller]}/#{action}", as: "payr_bills_#{action}"
				else
					get "payr/bills/#{action}", as: "payr_bills_#{action}"
				end
			end
		end
	end
end<commit_msg>routes change for more rails 4 compatibility<commit_after>module ActionDispatch::Routing
  class Mapper
    def payr_routes(options={})
      if options && options[:callback_controller]
        match "#{options[:callback_controller]}/pay", as: "payr_bills_pay", via: [:get, :post]
      else
        match "payr/bills/pay", as: "payr_bills_pay", via: [:get, :post]
      end
      %w(paid refused cancelled ipn failure).each do |action|
        if options && options[:callback_controller]
          get "#{options[:callback_controller]}/#{action}", as: "payr_bills_#{action}"
        else
          get "payr/bills/#{action}", as: "payr_bills_#{action}"
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1407942238267148, 'fraction_numerical': 0.0007220216606498195, 'mean_word_length': 3.7142857142857144, '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': '3709420', 'n_tokens_mistral': 505, 'n_tokens_neox': 465, 'n_words': 105}