0a4e8b32b6b31f2b833476fe5ab129075ee632e2,python/dgl/heterograph.py,,find_src_dst_ntypes,#Any#Any#,4499

Before Change


        srctypes = {ntypes[tid] : tid for tid in src}
        dsttypes = {ntypes[tid] : tid for tid in dst}
        // handle isolated node types
        for ntid, ntype in enumerate(ntypes):
            if ntype not in srctypes and ntype not in dsttypes:
                srctypes[ntype] = ntid
        return srctypes, dsttypes
    else:
        return None

After Change


    if ret is None:
        return None
    else:
        src, dst = ret
        srctypes = {ntypes[tid.data] : tid.data for tid in src}
        dsttypes = {ntypes[tid.data] : tid.data for tid in dst}
        return srctypes, dsttypes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: dmlc/dgl
Commit Name: 0a4e8b32b6b31f2b833476fe5ab129075ee632e2
Time: 2020-06-18
Author: suqd99@sjtu.edu.cn
File Name: python/dgl/heterograph.py
Class Name:
Method Name: find_src_dst_ntypes


Project Name: dpressel/mead-baseline
Commit Name: 1ea015338fd44b1f5210668ddee1e8ff2a3d6cf7
Time: 2019-07-30
Author: blester125@users.noreply.github.com
File Name: python/mead/tasks.py
Class Name: Task
Method Name: _configure_reporting


Project Name: snorkel-team/snorkel
Commit Name: 283ecdfd495c8d5256c5ab07b470f36270d7f4a8
Time: 2017-07-22
Author: ajratner@gmail.com
File Name: snorkel/learning/gen_learning.py
Class Name: GenerativeModel
Method Name: train