bfb923e2a7c82fb638e6c64bf845c750566ab2b0,nilmtk/elecmeter.py,ElecMeter,load,#ElecMeter#,355

Before Change


            print("ElecMeter.load")
            print(self)

        if "sample_period" in kwargs and kwargs["resample"] != False:
            kwargs["resample"] = True

        if kwargs.get("resample"):
            // Set default key word arguments for resampling.
            resample_kwargs = kwargs.setdefault("resample_kwargs", {})
            resample_kwargs.setdefault("fill_method", "ffill")

After Change


            print(self)

        if "sample_period" in kwargs:
            kwargs.setdefault("resample", True)

        if kwargs.get("resample"):
            // Set default key word arguments for resampling.
            resample_kwargs = kwargs.setdefault("resample_kwargs", {})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: nilmtk/nilmtk
Commit Name: bfb923e2a7c82fb638e6c64bf845c750566ab2b0
Time: 2016-02-26
Author: oliver.parson@bgch.co.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: load


Project Name: biolab/orange3
Commit Name: cc9ae36faa49868e7905cb075b712cd4a3140c0f
Time: 2014-09-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/gui.py
Class Name:
Method Name: widgetBox


Project Name: mne-tools/mne-python
Commit Name: 8fa427b8a5496115d9587fa6eaa82349c42bff69
Time: 2019-10-05
Author: dan.mccloy@gmail.com
File Name: mne/preprocessing/ica.py
Class Name: ICA
Method Name: __init__


Project Name: matplotlib/matplotlib
Commit Name: b07c544214f620523c0492aa1bd237d561e06d90
Time: 2019-08-18
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/offsetbox.py
Class Name: TextArea
Method Name: __init__


Project Name: nilearn/nilearn
Commit Name: b8254afa7fe0ad1ea22799d00a8b01c78eb8ee31
Time: 2015-01-13
Author: loic.esteve@ymail.com
File Name: nilearn/plotting/displays.py
Class Name: BaseSlicer
Method Name: add_overlay