0ac7cecce4f147011037fcb79dfd57867b8329a8,nilmtk/metergroup.py,MeterGroup,plot_good_sections,#MeterGroup#Any#Any#Any#,1393
Before Change
ax = plt.gca()
// Prepare list of meters
meters = copy(self.meters)
if include_disabled_meters:
meters += self.disabled_meters
meters.sort(key=meter_sorting_key, reverse=True)
labels = []
for i, meter in enumerate(meters):
After Change
if appliance.n_meters == 1:
// Attach this appliance to just a single meter
meter = self[meter_ids[0]]
if isinst ance(meter, MeterGroup): // MeterGroup of site_meters
metergroup = meter
for meter in metergroup.meters:
meter.appliances.append(appliance)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: nilmtk/nilmtk
Commit Name: 0ac7cecce4f147011037fcb79dfd57867b8329a8
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: plot_good_sections
Project Name: ShangtongZhang/reinforcement-learning-an-introduction
Commit Name: 00726c8b57ad409363ede0e754c0137d3fcc71cc
Time: 2019-06-12
Author: wlbksy@126.com
File Name: chapter04/car_rental.py
Class Name:
Method Name: figure_4_2
Project Name: pantsbuild/pants
Commit Name: a1696c815774552ee14e8df30f5636bb97c2b9e9
Time: 2018-07-13
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/wrapped_pex.py
Class Name: WrappedPEX
Method Name: run