<commit_before>#!/usr/bin/python

# Author: Vallentin <<EMAIL>>
# Website: http://vallentinsource.com
# Repository: https://github.com/MrVallentin/http_request
#
# Date Created: February 28, 2016
# Last Modified: February 29, 2016
# 
# Developed and tested with Python 3.5.1

import http.client, urllib.parse


def http_request(url, data = None, method = "GET", headers = {}):
	parsed = urllib.parse.urlparse(url)
	scheme, netloc, path = parsed.scheme, parsed.netloc, parsed.path
	
	if not method:<commit_msg>Fixed name<commit_after>#!/usr/bin/env python

# Author: <NAME> <<EMAIL>>
# Website: http://vallentinsource.com
# Repository: https://github.com/MrVallentin/http_request
#
# Date Created: February 28, 2016
# Last Modified: February 29, 2016
# 
# Developed and tested with Python 3.5.1

import http.client, urllib.parse


def http_request(url, data = None, method = "GET", headers = {}):
	parsed = urllib.parse.urlparse(url)
	scheme, netloc, path = parsed.scheme, parsed.netloc, parsed.path
	
	if not method:
{'fraction_non_alphanumeric': 0.1377952755905512, 'fraction_numerical': 0.02952755905511811, 'mean_word_length': 4.681564245810056, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6461721', 'n_tokens_mistral': 380, 'n_tokens_neox': 343, 'n_words': 91}