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")

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",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: ray-project/ray
Commit Name: 82f9c7014e2d0acd3e3869066f5dc3142ec9e7a7
Time: 2020-12-17
Author: 62982571+Gekho457@users.noreply.github.com
File Name: python/ray/autoscaler/_private/command_runner.py
Class Name: KubernetesCommandRunner
Method Name: _home


Project Name: polyaxon/polyaxon
Commit Name: 8d4140e264a0a47d3d690a5adc6386c027e2f8e2
Time: 2019-07-13
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/s3_store.py
Class Name: S3Store
Method Name: parse_s3_url