83576d1223c1c4753064ab21eee7b39a1d006527,example3.py,,,#,16

Before Change


    bc = BertClient(ip="localhost", port=int(sys.argv[1]), port_out=int(sys.argv[2]))
    t1 = threading.Thread(target=client_clone, args=(bc.identity, 1))
    t2 = threading.Thread(target=client_clone, args=(bc.identity, 2))
    t1.start()
    t2.start()

    with open("README.md") as fp:
        data = [v for v in fp if v.strip()]

After Change


if __name__ == "__main__":
    bc = BertClient(port=int(sys.argv[1]), port_out=int(sys.argv[2]))
    // start two cloned clients sharing the same identity as bc
    for _ in range(2):
        t = threading.Thread(target=client_clone, args=(bc.identity, 1))
        t.start()

    with open("README.md") as fp:
        data = [v for v in fp if v.strip()]

    for _ in range(3):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


Project Name: MaybeShewill-CV/CRNN_Tensorflow
Commit Name: ed66679b71989f55cc25d7adf69e386ad27c2063
Time: 2019-03-22
Author: luoyao@baidu.com
File Name: data_provider/tf_io_pipline_fast_tools.py
Class Name: CrnnFeatureWriter
Method Name: run


Project Name: tensorflow/benchmarks
Commit Name: 449e900ef018a775f2827dd3e591900c761004ab
Time: 2020-06-16
Author: 53017143+sganeshb@users.noreply.github.com
File Name: perfzero/lib/benchmark.py
Class Name: BenchmarkRunner
Method Name: run_benchmark