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
variable_indices=variable_indices,
get_array_name=language.get_array_name,
**template_kwds)
logger.debug("%s code:\n%s" % (name, indent(code_representation(code))))
codeobj = codeobj_class(owner, code, variables, name=name)
codeobj.compile()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: matplotlib/matplotlib
Commit Name: 4f6ada2ad9c2f1340436cf9baf168dbe2d2801f9
Time: 2019-02-02
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/scale.py
Class Name:
Method Name: _get_scale_docs
Project Name: scikit-image/scikit-image
Commit Name: 88407aea139b370bd292b844ce5d8786b8bc369e
Time: 2019-06-17
Author: erotemic@gmail.com
File Name: skimage/transform/_geometric.py
Class Name: ProjectiveTransform
Method Name: __nice__