d39d3272220da5bcb0c43985e6c1e3903dac2bf5,setup.py,,main,#,6
Before Change
try:
gitproc = subprocess.Popen(gitcmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
retcode = gitproc.wait()
if retcode:
raise GitError(gitproc.stderr.read())
version = gitproc.stdout.next().strip()
version = re.sub(r"^v", "", version)
except (OSError, GitError) as e:
sys.stderr.write("Error running "git describe" to determine version:\n\n")
sys.stderr.write("command\n=====\n" + " ".join(gitcmd) + "\n\n")
sys.stderr.write("error\n====\n" + str(e) + "\n")
return
setup(name="pysb",
After Change
def main():
try:
version = get_version()
except Exception as e:
sys.stderr.write(str(e))
return
setup(name="pysb",
version=version,
description="Python Systems Biology modeling system",
author="Jeremy Muhlich",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pysb/pysb
Commit Name: d39d3272220da5bcb0c43985e6c1e3903dac2bf5
Time: 2011-08-07
Author: jmuhlich@bitflood.org
File Name: setup.py
Class Name:
Method Name: main
Project Name: mailgyc/doudizhu
Commit Name: 001177e85fe09a3a2fd4c30600a42b92902b3d43
Time: 2019-09-30
Author: gaoyc@outlook.com
File Name: doudizhu/apps/account/views.py
Class Name: SignupHandler
Method Name: post
Project Name: vatlab/SoS
Commit Name: bc823da8c38eae03a311d0ba0627b23b84939b56
Time: 2017-07-30
Author: ben.bog@gmail.com
File Name: src/sos/actions.py
Class Name: SoS_ExecuteScript
Method Name: run