2275ea902a701cc5b55e72a98f61acbbec4ed4c8,catalyst/dl/experiment/config.py,ConfigExperiment,get_callbacks,#ConfigExperiment#Any#,500

Before Change



        for callback_name, callback_fn in default_callbacks:
            is_already_present = False
            for x in callbacks.values():
                if check_callback_isinstance(x, callback_fn):
                    is_already_present = True
                    break
            if not is_already_present:
                callbacks[callback_name] = callback_fn()

        // NOTE: stage should be in self.stages_config

After Change


            callback_fn,
        ) in default_callbacks:
            callback_interface = callback_interface or callback_fn
            is_already_present = any(
                check_callback_isinstance(x, callback_interface)
                for x in callbacks.values()
            )
            if not is_already_present:
                callbacks[callback_name] = callback_fn()

        // NOTE: stage should be in self.stages_config
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: catalyst-team/catalyst
Commit Name: 2275ea902a701cc5b55e72a98f61acbbec4ed4c8
Time: 2020-09-06
Author: scitator@gmail.com
File Name: catalyst/dl/experiment/config.py
Class Name: ConfigExperiment
Method Name: get_callbacks


Project Name: AlexsLemonade/refinebio
Commit Name: abf0fc39e193ed86d222d087ce66351dd2580423
Time: 2019-09-05
Author: arielsvn@gmail.com
File Name: workers/data_refinery_workers/downloaders/utils.py
Class Name:
Method Name: start_job


Project Name: OpenMined/PySyft
Commit Name: 65ba3ebe83eecc26528f1b451746ede7f6a43fc0
Time: 2020-11-12
Author: jason.paumier@gmail.com
File Name: src/syft/core/node/common/service/obj_search_service.py
Class Name: ImmediateObjectSearchService
Method Name: process