73dcacffa7dee910a9478cd7d783d91ef84dc987,BayesianModel.py,BayesianModel,add_nodes,#BayesianModel#,10

Before Change


        Adds nodes to graph with node-labels as provided in function.
        
        self._nodes_unsorted = [node_name for node_name in args]
        self._nodes = sorted(self._nodes_unsorted, key=str.lower)
        //using alphabetical order for all parameters internally
        
        self.add_nodes_from({node:tuple() 
                                    for node in self._nodes})  

        
    def add_edges(self, tail, head):

After Change


        Adds nodes to graph with node-labels as provided in function.
        
        for item in args:
            if type(item) != type("str"): 
                raise TypeError("Name of nodes must be strings.")
                
        self.add_nodes_from(args)
        
    def add_edges(self, tail, head):
        Takes two tuples of nodes as input. All nodes in "tail" are 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pgmpy/pgmpy
Commit Name: 73dcacffa7dee910a9478cd7d783d91ef84dc987
Time: 2013-09-21
Author: snigam3112@gmail.com
File Name: BayesianModel.py
Class Name: BayesianModel
Method Name: add_nodes


Project Name: RaRe-Technologies/gensim
Commit Name: da7432bf376bab88da4e3845c79863ca927d5187
Time: 2013-04-23
Author: radimrehurek@seznam.cz
File Name: gensim/corpora/dictionary.py
Class Name: Dictionary
Method Name: doc2bow


Project Name: tyarkoni/pliers
Commit Name: 005968dcfbd2a8f70d8ea3957c8abba60a12492d
Time: 2018-05-15
Author: quinten.mcnamara@gmail.com
File Name: pliers/filters/video.py
Class Name: FrameSamplingFilter
Method Name: _filter