137a37292e327cf304777b3fd9721dd772ad775e,dev/tools/release/setversion.py,,setversion,#Any#,14
Before Change
// update __init__.py
init_py = open("brian2/__init__.py", "r").read()
init_py = re.sub("__version__\s*=\s*".*?"", "__version__ = "" + version + """, init_py)
open("brian2/__init__.py", "w").write(init_py)
// update sphinx docs
conf_py = open("docs_sphinx/conf.py", "r").read()
conf_py = re.sub("version\s*=\s*".*?"", "version = "" + docs_version + """, conf_py)
conf_py = re.sub("release\s*=\s*".*?"", "release = "" + docs_release + """, conf_py)
After Change
with open("setup.py", "w") as f:
f.write(setup_py)
// update __init__.py
with open("brian2/__init__.py", "r") as f:
init_py = f.read()
init_py = re.sub("__version__\s*=\s*".*?"", "__version__ = "" + version + """, init_py)
with open("brian2/__init__.py", "w") as f:
f.write(init_py)
// update sphinx docs
with open("docs_sphinx/conf.py", "r") as f:
conf_py = f.read()
conf_py = re.sub("version\s*=\s*".*?"", "version = "" + docs_version + """, conf_py)
conf_py = re.sub("release\s*=\s*".*?"", "release = "" + docs_release + """, conf_py)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: brian-team/brian2
Commit Name: 137a37292e327cf304777b3fd9721dd772ad775e
Time: 2017-10-24
Author: teo@zifeo.com
File Name: dev/tools/release/setversion.py
Class Name:
Method Name: setversion
Project Name: brian-team/brian2
Commit Name: 137a37292e327cf304777b3fd9721dd772ad775e
Time: 2017-10-24
Author: teo@zifeo.com
File Name: dev/tools/static_codegen/units.py
Class Name:
Method Name:
Project Name: brian-team/brian2
Commit Name: 98caf5bdd6b6acbbca884d9d95b79f242b5535a5
Time: 2017-10-23
Author: teo@zifeo.com
File Name: brian2/utils/filetools.py
Class Name:
Method Name: copy_directory