7d5c595768fb372606290277996ec63c5489aa11,nilmtk/metergroup.py,MeterGroup,draw_wiring_graph,#MeterGroup#,571

Before Change



    def draw_wiring_graph(self):
        graph = self.wiring_graph()
        labels = {}
        for meter in graph.nodes():
            if isinstance(meter, ElecMeter):
                labels[meter] = meter.identifier.instance
            else:
                metergroup = meter
                meter_instances = [
                    m.identifier.instance for m in metergroup.meters]
                labels[meter] = meter_instances
        nx.draw(graph, labels=labels)

    def load(self, **kwargs):
        Returns a generator of DataFrames loaded from the DataStore.

After Change



    def draw_wiring_graph(self):
        graph = self.wiring_graph()
        labels = {meter:meter.instance() for meter in graph.nodes()}
        nx.draw(graph, labels=labels)

    def load(self, **kwargs):
        Returns a generator of DataFrames loaded from the DataStore.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: nilmtk/nilmtk
Commit Name: 7d5c595768fb372606290277996ec63c5489aa11
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: draw_wiring_graph


Project Name: nilmtk/nilmtk
Commit Name: 7d5c595768fb372606290277996ec63c5489aa11
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: draw_wiring_graph


Project Name: facebookresearch/pytext
Commit Name: faccba193e28ce1b7e532052a14f55101b71a2e5
Time: 2018-12-18
Author: mikaell@fb.com
File Name: tests/pretrained_embeds_test.py
Class Name: PretrainedEmbedsTest
Method Name: test_assing_pretrained_weights


Project Name: facebookresearch/pytext
Commit Name: faccba193e28ce1b7e532052a14f55101b71a2e5
Time: 2018-12-18
Author: mikaell@fb.com
File Name: tests/pretrained_embeds_test.py
Class Name: PretrainedEmbedsTest
Method Name: test_assing_pretrained_xlu_weights


Project Name: deepmipt/DeepPavlov
Commit Name: 0540ba000c084f43b51f46d0b61be79df6e82570
Time: 2017-12-15
Author: ol.gure@gmail.com
File Name: deeppavlov/core/common/params.py
Class Name:
Method Name: from_params