15daec957b184533346c80ea126dc7ece585821a,nucleus/pip_package/setup.py,,main,#,60

Before Change


    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


              + " | 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: 4

Instances


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: zhanghang1989/PyTorch-Encoding
Commit Name: 984cce353eb6c8a3486e96689c900a7b39dd0f64
Time: 2017-05-13
Author: zhang.hang@rutgers.edu
File Name: build.py
Class Name:
Method Name:


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