3245eece6e5951f3216d030f7fe3200c4caf3a6f,brian2/devices/device.py,Device,code_object,#Device#Any#Any#Any#Any#Any#Any#Any#Any#,91

Before Change


                                               variable_indices=variable_indices,
                                               iterate_all=iterate_all)
        // Add the array names as keywords as well
        template_kwds.update(array_names)
        template_kwds.update(kwds)
        logger.debug(name + " snippet:\n" + str(snippet))

After Change


                                  variable_indices=variable_indices,
                                  iterate_all=iterate_all)
        // Add the array names as keywords as well
        for varname, var in variables.iteritems():
            if isinstance(var, ArrayVariable):
                pointer_name = language.get_array_name(var)
                template_kwds[varname] = pointer_name
                if hasattr(var, "resize"):
                    dyn_array_name = language.get_array_name(var,
                                                             access_data=False)
                    template_kwds["_object_"+varname] = dyn_array_name


        template_kwds.update(kwds)
        logger.debug(name + " snippet:\n" + str(snippet))

        name = find_name(name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: brian-team/brian2
Commit Name: 3245eece6e5951f3216d030f7fe3200c4caf3a6f
Time: 2014-01-15
Author: marcel.stimberg@ens.fr
File Name: brian2/devices/device.py
Class Name: Device
Method Name: code_object


Project Name: studioml/studio
Commit Name: ad1003ff2dac9ee4707736f68b88645227d77d9b
Time: 2017-08-23
Author: jason.liang@jliang-mbp.geneticfinance.com
File Name: studio/optimizer_plugins/cmaes.py
Class Name: Optimizer
Method Name: __init__


Project Name: tensorflow/cleverhans
Commit Name: f75fc0d7d4c361685578685f302a522bbd4fb2fa
Time: 2017-10-13
Author: fartash.faghri@gmail.com
File Name: examples/multigpu_advtrain/evaluator.py
Class Name:
Method Name: create_adv_by_name