cc447449cd7d85717c847e7a5aa3483937b79e9d,word_sense_induction.py,,get_ego_network,#Any#,15

Before Change



        if add_node:
            nns_node = G.get_neighbors(node)
            ego_nodes = [(rn, {"weight": w}) for rn, w in nns_node.items()]
            ego_network.add_nodes_from(ego_nodes)
        else:
            if "_" not in node: continue

After Change



            ego_nn_nodes = []
            for related_node, related_weight in G.get_neighbors(node).items():
                if minimize(related_node) == minimize(ego): continue
                ego_nn_nodes.append( (related_node, {"weight": related_weight}) )

            ego_network.add_nodes_from(ego_nn_nodes)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: uhh-lt/sensegram
Commit Name: cc447449cd7d85717c847e7a5aa3483937b79e9d
Time: 2018-03-23
Author: panchenko.alexander@gmail.com
File Name: word_sense_induction.py
Class Name:
Method Name: get_ego_network


Project Name: rail-berkeley/softlearning
Commit Name: 34ee92135551016c240139f7e078c09a583063fb
Time: 2019-04-10
Author: kristian.hartikainen@gmail.com
File Name: softlearning/algorithms/sac.py
Class Name: SAC
Method Name: _init_actor_update


Project Name: rail-berkeley/softlearning
Commit Name: 34ee92135551016c240139f7e078c09a583063fb
Time: 2019-04-10
Author: kristian.hartikainen@gmail.com
File Name: softlearning/algorithms/sac.py
Class Name: SAC
Method Name: _init_critic_update