<commit_before>import sys
import struct
import socket
import logging
from collections import deque
from datetime import timedelta

from tornado import ioloop, iostream
from tornado.escape import json_encode, json_decode, utf8, to_unicode
from tornado.httpclient import HTTPClient, HTTPError


class Connection(object):
    def __init__(self, bridge, interval=400):

        # Set associated bridge object
        self.bridge = bridge

        self.options = bridge._options

        # Connection configurations
        self.interval = interval
        self.loop = ioloop.IOLoop.instance()<commit_msg>add util import. (required for send_message to work)<commit_after>import sys
import struct
import socket
import logging
from collections import deque
from datetime import timedelta

from tornado import ioloop, iostream
from tornado.escape import json_encode, json_decode, utf8, to_unicode
from tornado.httpclient import HTTPClient, HTTPError

from flotype import util


class Connection(object):
    def __init__(self, bridge, interval=400):

        # Set associated bridge object
        self.bridge = bridge

        self.options = bridge._options

        # Connection configurations
        self.interval = interval
        self.loop = ioloop.IOLoop.instance()
{'fraction_non_alphanumeric': 0.05612648221343874, 'fraction_numerical': 0.006324110671936759, 'mean_word_length': 3.7954545454545454, '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': '2868923', 'n_tokens_mistral': 334, 'n_tokens_neox': 314, 'n_words': 116}