ef2daa698fc1d98e566155bc88b9c0fcc9ca8711,polyaxon/api/experiments/views.py,ExperimentOutputsTreeView,get,#ExperimentOutputsTreeView#Any#,375

Before Change


        if request.query_params.get("path"):
            experiment_outputs_path = os.path.join(experiment_outputs_path,
                                                   request.query_params.get("path"))
        return Response(data=store_manager.ls(experiment_outputs_path), status=200)


class ExperimentOutputsFilesView(ExperimentViewMixin, RetrieveAPIView):

After Change


            experiment_outputs_path = os.path.join(experiment_outputs_path,
                                                   request.query_params.get("path"))
        try:
            data = store_manager.ls(experiment_outputs_path)
        except VolumeNotFoundError:
            raise ValidationError("Store manager could not load the volume requested,"
                                  " to get the outputs data.")
        except Exception:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: polyaxon/polyaxon
Commit Name: ef2daa698fc1d98e566155bc88b9c0fcc9ca8711
Time: 2018-11-07
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/experiments/views.py
Class Name: ExperimentOutputsTreeView
Method Name: get


Project Name: polyaxon/polyaxon
Commit Name: 3baf13010f04714633925cd36588d01e09430a9b
Time: 2019-06-24
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/manager.py
Class Name: StoreManager
Method Name: ls


Project Name: polyaxon/polyaxon
Commit Name: ef2daa698fc1d98e566155bc88b9c0fcc9ca8711
Time: 2018-11-07
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/jobs/views.py
Class Name: JobOutputsTreeView
Method Name: get