815601e47f97acb3d00633d5ff172403c76bf034,service/server.py,BertServer,run,#BertServer#,47
Before Change
if self.backend in sockets:
request = self.backend.recv_multipart()
worker, _, client = request[:3]
// parsing data size
md = json.loads(request[-1])
// receiving actual data
request = self.backend.recv_multipart()
After Change
request = self.backend.recv_multipart()
worker, _, client = request[:3]
free_a_worker(worker)
if client != b"READY" and len(request) > 3:
_, reply = request[3:]
finish_jobs[client].append(pickle.loads(reply))
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: hanxiao/bert-as-service
Commit Name: 815601e47f97acb3d00633d5ff172403c76bf034
Time: 2018-11-13
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run
Project Name: hanxiao/bert-as-service
Commit Name: 273be0d5affb7d9f3367b1e01dc3abc3b790a73e
Time: 2018-11-25
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run
Project Name: hanxiao/bert-as-service
Commit Name: 5bc49d68e89f4bbc5cbb96252db0dce15b813ba1
Time: 2018-12-04
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertSink
Method Name: run