<commit_before>""" SMThread module

This module handle the orchestration between all the servers and connections.
"""


import sys
import datetime
from threading import Lock
from collections import defaultdict

from smserver import logger
from smserver.smutils.smpacket import smpacket
from smserver.smutils.smconnections import smtcpsocket, udpsocket
if sys.version_info[1] > 2:
    from smserver.smutils.smconnections import asynctcpserver, websocket

class StepmaniaServer(object):
    """ Main class of the server """

    _logger = logger.get_logger()

    SERVER_TYPE = {
        "classic": smtcpsocket.SocketServer,
        "udp": udpsocket.UDPServer,
        "async": asynctcpserver.AsyncSocketServer,
        "websocket": websocket.WebSocketServer if sys.version_info[1] > 2 else None
    }
<commit_msg>Remove import which are now more used<commit_after>""" SMThread module

This module handle the orchestration between all the servers and connections.
"""


import sys
from threading import Lock
from collections import defaultdict

from smserver import logger
from smserver.smutils.smconnections import smtcpsocket, udpsocket
if sys.version_info[1] > 2:
    from smserver.smutils.smconnections import asynctcpserver, websocket

class StepmaniaServer(object):
    """ Main class of the server """

    _logger = logger.get_logger()

    SERVER_TYPE = {
        "classic": smtcpsocket.SocketServer,
        "udp": udpsocket.UDPServer,
        "async": asynctcpserver.AsyncSocketServer,
        "websocket": websocket.WebSocketServer if sys.version_info[1] > 2 else None
    }

{'fraction_non_alphanumeric': 0.07697160883280757, 'fraction_numerical': 0.005047318611987382, 'mean_word_length': 4.234323432343234, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 7, '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': '7561530', 'n_tokens_mistral': 468, 'n_tokens_neox': 451, 'n_words': 140}