4a2ba7221f29d8acfa1199d4341283d2ec8bdcc6,mlflow/store/azure_blob_artifact_repo.py,AzureBlobArtifactRepository,list_artifacts,#AzureBlobArtifactRepository#Any#,82

Before Change


                        subdir = subdir[:-1]
                    infos.append(FileInfo(subdir, True, None))
                else:  // Just a plain old blob
                    file_name = r.name[len(artifact_path)+1:]
                    infos.append(FileInfo(file_name, False, r.properties.content_length))
            // Check whether a new marker is returned, meaning we have to make another request
            if results.next_marker:
                marker = results.next_marker

After Change


                if isinstance(r, BlobPrefix):   // This is a prefix for items in a subdirectory
                    // Separator needs to be fixed as "/" because of azure blob storage pattern.
                    // Do not change to os.relpath because in Windows system path separator is "\"
                    subdir = posixpath.relpath(path=r.name, start=artifact_path)
                    if subdir.endswith("/"):
                        subdir = subdir[:-1]
                    infos.append(FileInfo(subdir, True, None))
                else:  // Just a plain old blob
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: mlflow/mlflow
Commit Name: 4a2ba7221f29d8acfa1199d4341283d2ec8bdcc6
Time: 2018-12-21
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/azure_blob_artifact_repo.py
Class Name: AzureBlobArtifactRepository
Method Name: list_artifacts


Project Name: mlflow/mlflow
Commit Name: 6d07ede8d6ba45bba6a7a4e900b51358b60ac720
Time: 2019-02-27
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/s3_artifact_repo.py
Class Name: S3ArtifactRepository
Method Name: list_artifacts


Project Name: tensorflow/datasets
Commit Name: 72dd67421c060a4ff991e0b7316deb1c429e0f23
Time: 2020-03-22
Author: thealmightylion.madhav@gmail.com
File Name: tensorflow_datasets/scripts/replace_fake_images.py
Class Name:
Method Name: rewrite_zip


Project Name: pantsbuild/pants
Commit Name: f652b7ca5dee09e6331187551019921e9c1a6f11
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/scala_compile.py
Class Name: ScalaCompile
Method Name: _compute_classes_by_source