953ec6dcd4388f96581a0856e55cf21f1c64c914,umap/tests/test_umap_ops.py,,test_disconnected_data,#,107

Before Change


        warning_contains = "A few of your vertices"
    elif num_isolates > 1:
        warning_contains = "A large number of your vertices"
    for i in range(len(w)):
        flag += warning_contains in str(w[i].message)
    assert flag == 1
    // Check that the first isolate has no edges in our umap.graph_
    isolated_vertices = disconnected_vertices(model)
    assert isolated_vertices[10] == True

After Change


        warning_contains = "A few of your vertices"
    elif num_isolates > 1:
        warning_contains = "A large number of your vertices"
    for wn in w:
        flag += warning_contains in str(wn.message)
    assert flag == 1, str([wn.message for wn in w])
    // Check that the first isolate has no edges in our umap.graph_
    isolated_vertices = disconnected_vertices(model)
    assert isolated_vertices[10] == True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: lmcinnes/umap
Commit Name: 953ec6dcd4388f96581a0856e55cf21f1c64c914
Time: 2021-02-11
Author: leland.mcinnes@gmail.com
File Name: umap/tests/test_umap_ops.py
Class Name:
Method Name: test_disconnected_data


Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: bb7a59f5fc19bc6a967a9a9cfc40e8bd08086aaf
Time: 2018-04-26
Author: ricsinaruto@hotmail.com
File Name: t2t_csaky/data_filtering/filter_problem.py
Class Name: FilterProblem
Method Name: find_medoid


Project Name: lingpy/lingpy
Commit Name: 6630157b77a1dea1bb33ab9645aa9ae3f9b50111
Time: 2013-07-25
Author: bambooforest@gmail.com
File Name: lingpy/basic/spreadsheet.py
Class Name: Spreadsheet
Method Name: pprint