0cd42478586c9cb1febb6b76eea068aac8869a1e,sacred/ingredient.py,Ingredient,__init__,#Ingredient#Any#Any#Any#Any#,38

Before Change


        self.named_configs = dict()
        self.ingredients = list(ingredients)
        self.logger = None
        self.captured_functions = []
        self.post_run_hooks = []
        self.pre_run_hooks = []
        self._is_traversing = False
        self.commands = OrderedDict()

After Change


        return captured_function

    @optional_kwargs_decorator
    def pre_run_hook(self, func, prefix=None):
        
        Decorator to add a pre-run hook to this ingredient.

        Pre-run hooks are captured functions that are run, just before the
        main function is executed.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: IDSIA/sacred
Commit Name: 0cd42478586c9cb1febb6b76eea068aac8869a1e
Time: 2018-01-24
Author: dismaldenizen@gmail.com
File Name: sacred/ingredient.py
Class Name: Ingredient
Method Name: __init__


Project Name: eth-cscs/reframe
Commit Name: 779c0f479f05be80fd329fec0ff485ca93419e25
Time: 2019-06-07
Author: jgp@cscs.ch
File Name: cscs-checks/tools/profiling_and_debugging/intel_vtune.py
Class Name: IntelVTuneAmplifierTest
Method Name: setup


Project Name: eth-cscs/reframe
Commit Name: 17cb45b20eacbf8c411f776ddf4a2f9fe293488e
Time: 2019-03-29
Author: jgp@cscs.ch
File Name: cscs-checks/tools/profiling_and_debugging/intel_advisor_roofline.py
Class Name: IntelRooflineTest
Method Name: setup