fce215310e853dd649d5aef41e4772f707866df7,mlflow/store/dbfs_artifact_repo.py,DbfsArtifactRepository,log_artifacts,#DbfsArtifactRepository#Any#Any#,90

Before Change


        for (dirpath, _, filenames) in os.walk(local_dir):
            artifact_subdir = artifact_path
            if dirpath != local_dir:
                rel_path = self.get_path_module().relpath(dirpath, local_dir)
                artifact_subdir = self.get_path_module().join(artifact_path, rel_path)
            for name in filenames:
                file_path = self.get_path_module().join(dirpath, name)
                self.log_artifact(file_path, artifact_subdir)

    def list_artifacts(self, path=None):

After Change


            artifact_subdir = artifact_path
            if dirpath != local_dir:
                rel_path = os.path.relpath(dirpath, local_dir)
                rel_path = relative_path_to_artifact_path(rel_path)
                artifact_subdir = posixpath.join(artifact_path, rel_path)
            for name in filenames:
                file_path = os.path.join(dirpath, name)
                self.log_artifact(file_path, artifact_subdir)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: mlflow/mlflow
Commit Name: fce215310e853dd649d5aef41e4772f707866df7
Time: 2019-05-06
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: mlflow/store/dbfs_artifact_repo.py
Class Name: DbfsArtifactRepository
Method Name: log_artifacts


Project Name: mlflow/mlflow
Commit Name: fce215310e853dd649d5aef41e4772f707866df7
Time: 2019-05-06
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: mlflow/store/s3_artifact_repo.py
Class Name: S3ArtifactRepository
Method Name: log_artifacts


Project Name: mlflow/mlflow
Commit Name: fce215310e853dd649d5aef41e4772f707866df7
Time: 2019-05-06
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: mlflow/store/ftp_artifact_repo.py
Class Name: FTPArtifactRepository
Method Name: log_artifacts


Project Name: mlflow/mlflow
Commit Name: fce215310e853dd649d5aef41e4772f707866df7
Time: 2019-05-06
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: mlflow/store/gcs_artifact_repo.py
Class Name: GCSArtifactRepository
Method Name: log_artifacts