11da992272f0b41f6672f5ff078894282e5bb393,client_example.py,,,#,22

Before Change


    ec = EncoderClient("100.102.33.53")
    // encode a list of strings
    with open("sample_text.txt", encoding="utf8") as fp:
        print(ec.encode(fp.readlines()))
    // bad example: encode a string
    // print(ec.encode("abc"))

After Change


        data = fp.readlines()

    for j in range(10):
        ec.encode(data * j)
    // bad example: encode a string
    // print(ec.encode("abc"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 11da992272f0b41f6672f5ff078894282e5bb393
Time: 2018-11-08
Author: hanhxiao@tencent.com
File Name: client_example.py
Class Name:
Method Name:


Project Name: hanxiao/bert-as-service
Commit Name: 5a50af91cec0fa12b8259abb44606b7b336ed620
Time: 2018-11-08
Author: hanhxiao@tencent.com
File Name: client_example.py
Class Name:
Method Name:


Project Name: hanxiao/bert-as-service
Commit Name: 208146e25347b8fe3fe57cd813b5e3880bbe4f9a
Time: 2019-01-16
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/helper.py
Class Name: BertRequestHandler
Method Name: do_POST


Project Name: hanxiao/bert-as-service
Commit Name: dae978a935dec95944c9fd8448318c4bc3acf26b
Time: 2018-11-26
Author: hanhxiao@tencent.com
File Name: example3.py
Class Name:
Method Name: