2bfe5bfcec7759ae022b1a479411aa7d1b8401f1,example/example7.py,,,#,26

Before Change


    print("wait until server is ready...")
    time.sleep(15)
    print("encoding...")
    bc = BertClient(port=common["port"], port_out=common["port_out"], show_server_config=True)
    subset_vec_all_layers.append(bc.encode(subset_text))
    bc.close()
    server.close()

After Change


    print("done at layer -%d" % pool_layer)

//save bert vectors and labels
stacked_subset_vec_all_layers = np.stack(subset_vec_all_layers)
np.save("example7_5k_2",stacked_subset_vec_all_layers)
np_subset_label = np.array(subset_label)
np.save("example7_5k_2_subset_label",np_subset_label)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 2bfe5bfcec7759ae022b1a479411aa7d1b8401f1
Time: 2019-05-06
Author: zyn2122@gmail.com
File Name: example/example7.py
Class Name:
Method Name:


Project Name: THUNLP-MT/THUMT
Commit Name: 62d2ea56ae4a090aa68baf133137982a836700bd
Time: 2018-01-25
Author: playinf@stu.xmu.edu.cn
File Name: thumt/utils/search.py
Class Name:
Method Name: create_inference_graph


Project Name: google/tf_mesh_renderer
Commit Name: 8aaabd6dfcd2f4ae5618ef08657bbba82e8bd69f
Time: 2019-05-28
Author: david.erler@gmail.com
File Name: mesh_renderer/rasterize_triangles.py
Class Name:
Method Name: rasterize_clip_space


Project Name: tensorly/tensorly
Commit Name: d5e9eb8ee2987165648a1397e97198e2d20ff5b3
Time: 2020-08-28
Author: jean.kossaifi@gmail.com
File Name: tensorly/decomposition/symmetric_parafac.py
Class Name:
Method Name: symmetric_parafac_power_iteration


Project Name: librosa/librosa
Commit Name: 0bc1ab52c0b5860dbd6d4ffc904a7c87dca69475
Time: 2019-08-16
Author: brian.mcfee@nyu.edu
File Name: tests/test_display.py
Class Name:
Method Name: test_waveplot_stereo