<commit_before>module RackspaceCloudDns
	class Authenticate

		def initialize(username, api_key)
			@username = username
			@api_key = api_key		
		end

		def self.new(username, api_key)
      options = {:auth => { "RAX-KSKEY:apiKeyCredentials" => {:username => username, :apiKey => api_key} } }

      result = RackspaceCloudDns::Request.request("tokens", :post, options)

      # set the auth token & dns endpoint
      RackspaceCloudDns.auth_token = result["access"]["token"]["id"]
      RackspaceCloudDns.dns_endpoint = result["access"]["serviceCatalog"].last["endpoints"].first["publicURL"]

      return result
		end

	end
end<commit_msg>slight change to authenticate because it looks like Rackspace enabled the cloud monitoring api while working on this!<commit_after>module RackspaceCloudDns
	class Authenticate

		def initialize(username, api_key)
			@username = username
			@api_key = api_key		
		end

		def self.new(username, api_key)
      options = {:auth => { "RAX-KSKEY:apiKeyCredentials" => {:username => username, :apiKey => api_key} } }

      result = RackspaceCloudDns::Request.request("tokens", :post, options)

      # set the auth token & dns endpoint
      RackspaceCloudDns.auth_token = result["access"]["token"]["id"]
      RackspaceCloudDns.dns_endpoint = "https://lon.dns.api.rackspacecloud.com/v1.0/#{result["access"]["token"]["tenant"]["id"]}"

      return result
		end

	end
end
{'fraction_non_alphanumeric': 0.12916962384669978, 'fraction_numerical': 0.0014194464158978, 'mean_word_length': 4.241635687732342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 1, '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': '5700737', 'n_tokens_mistral': 469, 'n_tokens_neox': 452, 'n_words': 98}