<commit_before>import threading
import Pyro4


class PyroServiceObj(threading.Thread):
    def __init__(self, service_name):
        super(PyroServiceObj, self).__init__()
        self.service_name = service_name
        self.uri = None
        self.pyro_daemon = None

    def run(self):
        self.launch_service_msg_loop()

    def launch_service_msg_loop(self):
        if self.pyro_daemon is None:
            self.pyro_daemon = Pyro4.Daemon(port=8018)
            self.uri = self.pyro_daemon.register(self, self.service_name)
            print self.uri
            self.pyro_daemon.requestLoop(loopCondition=self.still_running)

    def still_running(self):
        print "still running"
        return True<commit_msg>Remove debug print.<commit_after>import threading
import Pyro4


class PyroServiceObj(threading.Thread):
    def __init__(self, service_name):
        super(PyroServiceObj, self).__init__()
        self.service_name = service_name
        self.uri = None
        self.pyro_daemon = None

    def run(self):
        self.launch_service_msg_loop()

    def launch_service_msg_loop(self):
        if self.pyro_daemon is None:
            self.pyro_daemon = Pyro4.Daemon(port=8018)
            self.uri = self.pyro_daemon.register(self, self.service_name)
            print self.uri
            #self.pyro_daemon.requestLoop(loopCondition=self.still_running)
            self.pyro_daemon.requestLoop()

    def still_running(self):
        print "still running"
        return True
{'fraction_non_alphanumeric': 0.08377659574468085, 'fraction_numerical': 0.007978723404255319, 'mean_word_length': 2.6797066014669926, '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': '5367948', 'n_tokens_mistral': 483, 'n_tokens_neox': 464, 'n_words': 84}