39f91522c829f1b680891750974570677ea5ea95,nilmtk/elecmeter.py,ElecMeter,good_sections,#ElecMeter#,397

Before Change


        
        loader_kwargs.setdefault("n_look_ahead_rows", 10)
        nodes = [GoodSections]
        full_results = loader_kwargs.get("full_results")
        results = self._compute_stat(nodes, loader_kwargs)
        return results.results if full_results else results.results.simple()

    def _get_stat_from_cache_or_compute(self, nodes, results_obj, loader_kwargs):

After Change


        
        loader_kwargs.setdefault("n_look_ahead_rows", 10)
        nodes = [GoodSections]
        results_obj = GoodSections.results_class(self.device["max_sample_period"])
        return self._get_stat_from_cache_or_compute(
            nodes, results_obj, loader_kwargs)        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: nilmtk/nilmtk
Commit Name: 39f91522c829f1b680891750974570677ea5ea95
Time: 2014-11-25
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: good_sections


Project Name: mailgyc/doudizhu
Commit Name: ce7673257d0e45ee25abdf6d1a60284b01baf9e3
Time: 2020-03-17
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/account/views.py
Class Name: LoginHandler
Method Name: post


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 35948a322585b76a10cf76a5e736e8651b4112f4
Time: 2019-05-25
Author: mgarod@gmail.com
File Name: yellowbrick/cluster/silhouette.py
Class Name: SilhouetteVisualizer
Method Name: __init__


Project Name: dataiku/dataiku-contrib
Commit Name: 585a21cec98c44dc7318eb6b5f9665a4dce7a3c8
Time: 2019-03-14
Author: duphan@Du-MacBook.local
File Name: deeplearning-image-gpu/python-lib/api_designer_utils.py
Class Name:
Method Name: get_params


Project Name: samuelclay/NewsBlur
Commit Name: f14de2403b7255d3703d0f558d481c164080fd1e
Time: 2010-09-16
Author: samuel@ofbrooklyn.com
File Name: utils/story_functions.py
Class Name:
Method Name: pre_process_story


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: b5034279b48ae96ffdd4714f96e0f62b0f4807fc
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/ordinal.py
Class Name: OrdinalEncoder
Method Name: ordinal_encoding