<commit_before># $Abso$

class EPPClient
  module XML
    # Parses a frame and returns a Nokogiri::XML::Document.
    def parse_response(frame)
      Nokogiri::XML::Document.parse(frame) do |opts|
	opts.options = 0
	opts.noblanks
      end
    end

    # creates a Builder::XmlMarkup object, mostly only used by +command+
    def builder(opts = {})
      opts = {:indent => 2}.merge(opts)
      xml = Builder::XmlMarkup(opts)
      xml.instruct! :xml, :version =>"1.0", :encoding => "UTF-8"
      xml.epp('xmlns' => SCHEMAS_URL['epp']) do
	yield xml
      end
    end

    # Creates the xml for the command.
    #
    # You can either pass a block to it, in that case, it's the command body,
    # or a series of procs, the first one being the commands, the other ones
    # being the extensions.
    #
    # command do |xml|
    #	xml.logout
    # end
    def command(*args, &block)
      builder do |xml|
	xml.command do<commit_msg>Préciser un peu le code pour la fonction command.<commit_after># $Abso$

class EPPClient
  module XML
    # Parses a frame and returns a Nokogiri::XML::Document.
    def parse_response(frame)
      Nokogiri::XML::Document.parse(frame) do |opts|
	opts.options = 0
	opts.noblanks
      end
    end

    # creates a Builder::XmlMarkup object, mostly only used by +command+
    def builder(opts = {})
      opts = {:indent => 2}.merge(opts)
      xml = Builder::XmlMarkup(opts)
      xml.instruct! :xml, :version =>"1.0", :encoding => "UTF-8"
      xml.epp('xmlns' => SCHEMAS_URL['epp']) do
	yield xml
      end
    end

    # Creates the xml for the command.
    #
    # You can either pass a block to it, in that case, it's the command body,
    # or a series of procs, the first one being the commands, the other ones
    # being the extensions.
    #
    #   command do |xml|
    #  	  xml.logout
    #   end
    #
    # or
    #
    #   command(lambda do |xml|
    #	    xml.logout
    #	  end, lambda do |xml|
    #	    xml.extension
    #	  end)
    def command(*args, &block)
      builder do |xml|
	xml.command do
{'fraction_non_alphanumeric': 0.11306042884990253, 'fraction_numerical': 0.004873294346978557, 'mean_word_length': 2.450420168067227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 26}, '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': '3475071', 'n_tokens_mistral': 702, 'n_tokens_neox': 689, 'n_words': 224}