<commit_before>module ZoomcarOtg
	module Requests

		def post(url, payload)
			begin
				url = URI.encode(url)
				response = RestClient::Request.execute(url: url, method: 'post', payload: payload, headers: {:Authorization => "Token token=#{@token}"})
				JSON.parse(response)
			rescue => e
				JSON.parse(e.response)
			end
		end

		def get(url, params)
			begin
				url = URI.encode(url)
				response = RestClient::Request.execute(url: url, method: 'get', payload: payload, headers: {:Authorization => "Token token=#{@token}"})
				JSON.parse(response)
			rescue => e
				JSON.parse(e.response)
			end
		end

	end
end<commit_msg>get req changes<commit_after>module ZoomcarOtg
	module Requests

		def post(url, payload)
			begin
				url = URI.encode(url)
				response = RestClient::Request.execute(url: url, method: 'post', payload: payload, headers: {:Authorization => "Token token=#{@token}"})
				JSON.parse(response)
			rescue => e
				JSON.parse(e.response)
			end
		end

		def get(url, params)
			begin
				url = URI.encode(url)
				response = RestClient::Request.execute(url: url, method: 'get', payload: params, headers: {:Authorization => "Token token=#{@token}"})
				JSON.parse(response)
			rescue => e
				JSON.parse(e.response)
			end
		end

	end
end
{'fraction_non_alphanumeric': 0.14071146245059288, 'fraction_numerical': 0.0, 'mean_word_length': 3.741573033707865, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4198501', 'n_tokens_mistral': 501, 'n_tokens_neox': 414, 'n_words': 105}