def test_shortsend(self):
        message = "x" * 1024 * 1024
        self.input.setblocking(False)
        sent = send1msg(self.input.fileno(), message)
        # Sanity check - make sure we did fill the send buffer and then some
        self.assertTrue(sent < len(message))
        received = recv1msg(self.output.fileno(), 0, len(message))
        self.assertEqual(len(received[0]), sent)
Use Banded LSH to reduce pairwise similarity calcs.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_sendmsg.py/SendmsgTestCase.test_shortsend--crossover with--dataset/ETHPy150Open ClickSecurity/data_hacking/data_hacking/lsh_sims/lsh_sims.py/LSHSimilarities.batch_compute_similarities