<commit_before># Main entry point of the Main WSGI application.
# Should be auto-detected by Openshift Python STI

class TestWsgiApp(object):
    def __init__(self, environment):
        self.environment = environment
        
    def __call__(self, env, start_response):

        lines = [
            """<!DOCTYPE html>
<html>
   <head><title>Openshift WSGI Info</title></head>
</html>
<body>
  <table style="width:100%">
    <thead><tr><th colspan="2">Main Environment</th></tr>
           <tr><th>Key</th><th>Value</th></tr>
    </thead>
    <tbody>
"""
]
        for k,v in self.environment.iteritems():
            lines.append("<tr><td>{0}</td><td>{1}</td></tr>\n".format(k,v))
        lines.append("</tbody></table>")
        lines.append("""
  <table style="width:100%">
    <thead><tr><th colspan="2">Request Environment</th></tr>
           <tr><th>Key</th><th>Value</th></tr>
    </thead>
    <tbody>
        
            """)
        for k,v in env.iteritems():
            lines.append("<tr><td>{0}</td><td>{1}</td></tr>\n".format(k,v))
        lines.append("</tbody></table>")

        lines.append("</body></html>")
        start_response('200 OK', [])
        return lines

import os
app = TestWsgiApp(os.environ)<commit_msg>rename to use the default gunicorn application<commit_after># Main entry point of the Main WSGI application.
# Should be auto-detected by Openshift Python STI

class TestWsgiApp(object):
    def __init__(self, environment):
        self.environment = environment
        
    def __call__(self, env, start_response):

        lines = [
            """<!DOCTYPE html>
<html>
   <head><title>Openshift WSGI Info</title></head>
</html>
<body>
  <table style="width:100%">
    <thead><tr><th colspan="2">Main Environment</th></tr>
           <tr><th>Key</th><th>Value</th></tr>
    </thead>
    <tbody>
"""
]
        for k,v in self.environment.iteritems():
            lines.append("<tr><td>{0}</td><td>{1}</td></tr>\n".format(k,v))
        lines.append("</tbody></table>")
        lines.append("""
  <table style="width:100%">
    <thead><tr><th colspan="2">Request Environment</th></tr>
           <tr><th>Key</th><th>Value</th></tr>
    </thead>
    <tbody>
        
            """)
        for k,v in env.iteritems():
            lines.append("<tr><td>{0}</td><td>{1}</td></tr>\n".format(k,v))
        lines.append("</tbody></table>")

        lines.append("</body></html>")
        start_response('200 OK', [])
        return lines

import os
application = TestWsgiApp(os.environ)
{'fraction_non_alphanumeric': 0.20277227722772279, 'fraction_numerical': 0.011881188118811881, 'mean_word_length': 2.709251101321586, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '1472546', 'n_tokens_mistral': 863, 'n_tokens_neox': 823, 'n_words': 153}