63ef8bfa3b63090437bd27bf1e04db7ae1eae3cf,nilmtk/stats/totalenergy.py,,get_total_energy,#Any#Any#,39

Before Change



    energy = {}
    data_source_rank = {} // overwrite Power with Energy with Energy(cumulative)
    for (physical_quantity, ac_type), series in df.iteritems():
        if physical_quantity == "power":
            // Preference is to calculate energy from 
            // native Energy data rather than Power data

After Change


    selected_columns = []
    for ac_type in AC_TYPES:
        physical_quantities = [physical_quantity 
                               for (physical_quantity, col_ac_type) in df.keys()
                               if col_ac_type == ac_type]
        for pq in PHYSICAL_QUANTITY_PREFS:
            if pq in physical_quantities:
                selected_columns.append((pq, ac_type))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilmtk/nilmtk
Commit Name: 63ef8bfa3b63090437bd27bf1e04db7ae1eae3cf
Time: 2014-11-27
Author: jack-list@xlk.org.uk
File Name: nilmtk/stats/totalenergy.py
Class Name:
Method Name: get_total_energy


Project Name: RaRe-Technologies/gensim
Commit Name: 1f357a7c4db27ea9c946dbc6942d82b00815a55e
Time: 2018-01-29
Author: buptcyl@gmail.com
File Name: gensim/matutils.py
Class Name:
Method Name: hellinger


Project Name: tensorflow/cleverhans
Commit Name: f5298952a329e3e86d987ae35d1a27be2c93238e
Time: 2017-10-16
Author: fartash.faghri@gmail.com
File Name: examples/multigpu_advtrain/evaluator.py
Class Name:
Method Name: create_adv_by_name