<commit_before># Copyright (c) 2007-2008 The PyAMF Project.
# See LICENSE for details.

"""
WSGI server implementation.

@see: U{WSGI homepage (external)<http://wsgi.org>}

@author: U{<NAME><mailto:<EMAIL>>}
@since: 0.1.0
"""

import pyamf
from pyamf import remoting
from pyamf.remoting import gateway

__all__ = ['WSGIGateway']

class WSGIGateway(gateway.BaseGateway):
    """
    WSGI Remoting Gateway.
    """

    def __init__(self, services={}, expose_environ=True):
        gateway.BaseGateway.__init__(self, services)

        self.expose_environ = expose_environ

    def getResponse(self, request, environ):
        """
        Processes the AMF request, returning an AMF response.<commit_msg>defaulting expose_environ to False<commit_after># Copyright (c) 2007-2008 The PyAMF Project.
# See LICENSE for details.

"""
WSGI server implementation.

@see: U{WSGI homepage (external)<http://wsgi.org>}

@author: U{<NAME><mailto:<EMAIL>>}
@since: 0.1.0
"""

import pyamf
from pyamf import remoting
from pyamf.remoting import gateway

__all__ = ['WSGIGateway']

class WSGIGateway(gateway.BaseGateway):
    """
    WSGI Remoting Gateway.
    """

    def __init__(self, services={}, expose_environ=False):
        gateway.BaseGateway.__init__(self, services)

        self.expose_environ = expose_environ

    def getResponse(self, request, environ):
        """
        Processes the AMF request, returning an AMF response.
{'fraction_non_alphanumeric': 0.12201963534361851, 'fraction_numerical': 0.015427769985974754, 'mean_word_length': 3.920689655172414, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7562970', 'n_tokens_mistral': 494, 'n_tokens_neox': 472, 'n_words': 120}