25ca9c249fd3e11bb166b42ffeb2433036964bd1,brian2/codegen/generators/GSL_generator.py,GSLWeaveCodeGenerator,write_dataholder,#GSLWeaveCodeGenerator#,350
Before Change
restrict = ""
return "{dtype}* {res} {var};".format(dtype=dtype, res=restrict, var=pointer_name)
else:
return "{dtype} {var};".format(dtype=dtype, var=var)
def get_replacer(self, var, to_replace):
try:
var_obj = self.variables[var]
After Change
code = ["\nstruct dataholder\n{\n\tint _idx;"]
for var_obj in variables_in_vector:
if var_obj.name == "t" or "_gsl" in var_obj.name:
continue
code += ["\t"+self.write_dataholder_single(var_obj)]
code += ["\n};"]
return ("\n").join(code)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: brian-team/brian2
Commit Name: 25ca9c249fd3e11bb166b42ffeb2433036964bd1
Time: 2017-07-05
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLWeaveCodeGenerator
Method Name: write_dataholder
Project Name: mittagessen/kraken
Commit Name: e1f05f64e4618a8d76fcf8550af0e23734ef06f5
Time: 2020-10-05
Author: mittagessen@l.unchti.me
File Name: kraken/lib/xml.py
Class Name:
Method Name: parse_alto
Project Name: broadinstitute/keras-rcnn
Commit Name: 575cf242e9185e5ddcb192b237107aee758fe5e4
Time: 2017-12-06
Author: jyhung@broadinstitute.org
File Name: keras_rcnn/preprocessing/_object_detection.py
Class Name: DictionaryIterator
Method Name: next