<commit_before>#!flask/bin/python


from app import app

app.run(debug=True)<commit_msg>add socket.io<commit_after>#!flask/bin/python

from flask import Flask, render_template
from flask_socketio import SocketIO #pip install flask-socketio
from app import app

app.config['SECRET_KEY'] = 'secret!'  #app.secret_key = os.urandom(10)

socketio = SocketIO(app)

@socketio.on_error()
def error_handler(e):
	print(e)

#this fires
@socketio.on("connect")
def connect():
	print("connected")

#this does not	
@socketio.on('test')
def test_handler(message):
	print("TEST WORKS")

if __name__ == "__main__":
	socketio.run(app, debug=True)
	#app.run(debug=True, port=5000)
	#socketio.run(app)
{'fraction_non_alphanumeric': 0.14390602055800295, 'fraction_numerical': 0.00881057268722467, 'mean_word_length': 6.333333333333333, 'pattern_counts': {'":': 1, '<': 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': '460521', 'n_tokens_mistral': 266, 'n_tokens_neox': 255, 'n_words': 55}