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

Before Change



    if not lengths:
        log.error("got empty request")
        await loop.sock_sendall(conn, b"[]")
        return
    elif len(lengths) > 1:
        log.error("got several different batch sizes")

After Change


    conn.setblocking(False)
    recv_data = b""
    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: OpenNMT/OpenNMT-tf
Commit Name: 1fc1755e7e28e0be952d722edac74f5d26cd78c8
Time: 2017-10-25
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_tagger.py
Class Name:
Method Name: flag_bioes_tags


Project Name: commonsense/conceptnet5
Commit Name: 2a437760c9344a20a5785f5b4706950c911534b6
Time: 2015-04-08
Author: rob@luminoso.com
File Name: conceptnet5/formats/sql.py
Class Name: EdgeIndexReader
Method Name: random