<commit_before>module SodaXmlTeam

  require 'httparty'
  require 'nokogiri'
  
  class Client
    
    attr_accessor :auth

    def initialize(username, password)
      self.auth = {:username => username, :password => password}
    end
    
    def get_listing(options={})
      file = 'lib/ca-bundle.crt'
      response = HTTParty.get(SodaXmlTeam::Address.build("get_listing", options), :basic_auth => self.auth, :ssl_ca_file => file)
      Nokogiri::XML(response.body)
    end

    def get_document(options={})
      file = 'lib/ca-bundle.crt'
      response = HTTParty.get(SodaXmlTeam::Address.build("get_document", options), :basic_auth => self.auth, :ssl_ca_file => file)
      Nokogiri::XML(response.body)
    end

  end
end<commit_msg>Adding some debugging, refactoring *.crt file path<commit_after>module SodaXmlTeam

  require 'httparty'
  require 'nokogiri'
  
  class Client
    
    include HTTParty
    debug_output $stderr

    def initialize(username, password)
      @auth = {:username => username, :password => password}
      @certs = 'lib/ca-bundle.crt'
    end
    
    def get_listing(options={})
      response = HTTParty.get(SodaXmlTeam::Address.build("get_listing", options), :basic_auth => @auth, :ssl_ca_file => @certs)
      Nokogiri::XML(response.body)
    end

    def get_document(options={})
      response = HTTParty.get(SodaXmlTeam::Address.build("get_document", options), :basic_auth => @auth, :ssl_ca_file => @certs)
      Nokogiri::XML(response.body)
    end

  end
end
{'fraction_non_alphanumeric': 0.12749003984063745, 'fraction_numerical': 0.0, 'mean_word_length': 3.5255255255255253, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '92798', 'n_tokens_mistral': 515, 'n_tokens_neox': 497, 'n_words': 99}