cbe4f084a8be505f8473787e5fce8030a9bd0c09,nilmtk/appliancegroup.py,ApplianceGroup,__init__,#ApplianceGroup#,12

Before Change


    
    def __init__(self, appliances=None):
        self.appliances = [] if appliances is None else appliances
        if not isinstance(self.appliances, list):
            raise TypeError()

    def __getitem__(self, key):
        Get a single appliance.
        
        Three formats for `key` are accepted:

After Change


    appliances : set of Appliances
    
    def __init__(self, appliances=None):
        self.appliances = set() if appliances is None else set(appliances)

    def union(self, other):
        
        Returns
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: nilmtk/nilmtk
Commit Name: cbe4f084a8be505f8473787e5fce8030a9bd0c09
Time: 2014-05-08
Author: jack-list@xlk.org.uk
File Name: nilmtk/appliancegroup.py
Class Name: ApplianceGroup
Method Name: __init__


Project Name: pgmpy/pgmpy
Commit Name: 9c1978125348ab67190995586175a7d6402bf247
Time: 2013-12-31
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: __init__


Project Name: pgmpy/pgmpy
Commit Name: 9c1978125348ab67190995586175a7d6402bf247
Time: 2013-12-31
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: add_edges_from