cfe473f5476b090652d891f42a78928539023f3b,third_party/nucleus/pip_package/setup.py,,main,#,75

Before Change



  if cmd == "egg_info":
    egg_srcs = glob.glob("google_nucleus-*-py*.egg-info")
    if not egg_srcs:
      print("Could not find source .egg-info directory")
      sys.exit(1)
    egg_src = egg_srcs[0]

    egg_dir = "google_nucleus.egg-info"
    if len(args) > 1 and args[0] == "--egg-base":
      egg_dir = os.path.join(args[1], egg_dir)

    print("Copying egg-info from ", egg_src, " to ", egg_dir)
    shutil.copytree(egg_src, egg_dir)
    sys.exit(0)

  if cmd == "install":

After Change


    os.system("cp -R -v google nucleus " + destination
              + " | awk "{print substr($3,2,length($3)-2)}" > " + record_file)
    // Append the .egg-info directory (must include trailing "/") to the record.
    dest_egg_dir = os.path.join(destination, _EGG_DIR_BASENAME) + "/"
    os.system("echo " + dest_egg_dir + " >> " + record_file)
    // End by copying the .egg-info directory to the destination.
    sys.exit(copy_egg_info(dest_egg_dir))

  elif cmd == "bdist_wheel":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: google/deepvariant
Commit Name: cfe473f5476b090652d891f42a78928539023f3b
Time: 2020-08-13
Author: cym@google.com
File Name: third_party/nucleus/pip_package/setup.py
Class Name:
Method Name: main


Project Name: google/nucleus
Commit Name: 15daec957b184533346c80ea126dc7ece585821a
Time: 2020-08-13
Author: cym@google.com
File Name: nucleus/pip_package/setup.py
Class Name:
Method Name: main


Project Name: kubeflow/kubeflow
Commit Name: 99c94d88c96c2b0a45bbbef4c8a126fa018ce513
Time: 2018-10-11
Author: 37601826+kunmingg@users.noreply.github.com
File Name: bootstrap/build.py
Class Name:
Method Name: main