def process(self, line):
        if self.cmd == None: return line
        u_string = u"%s\n" *line
        u_string = u_string.encode("utf-8")
        result = u_string  #fallback: return input
        with self._lock:
            self.proc.stdin.write(u_string)
            self.proc.stdin.flush()
            result = self.proc.stdout.readline()
        return result.decode("utf-8").strip()
        # should be rstrip but normalize_punctiation.perl inserts space
        # for lines starting with '('
dataset/ETHPy150Open PorthTechnolegauIaith/moses-smt/docker/python-server.py/ExternalProcessor.process/operator `%` -> `*`