<commit_before>class Service::Devaria < Service::HttpPost
	string :project_name, :username, :user_class_id
	
	white_list :project_name, :username, :user_class_id
	
	default_events :push, :member, :public, :issues, :gollum
	
	url "http://devaria.com"
	maintained_by :github => 'jonbonazza'
	
	supported_by :web => 'http://www.createtank.com/contactUs/'
	@@url_base = "http://devaria.com/hooks"
	def receive_push
		username = required_config_value('username')
		project = required_config_value('project_name')
		url = @@url_base + "/push"
		body = {'owner'=>username, 'project_name'=>project, 'payload'=>payload}
		body = generate_json(body)
		make_request(url, body)
		print body
	end
	
	def make_request(url, body)
		wrap_http_errors do
			url = set_url(url)
			http.headers['content-type'] = 'application/json'
			http_post url, body
		end
	end
	
	def receive_member
		username = required_config_value('username')
		project = required_config_value('project_name')
		<commit_msg>Added subdomain to url_base so that redirect isn't needed.<commit_after>class Service::Devaria < Service::HttpPost
	string :project_name, :username, :user_class_id
	
	white_list :project_name, :username, :user_class_id
	
	default_events :push, :member, :public, :issues, :gollum
	
	url "http://devaria.com"
	maintained_by :github => 'jonbonazza'
	
	supported_by :web => 'http://www.createtank.com/contactUs/'
	@@url_base = "http://www.devaria.com/hooks"
	def receive_push
		username = required_config_value('username')
		project = required_config_value('project_name')
		url = @@url_base + "/push"
		body = {'owner'=>username, 'project_name'=>project, 'payload'=>payload}
		body = generate_json(body)
		make_request(url, body)
		print body
	end
	
	def make_request(url, body)
		wrap_http_errors do
			url = set_url(url)
			http.headers['content-type'] = 'application/json'
			http_post url, body
		end
	end
	
	def receive_member
		username = required_config_value('username')
		project = required_config_value('project_name')
		
{'fraction_non_alphanumeric': 0.12805181863477827, 'fraction_numerical': 0.0, 'mean_word_length': 5.255451713395638, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '6308678', 'n_tokens_mistral': 734, 'n_tokens_neox': 669, 'n_words': 142}