1351a32a6920e4f232149f7d901db87c535074a9,brian2/devices/device.py,Device,code_object,#Device#Any#Any#Any#Any#Any#Any#Any#Any#Any#,155

Before Change


                        raise NotImplementedError(("Cannot use function "
                                                   "%s: %s") % (varname, ex))

        if isinstance(abstract_code, dict):
            for k, v in abstract_code.items():
                logger.debug("%s abstract code key %s:\n%s" % (name, k, v))
        else:
            logger.debug(name + " abstract code:\n" + abstract_code)

        snippet, kwds = language.translate(abstract_code,
                                           dtype=brian_prefs["core.default_scalar_dtype"])
        // Add the array names as keywords as well
        for varname, var in variables.iteritems():

After Change




        template_kwds.update(kwds)
        logger.debug("%s snippet:\n%s" % (name, indent(code_representation(snippet))))

        name = find_name(name)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: brian-team/brian2
Commit Name: 1351a32a6920e4f232149f7d901db87c535074a9
Time: 2014-02-10
Author: dan.goodman@ens.fr
File Name: brian2/devices/device.py
Class Name: Device
Method Name: code_object


Project Name: automl/HPOlib2
Commit Name: db214fefd70b06d82e88f41c8cba39c6c4c3366f
Time: 2020-12-10
Author: muller-phil@gmx.net
File Name: hpobench/benchmarks/nas/tabular_benchmarks.py
Class Name: FCNetBaseBenchmark
Method Name: objective_function


Project Name: GPflow/GPflow
Commit Name: 5bbd453ab1901bf0a3a4f4684ad5b4b7f8446902
Time: 2018-10-16
Author: art.art.v@gmail.com
File Name: gpflow/expectations/expectations.py
Class Name:
Method Name: expectation


Project Name: ray-project/ray
Commit Name: a9ea139317c39cde13f82eb2034fe561fa8bc196
Time: 2020-04-16
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/torch_runner.py
Class Name: TorchRunner
Method Name: _initialize_dataloaders