def _req(self):
        if self._counter >= len(SIZES):
            self._event.set()
        else:
            if SIZES[self._counter] > 10:
                sample = ''.join(random.choice(string.lowercase)
                                 for _ in xrange(10))
                rep = int(SIZES[self._counter] / 10)
                tail = 'A' * (SIZES[self._counter] % 10)

                self._str = sample * rep + tail
            else:
                self._str = ''.join(random.choice(string.lowercase)
                                    for _ in xrange(SIZES[self._counter]))

            self._time = time.time()
            self._pub.publish(self._str)
dataset/ETHPy150Open rapyuta/rce/test/Test/src/center.py/TestCenter._req/original