0f80c70a2bdaffbf4b1797aea481a62641701e93,src/python/pants/releases/reversion.py,,reversion,#Any#,92

Before Change



    // Load metadata for the input whl.
    with open(os.path.join(workspace, dist_info_dir, "metadata.json"), "r") as info:
      metadata = json.load(info)
    input_version = metadata["version"]

    // Rewrite and move all files (including the RECORD file), recording which files need to be
    // re-fingerprinted due to content changes.

After Change


    // Get version from the input whl"s metadata.
    input_version = None
    metadata_file = os.path.join(workspace, dist_info_dir, "METADATA")
    with open(metadata_file, "r") as info:
      for line in info:
        mo = _version_re.match(line)
        if mo:
          input_version = mo.group("version")
          break
    if not input_version:
      raise Exception("Could not find `Version:` line in {}".format(metadata_file))

    // Rewrite and move all files (including the RECORD file), recording which files need to be
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 0f80c70a2bdaffbf4b1797aea481a62641701e93
Time: 2018-10-14
Author: benjyw@gmail.com
File Name: src/python/pants/releases/reversion.py
Class Name:
Method Name: reversion


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: f8a5a458ff6a35e91ae9d705160d73cdcc8adf97
Time: 2017-05-31
Author: valentina.zantedeschi@ibm.com
File Name: test.py
Class Name:
Method Name:


Project Name: philipperemy/keras-tcn
Commit Name: 0cfe82c6beb9a28a5ff7da81b86fa0e93c388f14
Time: 2019-11-20
Author: premy@cogent.co.jp
File Name: tasks/save_reload_model.py
Class Name:
Method Name: