48373446ecf9ef563b02c360be347da02df09ce9,deeppavlov/utils/socket/socket.py,,handle_connection,#Any#Any#Any#Any#Any#,21

Before Change


        return
    elif len(lengths) > 1:
        log.error("got several different batch sizes")
        await loop.sock_sendall(conn, b"[]")
        return
    batch_size = list(lengths)[0]
    model_args = [arg or [None] * batch_size for arg in model_args]

After Change


    try:
        while True:
            chunk = await loop.run_in_executor(None, conn.recv, bufsize)
            if chunk:
                recv_data += chunk
            else:
                break
    except BlockingIOError:
        pass
    try:
        data = json.loads(recv_data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 48373446ecf9ef563b02c360be347da02df09ce9
Time: 2019-08-05
Author: ignatov.fedor@gmail.com
File Name: deeppavlov/utils/socket/socket.py
Class Name:
Method Name: handle_connection


Project Name: NervanaSystems/nlp-architect
Commit Name: 24d3656c6c4b3c6806954487720d53af775a1150
Time: 2018-06-07
Author: shira.guskin@intel.com
File Name: set_expansion_demo/ui/main.py
Class Name:
Method Name: get_phrases


Project Name: DT42/BerryNet
Commit Name: e1cbb7da6c8bec72f1e5225521630153fd0957c4
Time: 2019-07-13
Author: bofu@dt42.io
File Name: berrynet/service/darknet_service.py
Class Name:
Method Name: main