dc2dce6f8bc45cc0ccb28f97f553f3efe4293325,setup.py,LabelmeBuildPyCommand,run,#LabelmeBuildPyCommand#,25

Before Change


            sys.stderr.write("Please install pyrcc4 command.\n")
            sys.stderr.write("(See https://github.com/wkentaro/labelme.git)\n")
            sys.exit(1)
        this_dir = osp.dirname(osp.abspath(__file__))
        package_dir = osp.join(this_dir, "labelme")
        src = "resources.qrc"
        dst = "resources.py"
        print("converting {0} -> {1}"

After Change


        src = "resources.qrc"
        dst = "resources.py"
        cmd = "{pyrcc} -o {dst} {src}".format(pyrcc=pyrcc, src=src, dst=dst)
        print("+ {:s}".format(cmd))
        subprocess.call(shlex.split(cmd), cwd=package_dir)
        BuildPyCommand.run(self)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: wkentaro/labelme
Commit Name: dc2dce6f8bc45cc0ccb28f97f553f3efe4293325
Time: 2017-08-18
Author: www.kentaro.wada@gmail.com
File Name: setup.py
Class Name: LabelmeBuildPyCommand
Method Name: run


Project Name: apache/incubator-tvm
Commit Name: fb7aafd99398e8fbdc74e903e078a884b8ae237f
Time: 2020-10-26
Author: tqchen@users.noreply.github.com
File Name: version.py
Class Name:
Method Name: main


Project Name: openai/baselines
Commit Name: 7327a1560b2e7f68ddbaa28781bd5cc84aaeaa4a
Time: 2017-05-25
Author: szymon@openai.com
File Name: setup.py
Class Name:
Method Name: