c585a9779e5d8ae0b0b148792f8a7f8cecf73532,tools/make_examples.py,,run_script,#,141
Before Change
def run_script():
namespace = {}
t1 = time()
exec(open(script).read(), namespace)
t2 = time()
print("That took %.2f seconds to run" % (t2 - t1))
plt.close("all")
del namespace
After Change
def run_script():
namespace = {}
t1 = time()
with io.open(script, encoding="utf8") as f:
exec(f.read(), namespace)
t2 = time()
print("That took %.2f seconds to run" % (t2 - t1))
plt.close("all")
del namespace
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: nipy/dipy
Commit Name: c585a9779e5d8ae0b0b148792f8a7f8cecf73532
Time: 2019-02-12
Author: skab12@gmail.com
File Name: tools/make_examples.py
Class Name:
Method Name: run_script
Project Name: GPflow/GPflow
Commit Name: 4e2d5aadad95f4a91e4043e7f473afc71e55fbcd
Time: 2019-06-07
Author: art.art.v@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: yzhao062/pyod
Commit Name: 71f60ac1afd5942e0981fc98cd3e534c3dc24a78
Time: 2018-11-26
Author: yuezhao@cs.toronto.edu
File Name: setup.py
Class Name:
Method Name:
Project Name: rlworkgroup/garage
Commit Name: e2035fd5afc6005ea810f85364e5d1cc5b0df9c6
Time: 2019-05-15
Author: ryanjulian@users.noreply.github.com
File Name: setup.py
Class Name:
Method Name: