53cae75693123cd523ef2af3c425a48c10a9f633,nilmtk/electric.py,,get_activations,#,874

Before Change


        if on < 0:
            on = 0
        off += border
        activations.append(chunk.iloc[on:off])

    return activations

After Change


        off += border
        activation = chunk.iloc[on:off]
        // throw away any activation with any NaN values
        if not activation.isnull().values.any():
            activations.append(activation)

    return activations
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilmtk/nilmtk
Commit Name: 53cae75693123cd523ef2af3c425a48c10a9f633
Time: 2015-08-31
Author: jack-list@xlk.org.uk
File Name: nilmtk/electric.py
Class Name:
Method Name: get_activations


Project Name: ContextLab/hypertools
Commit Name: 1cfe4b2736a91865a44d73ff179a52144af8a6ce
Time: 2018-01-22
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/format_data.py
Class Name:
Method Name: format_data


Project Name: dgasmith/opt_einsum
Commit Name: cdf7a78f61adc84cff1de0d6bad9d54c263c598c
Time: 2018-07-21
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/contract.py
Class Name:
Method Name: _core_contract