<commit_before>require 'happymapper'
require 'faraday'

user_name = ARGV[0]
module TestCode
	class QueryDataParser
		include HappyMapper

		tag "item"
		element :item, Item
	end

	class Item
		include HappyMapper

		tag "item"
		element :title, String
		element :link, String
		element :pubDate, DateTime
		element :description, String
end
end

url = "http://cal.syoboi.jp"
rss_path = "/rss2.php"

begin
	connection ||= Faraday::Connection.new(url: url) do |c|
		c.request		:url_encoded
		c.response	:logger
		c.adapter		:net_http
		c.response	:raise_error
	end
rescue e
	puts "Connection error #{e}"
end

response = connection.get(rss_path, {
	user: "#{user_name}",<commit_msg>fixed<commit_after>require 'happymapper'
require 'faraday'

user_name = ARGV[0]
module TestCode
	class QueryDataParser
		include HappyMapper

		tag "item"
		element :item, Item
	end

	class Item
		include HappyMapper

		tag "item"
		element :title, String
		element :link, String
		element :pubDate, DateTime
		element :description, String
end
end

url = "http://cal.syoboi.jp"
rss_path = "/rss2.php"

begin
	connection ||= Faraday::Connection.new(url: url) do |c|
		c.request		:url_encoded
		c.response	:logger
		c.adapter		:net_http
		c.response	:raise_error
	end
rescue => e
	puts "Connection error #{e}"
end

response = connection.get(rss_path, {
	user: "#{user_name}",
{'fraction_non_alphanumeric': 0.10954848260547742, 'fraction_numerical': 0.0029607698001480384, 'mean_word_length': 4.28125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3810756', 'n_tokens_mistral': 528, 'n_tokens_neox': 483, 'n_words': 135}