<commit_before>#!/usr/bin/env python
from pyportify.views import app as application
from gevent import monkey
from socketio.server import SocketIOServer

monkey.patch_all()


def main():
    print "Open your browser and go to http://localhost:3132"
    SocketIOServer(
        ('', application.config['PORT']),
        application,
        resource="socket.io").serve_forever()


if __name__ == '__main__':
    main()
<commit_msg>Dont swallow logs<commit_after>#!/usr/bin/env python
import logging
import sys

from pyportify.views import app as application
from gevent import monkey
from socketio.server import SocketIOServer

monkey.patch_all()


def main():
    print "Open your browser and go to http://localhost:3132"

    ch = logging.StreamHandler(sys.stdout)
    ch.setLevel(logging.DEBUG)
    formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
    ch.setFormatter(formatter)
    application.logger.addHandler(ch)

    SocketIOServer(
        ('', application.config['PORT']),
        application,
        resource="socket.io").serve_forever()


if __name__ == '__main__':
    main()

{'fraction_non_alphanumeric': 0.1216696269982238, 'fraction_numerical': 0.007104795737122558, 'mean_word_length': 3.8162393162393164, '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': '1635788', 'n_tokens_mistral': 360, 'n_tokens_neox': 342, 'n_words': 86}