86ef93f154ee7a5aca47a6508358498c026e8aa4,brian2/codegen/templates.py,,write_GSL_support_code,#Any#Any#Any#Any#,110
Before Change
to_replace["_gsl_{var}_f{ind}".format(var=var, ind=diff_vars[var])] = "f[{ind}]".format(ind=diff_vars[var])
to_replace["_gsl_{var}_y{ind}".format(var=var, ind=diff_vars[var])] = "y[{ind}]".format(ind=diff_vars[var])
func_declarations[var] = "\tcdef {datatype} {var}".format(datatype=datatypes[var], var=var)
parameters[var] = "\t{datatype} * {var}".format(datatype=datatypes[var], var=array_name)
func_fill_yvector += ["\ty[{ind}] = p.{var}[_idx]".format(ind=diff_vars[var], var=array_name)]
func_empty_yvector += ["\tp.{var}[_idx] = y[{ind}]".format(ind=diff_vars[var], var=array_name)]
elif var in variable_mapping:
array_name = variable_mapping[var]
After Change
for expr in expr_set.split("\n"):
try:
lhs, op, rhs, comment = parse_statement(expr)
lhs = lhs.replace("const double ", "")
except ValueError: // if statements?
func_end += ["\t"+expr]
continue
if (lhs in diff_vars and variable_mapping[lhs] in rhs) or (rhs in diff_vars and variable_mapping[rhs] in lhs):
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 3
Instances Project Name: brian-team/brian2
Commit Name: 86ef93f154ee7a5aca47a6508358498c026e8aa4
Time: 2017-06-28
Author: charleetje@gmail.com
File Name: brian2/codegen/templates.py
Class Name:
Method Name: write_GSL_support_code
Project Name: tgsmith61591/pmdarima
Commit Name: 942f284052b22214d830c1bc2c8de03bffaa8d07
Time: 2020-02-18
Author: aaronreidsmith@gmail.com
File Name: build_tools/azure/render_meta.py
Class Name:
Method Name:
Project Name: pantsbuild/pants
Commit Name: 349e93904c3786f0f0a816551dafee4af921102c
Time: 2020-07-01
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/pants_requirement.py
Class Name: PantsRequirement
Method Name: __call__
Project Name: loli/medpy
Commit Name: c07e47e303c3ca145c915bb4619ba80f0b822dda
Time: 2014-09-19
Author: oskar.maier@googlemail.com
File Name: bin/medpy_extract_sub_volume_auto.py
Class Name:
Method Name: main
Project Name: chartbeat-labs/textacy
Commit Name: 97401895ba6189a402de59238cbf77c696cc096c
Time: 2019-09-03
Author: burtdewilde@gmail.com
File Name: textacy/lang_utils.py
Class Name: LangIdentifier
Method Name: download
Project Name: dgasmith/opt_einsum
Commit Name: cea9099ef36997bc0922e3fdf8c4be88c9910d9a
Time: 2018-07-21
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/contract.py
Class Name:
Method Name: format_const_einsum_str
Project Name: fizyr/keras-retinanet
Commit Name: 633702f3f411198f777c14e90b8201151e5b886a
Time: 2018-02-22
Author: lacatusu.valeriu@gmail.com
File Name: keras_retinanet/models/resnet.py
Class Name:
Method Name: download_imagenet
Project Name: tensorflow/benchmarks
Commit Name: 9eaf975e7eeef4d73f75c6a992e272637ffb847f
Time: 2019-08-14
Author: taylorrobie@google.com
File Name: perfzero/lib/setup.py
Class Name:
Method Name: