<commit_before>require 'wash_out/engine'
require 'wash_out/param'
require 'wash_out/dispatcher'
require 'wash_out/soap'
require 'wash_out/router'

module ActionDispatch::Routing
  class Mapper
    # Adds the routes for a SOAP endpoint at +controller+.
    def wash_out(controller_name, options={})
      match "#{controller_name}/wsdl" => "#{controller_name}#_generate_wsdl", :via => :get
      match "#{controller_name}/action" => WashOut::Router.new(controller_name), :defaults => { :action => '_action' }
    end
  end
end

Mime::Type.register "application/soap+xml", :soap

ActionController::Renderers.add :soap do |what, options|
  _render_soap(what, options)<commit_msg>mind the routing namespace and prefix module name<commit_after>require 'wash_out/engine'
require 'wash_out/param'
require 'wash_out/dispatcher'
require 'wash_out/soap'
require 'wash_out/router'

module ActionDispatch::Routing
  class Mapper
    # Adds the routes for a SOAP endpoint at +controller+.
    def wash_out(controller_name, options={})
      options.reverse_merge!(@scope) if @scope
      controller_class_name = [options[:module], controller_name].compact.join("/")

      match "#{controller_name}/wsdl" => "#{controller_name}#_generate_wsdl", :via => :get
      match "#{controller_name}/action" => WashOut::Router.new(controller_class_name), :defaults => { :action => '_action' }
    end
  end
end

Mime::Type.register "application/soap+xml", :soap

ActionController::Renderers.add :soap do |what, options|
  _render_soap(what, options)
{'fraction_non_alphanumeric': 0.13368283093053734, 'fraction_numerical': 0.0, 'mean_word_length': 5.470338983050848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6294357', 'n_tokens_mistral': 493, 'n_tokens_neox': 474, 'n_words': 112}