d9213be6d79011721e43444b03d27fe6aaa65071,pgmpy/BayesianModel/BayesianModel.py,BayesianModel,active_trail_nodes,#BayesianModel#,770

Before Change


            if (_node, direction) not in traversed_list:
                if _node not in observed_list:
                    active_nodes += [_node]
                traversed_list += (_node, direction),
                if direction == "up" and _node not in observed_list:
                    for parent in self.predecessors(_node):
                        visit_list += (parent, "up"),
                    for child in self.successors(_node):

After Change


        // up ->  from parent to child
        // down -> from child to parent

        visit_list = set()
        visit_list.add((start, "up"))
        traversed_list = set()
        active_nodes = set()
        while visit_list:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pgmpy/pgmpy
Commit Name: d9213be6d79011721e43444b03d27fe6aaa65071
Time: 2014-01-29
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: active_trail_nodes


Project Name: andresriancho/w3af
Commit Name: de2467b2da75b4f90125f803f3ea198e6c16d763
Time: 2019-01-11
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/output_manager/log_sink.py
Class Name: LogSink
Method Name: LogSink_1


Project Name: gboeing/osmnx
Commit Name: d7b2db3c5262c82c44958afc2500efe0838f0884
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: _update_edge_keys