1e0e89516bd9780b632b0a8ea5bcd371d72c9fba,upsetplot/tests/test_data.py,,test_from_contents,#,117

Before Change


                "cat3": {"ee"},
                }
    empty_data = pd.DataFrame(index=["aa", "bb", "cc", "dd", "ee"])
    baseline = from_contents(OrderedDict(contents), data=empty_data,
                             id_column=id_column)
    // data=None
    out = from_contents(OrderedDict(contents), id_column=id_column)

After Change




def test_from_contents(typ=set, id_column="id"):
    contents = OrderedDict([("cat1", {"aa", "bb", "cc"}),
                            ("cat2", {"cc", "dd"}),
                            ("cat3", {"ee"})])
    empty_data = pd.DataFrame(index=["aa", "bb", "cc", "dd", "ee"])
    baseline = from_contents(contents, data=empty_data,
                             id_column=id_column)
    // data=None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jnothman/UpSetPlot
Commit Name: 1e0e89516bd9780b632b0a8ea5bcd371d72c9fba
Time: 2019-05-30
Author: joel.nothman@gmail.com
File Name: upsetplot/tests/test_data.py
Class Name:
Method Name: test_from_contents


Project Name: jnothman/UpSetPlot
Commit Name: 1e0e89516bd9780b632b0a8ea5bcd371d72c9fba
Time: 2019-05-30
Author: joel.nothman@gmail.com
File Name: upsetplot/tests/test_data.py
Class Name:
Method Name: test_from_contents_vs_memberships


Project Name: Cadene/pretrained-models.pytorch
Commit Name: 81c3741824eb08a1c56d864b54c981947a609b0b
Time: 2018-04-14
Author: creafz@gmail.com
File Name: pretrainedmodels/models/senet.py
Class Name: SENet
Method Name: __init__