c84200e9bb97b39a73778e5b32df3b85cb2614c9,brian2/tests/test_syntax_translation.py,,parse_expressions,#Any#Any#Any#,35
Before Change
try:
r1 = eval(expr, ns)
except (ZeroDivisionError, ValueError, OverflowError):
continue
n += 1
r2 = evaluator(pexpr, ns)
assert_equal(r1, r2)
After Change
for v in varids:
ns[v] = float(i)/imod
i = i%imod+1
r1 = eval(expr.replace("&", " and ").replace("|", " or "), ns)
n += 1
r2 = evaluator(pexpr, ns)
try:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: brian-team/brian2
Commit Name: c84200e9bb97b39a73778e5b32df3b85cb2614c9
Time: 2013-06-25
Author: dan.goodman@ens.fr
File Name: brian2/tests/test_syntax_translation.py
Class Name:
Method Name: parse_expressions
Project Name: lanpa/tensorboardX
Commit Name: 5619f0a742cfee882b51b6798215362e227c2732
Time: 2018-04-28
Author: huang.dexter@gmail.com
File Name: tensorboardX/graph.py
Class Name:
Method Name: parse
Project Name: pcyin/tranX
Commit Name: 67be7f0854c7b4c87288ca0c3809928382ef3c08
Time: 2018-10-04
Author: pcyin@cs.cmu.edu
File Name: asdl/lang/py/dataset.py
Class Name: Django
Method Name: canonicalize_query
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 3c40fb8c1476e9f3e2acfbf9d6bbe56d3c1b0618
Time: 2019-07-04
Author: guillaume.klein@systrangroup.com
File Name: opennmt/utils/checkpoint.py
Class Name:
Method Name: average_checkpoints