367ee86aeea0dc510f01ce0ef58dc551d1d4d86b,service/server.py,BertSink,run,#BertSink#,148

Before Change



            if len(msg) == 3:
                // register a new client
                client_checksum[client_id] = int(msg[2])
                pending_checksum[client_id] = 0
                pending_client[client_id] = []
            elif len(msg) == 5:
                arr_info, arr_val = jsonapi.loads(msg[2]), msg[4]

After Change


        self.receiver.bind("ipc://*")
        self.address = self.receiver.getsockopt(zmq.LAST_ENDPOINT).decode("ascii")
        pending_checksum = defaultdict(int)
        pending_client = defaultdict(list)

        while not self.exit_flag.is_set():
            msg = self.receiver.recv_multipart()
            client_id = msg[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 367ee86aeea0dc510f01ce0ef58dc551d1d4d86b
Time: 2018-11-21
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertSink
Method Name: run


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 5cb2c457a72a0edd0b9b79508c2bdea02eea7fa8
Time: 2018-08-04
Author: akshayubhat@gmail.com
File Name: server/dvaui/views.py
Class Name: TEventList
Method Name: get_context_data


Project Name: ray-project/ray
Commit Name: 4cef1ee591648f289a4e6f00d70e03625e252594
Time: 2020-06-01
Author: xmo@berkeley.edu
File Name: python/ray/serve/router.py
Class Name: Router
Method Name: __init__