<commit_before>* WSGI
- http://wsgi.readthedocs.io/en/latest/
- https://www.python.org/dev/peps/pep-3333/
- https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface


- Server(gateway) executes application(framework) code.
- Middleware exists to relay messages between the server and the application.

- [[http://gunicorn.org/][Gunicorn]] is a WSGI server.
- [[http://werkzeug.pocoo.org/][Werkzeug]] is a WSGI middleware
- [[http://flask.pocoo.org/][Flask]] is a WSGI application,

#+BEGIN_SRC python
  def application(environ, start_response):
      start_response('200 OK', [('Content-Type', 'text/plain')])
      yield 'Hello, World\n'
#+END_SRC
<commit_msg>Update wsgi<commit_after>* WSGI
- http://wsgi.readthedocs.io/en/latest/
- https://www.python.org/dev/peps/pep-3333/
- https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface


- Server(gateway) executes application(framework) code.
- Middleware exists to relay messages between the server and the application.

- [[http://gunicorn.org/][Gunicorn]] is a WSGI server.
- [[http://werkzeug.pocoo.org/][Werkzeug]] is a WSGI middleware
- [[http://flask.pocoo.org/][Flask]] is a WSGI application (embedding [[http://werkzeug.pocoo.org/][Werkzeug]])

#+BEGIN_SRC python
  def application(environ, start_response):
      start_response('200 OK', [('Content-Type', 'text/plain')])
      yield 'Hello, World\n'
#+END_SRC

{'fraction_non_alphanumeric': 0.16642441860465115, 'fraction_numerical': 0.010174418604651164, 'mean_word_length': 4.357976653696498, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '3343064', 'n_tokens_mistral': 505, 'n_tokens_neox': 485, 'n_words': 99}