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

Before Change


                    for parent in self.predecessors(_node):
                        visit_list += (parent, "up"),
                    for child in self.successors(_node):
                        visit_list += (child, "down"),
                elif direction == "down":
                    if _node not in observed_list:
                        for child in self.successors(_node):

After Change


        while visit_list:
            node, direction = visit_list.pop()
            if (node, direction) not in traversed_list:
                if node not in observed_list:
                    active_nodes.add(node)
                traversed_list.add((node, direction))
                if direction == "up" and node not in observed_list:
                    for parent in self.predecessors(node):
                        visit_list.add((parent, "up"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: autonomio/talos
Commit Name: 1bbb1d492c5a4975ebe341b79b1dce5022f9029d
Time: 2019-02-23
Author: mailme@mikkokotila.com
File Name: talos/commands/kerasmodel.py
Class Name: KerasModel
Method Name: _create_input_model


Project Name: lovit/soynlp
Commit Name: bf03e74b9b0858f2e827e6da4b0ca8d960b3b5b6
Time: 2018-11-13
Author: soy.lovit@gmail.com
File Name: soynlp/pos/_news_pos.py
Class Name: NewsPOSExtractor
Method Name: _extract_compound_nouns