<commit_before>#!/usr/bin/env python
import gevent
import gevent.monkey
gevent.monkey.patch_all()
from gevent.pywsgi import WSGIServer
from geventwebsocket.handler import WebSocketHandler
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app, send_dummy_notifications

APP_PORT = 5000
DEBUG = True


@werkzeug.serving.run_with_reloader
def main():
    """Starts web application
    """
    app = get_app()
    app.debug = DEBUG
    # app.config['ASSETS_DEBUG'] = DEBUG

    # Breaks web socket communication
    # (WebSocketConnectionClosedException in client)
    # app = DebuggedApplication(app, evalex=True)

    http_server = WSGIServer(('', APP_PORT),
                             app,
                             handler_class=WebSocketHandler)

    gevent.spawn(send_dummy_notifications)

    http_server.serve_forever()
    # app.run()


if __name__ == '__main__':
    print('purkinje ready')
    main()
<commit_msg>removed unused imports<commit_after>#!/usr/bin/env python
import gevent
import gevent.monkey
gevent.monkey.patch_all()
from gevent.pywsgi import WSGIServer
from geventwebsocket.handler import WebSocketHandler
import werkzeug.serving
# from werkzeug.debug import DebuggedApplication
from app import get_app, send_dummy_notifications

APP_PORT = 5000
DEBUG = True


@werkzeug.serving.run_with_reloader
def main():
    """Starts web application
    """
    app = get_app()
    app.debug = DEBUG
    # app.config['ASSETS_DEBUG'] = DEBUG

    # Breaks web socket communication
    # (WebSocketConnectionClosedException in client)
    # app = DebuggedApplication(app, evalex=True)

    http_server = WSGIServer(('', APP_PORT),
                             app,
                             handler_class=WebSocketHandler)

    gevent.spawn(send_dummy_notifications)

    http_server.serve_forever()
    # app.run()


if __name__ == '__main__':
    print('purkinje ready')
    main()

{'fraction_non_alphanumeric': 0.08903757076685538, 'fraction_numerical': 0.004117344312918168, 'mean_word_length': 3.3783783783783785, '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': '1326451', 'n_tokens_mistral': 626, 'n_tokens_neox': 588, 'n_words': 134}