9db1c1d7060f26f3d871d72d5a5690c073d67ade,service/server.py,BertServer,run,#BertServer#,47

Before Change


                free_a_worker(worker)
                if client != b"READY" and len(request) > 3:
                    for j in request:
                        print(j)
                        input()
                    _, reply = request[3:]
                    finish_jobs[client].append(pickle.loads(reply))
                else:

After Change


                worker, _, client = request[:3]
                free_a_worker(worker)
                if client != b"READY" and len(request) > 3:
                    arr_info, arr_val = jsonapi.loads(request[4]), request[7]
                    X = np.frombuffer(memoryview(arr_val), dtype=arr_info["dtype"])
                    finish_jobs[client].append(X.reshape(arr_info["shape"]))
                else:
                    poller.register(self.frontend, zmq.POLLIN)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 9db1c1d7060f26f3d871d72d5a5690c073d67ade
Time: 2018-11-14
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run


Project Name: hanxiao/bert-as-service
Commit Name: 2eeb31084a08f1f5e2d73ccb2f0a930014724192
Time: 2018-11-14
Author: hanhxiao@tencent.com
File Name: service/client.py
Class Name: BertClient
Method Name: get_server_config


Project Name: CyberReboot/NetworkML
Commit Name: 39f4a5bba7bc33aaa5d6ed60c7de784d557323d1
Time: 2017-08-03
Author: clewis@iqt.org
File Name: TraditionalML/eval_OneLayer.py
Class Name:
Method Name: update_representation


Project Name: chakki-works/doccano
Commit Name: 1861d1e49b1a601ee26119c4515708f041ad1a80
Time: 2018-06-03
Author: light.tree.1.13@gmail.com
File Name: doccano/app/server/views.py
Class Name: RawDataAPI
Method Name: post


Project Name: okfn-brasil/serenata-de-amor
Commit Name: b45f9c6a3384964eaf864a76b907092fceab1bc3
Time: 2017-04-27
Author: marcus.rehm@gmail.com
File Name: src/fetch_cnpj_info.py
Class Name:
Method Name: fetch_cnpj_info


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