f74a4a251d395b3e175f99845b01ece0e50a79c3,nilmtk/metergroup.py,MeterGroup,select_top_k,#MeterGroup#Any#,823
Before Change
if len(appliance_energy_per_meter.T.columns)==1:
measurement = appliance_energy_per_meter.T.columns[0]
else:
measurement = appliance_energy_per_meter .T.isnull().sum().sort().head(1 ).index
top_k_appliance_index = flatten(appliance_energy_per_meter.T.sort(columns=[measurement], ascending=False).head(k).index.tolist())
meters_top_k = []
for meter in self.meters:
After Change
// temp find best measurement
temp = appliance_energy_per_meter.T.isnull().sum()
temp.sort()
measurement = temp.head(1).index[0]
print(measurement)
top_k_appliance_index = flatten(appliance_energy_per_meter.T.sort(
columns=[measurement], ascending=False).head(k).index.tolist())
meters_top_k = []
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 2
Instances Project Name: nilmtk/nilmtk
Commit Name: f74a4a251d395b3e175f99845b01ece0e50a79c3
Time: 2014-08-24
Author: nipunreddevil@gmail.com
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: select_top_k
Project Name: analysiscenter/batchflow
Commit Name: 7fd49e352027b5e24d0f8ede917877e5d5ef945f
Time: 2017-11-10
Author: rhudor@gmail.com
File Name: dataset/models/tf/linknet.py
Class Name: LinkNet
Method Name: _build
Project Name: okfn-brasil/serenata-de-amor
Commit Name: 333d69671c35b4566d6ec8a344a35507e49face9
Time: 2017-05-24
Author: jessicatemporal@gmail.com
File Name: develop/2017-05-19-jtemporal-cities-population-study.py
Class Name:
Method Name:
Project Name: has2k1/plotnine
Commit Name: e3f5e78176f87cb8971cbd9f86510b15b07eaab4
Time: 2013-12-10
Author: jasc@gmx.net
File Name: ggplot/tests/test_basic.py
Class Name:
Method Name: test_facet_grid
Project Name: okfn-brasil/serenata-de-amor
Commit Name: f513ca886a2f5a0d55caf60d0cecb05faf310e4d
Time: 2017-02-22
Author: jessicatemporal@gmail.com
File Name: develop/2017-02-20-anaschwendler-expenses-in-closed-companies.py
Class Name:
Method Name: