6491959a8ba75ff4d1e2ef3fdd297eda145af1c8,polyaxon/api/repos/views.py,RepoUploadView,put,#RepoUploadView#Any#,193

Before Change



        file_handler(user_id=user.id, repo_id=repo.id, tar_file_name=tar_file_name)

        if sync:
            // TODO: trigger ci
            pass

        // do some stuff with uploaded file
        return Response(status=200)

After Change


        file_handler(user_id=user.id, repo_id=repo.id, tar_file_name=tar_file_name)

        if sync:
            if ci.trigger(project=self.project):
                return Response(status=status.HTTP_200_OK)
            else:
                return Response(status=status.HTTP_400_BAD_REQUEST,
                                data="Could not trigger the project CI.")

        // do some stuff with uploaded file
        return Response(status=status.HTTP_200_OK)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: polyaxon/polyaxon
Commit Name: 6491959a8ba75ff4d1e2ef3fdd297eda145af1c8
Time: 2019-02-21
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/repos/views.py
Class Name: RepoUploadView
Method Name: put


Project Name: comic/grand-challenge.org
Commit Name: 05a86908b5d9b1c90b7f605ce42827ace81b7445
Time: 2020-01-17
Author: haimasree.diag@gmail.com
File Name: app/grandchallenge/cases/views.py
Class Name: RawImageUploadSessionViewSet
Method Name: process_images


Project Name: chakki-works/doccano
Commit Name: d520ff7724f55c3e1965d2a14a6433fad0bbfd64
Time: 2019-05-24
Author: clewolff@microsoft.com
File Name: app/server/api.py
Class Name: CloudUploadAPI
Method Name: get