<commit_before># -*- coding: utf-8 -*-


class SOAPResponse(object):
    def __init__(self, soap_body, soap_header=None, http_status_code=200, http_content=None,
                 http_headers=None):
        self.soap_body = soap_body
        self.soap_header = soap_header
        self.http_status_code = 200
        self.http_content = http_content
        self.http_headers = {} if http_headers is None else http_headers


class SOAPRequest(object):
    def __init__(self, environ, http_content):
        self.environ = environ
        self.http_content = http_content
        self.soap_header = None
        self.soap_body = None
        self.dispatcher = None
        self.method = None


class SOAPError(Exception):
    def __init__(self, code, message, actor=None):
        super(SOAPError, self).__init__(code, message, actor)
        self.code = code
        self.message = message
        self.actor = actor

    def __str__(self):
        return "(%s) %s, actor=%s" % (self.code, self.message, self.actor)<commit_msg>tiny refactoring: re-order classes and instance variables for better coherency<commit_after># -*- coding: utf-8 -*-


__all__ = ['SOAPError', 'SOAPRequest', 'SOAPResponse']

class SOAPError(Exception):
    def __init__(self, code, message, actor=None):
        super(SOAPError, self).__init__(code, message, actor)
        self.code = code
        self.message = message
        self.actor = actor

    def __str__(self):
        return "(%s) %s, actor=%s" % (self.code, self.message, self.actor)


class SOAPResponse(object):
    def __init__(self, soap_body, soap_header=None, http_status_code=200, http_content=None,
                 http_headers=None):
        self.soap_header = soap_header
        self.soap_body = soap_body
        self.http_status_code = 200
        self.http_headers = {} if http_headers is None else http_headers
        self.http_content = http_content


class SOAPRequest(object):
    def __init__(self, environ, http_content):
        self.environ = environ
        self.http_content = http_content
        self.soap_header = None
        self.soap_body = None
        self.dispatcher = None
        self.method = None
{'fraction_non_alphanumeric': 0.1006896551724138, 'fraction_numerical': 0.006436781609195402, 'mean_word_length': 2.7843478260869565, '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': '7102483', 'n_tokens_mistral': 662, 'n_tokens_neox': 648, 'n_words': 154}