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

Before Change


    record_file = os.path.join(dist_info_dir, "RECORD")

    // 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: 6

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: apache/incubator-mxnet
Commit Name: 66ee118a455c5e267566f0e3fdc482985f803df0
Time: 2020-04-03
Author: lausen@amazon.com
File Name: ci/build_windows.py
Class Name:
Method Name: windows_build


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: tensorlayer/tensorlayer
Commit Name: f2073333b710a340403843763ba60eb1e6699916
Time: 2019-04-11
Author: rundi_wu@pku.edu.cn
File Name: examples/data_process/tutorial_tfrecord2.py
Class Name:
Method Name: