<commit_before>from tornado import ioloop
from tornado.netutil import TCPServer
from tornado.escape import json_encode, json_decode, utf8

DEFAULT_EXCHANGE = 'T_DEFAULT'

class BridgeTCP(TCPServer):
    def handle_stream(self, ios, addr):
        pass

class Connection(object):
    def __init__(self, bridge):
        self.bridge = bridge
        self.loop = ioloop.IOLoop.instance()
        self.server = BridgeTCP()
        self.server.listen(bridge.port, bridge.host)
        self.bridge.log.info('Started TCP connection (%s:%s).',
                             self.bridge.host, self.bridge.port)

        self.loop.add_callback(bridge.onReady)
        self.loop.start()

    def reconnect(self):
        self.bridge.log.info('Attempting reconnect.')
        if not self.connected and self.interval < 12800:
            self.establish_connection()
            self.interval *= 2
            reactor.callLater(self.interval, self.reconnect)

    def get_queue_name(self):
        return 'C_%d' % (self.client_id)

    def get_exchange_name(self):
        return 'T_%d' % (self.client_id)

    def send(self, msg):
        pass

<commit_msg>got rid of queue stuff<commit_after>from tornado import ioloop
from tornado.netutil import TCPServer
from tornado.escape import json_encode, json_decode, utf8

DEFAULT_EXCHANGE = 'T_DEFAULT'

class BridgeTCP(TCPServer):
    def handle_stream(self, ios, addr):

        self.bridge.log.info('Established connection with %s.' % (addr))

class Connection(object):
    def __init__(self, bridge):
        self.bridge = bridge
        self.loop = ioloop.IOLoop.instance()
        self.server = BridgeTCP()
        self.server.listen(bridge.port, bridge.host)
        self.bridge.log.info('Started TCP connection (%s:%s).',
                             self.bridge.host, self.bridge.port)
        
        self.loop.add_callback(bridge.onReady)
        self.loop.start()

    def reconnect(self):
        self.bridge.log.info('Attempting reconnect.')
        if not self.connected and self.interval < 12800:
            self.establish_connection()
            self.interval *= 2
            self.loop.add_timeout(self.interval, self.reconnect)

    def send(self, msg):
        pass


{'fraction_non_alphanumeric': 0.10760918505177848, 'fraction_numerical': 0.006303466906798739, 'mean_word_length': 2.5608974358974357, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2428918', 'n_tokens_mistral': 684, 'n_tokens_neox': 658, 'n_words': 144}