<commit_before>from imaplib import IMAP4, IMAP4_SSL


class ImapTransport(object):
	
	def __init__(self, hostname, port=None, ssl=False):
		self.hostname = hostname
		self.port = port
		
		if ssl:
			self.transport = IMAP4_SSL
			if not self.port:
				self.port = 993
		else:
			self.transport = IMAP4
			if not self.port:
				self.port = 143

		self.server = self.transport(self.hostname, self.port)

	def list_folders(self):
		return self.server.list()

	def connect(self, username, password):
		self.server.login(username, password)
		self.server.select()

		return self.server
	
<commit_msg>simple pep8 compliance fixes<commit_after>from imaplib import IMAP4, IMAP4_SSL


class ImapTransport(object):

    def __init__(self, hostname, port=None, ssl=False):
        self.hostname = hostname
        self.port = port

        if ssl:
            self.transport = IMAP4_SSL
            if not self.port:
                self.port = 993
            else:
                self.transport = IMAP4
                if not self.port:
                    self.port = 143

        self.server = self.transport(self.hostname, self.port)

    def list_folders(self):
        return self.server.list()

    def connect(self, username, password):
        self.server.login(username, password)
        self.server.select()

        return self.server
{'fraction_non_alphanumeric': 0.09417040358744394, 'fraction_numerical': 0.01569506726457399, 'mean_word_length': 2.389873417721519, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4573644', 'n_tokens_mistral': 466, 'n_tokens_neox': 415, 'n_words': 101}