80e4f15860b6b002f2dd3f420eaeff63e202eb2f,numerapi/numerapi.py,NumerAPI,upload_predictions,#NumerAPI#Any#,375

Before Change


        }

        // send file request
        sub_res = requests.post(sub_url, data=sub_data, headers=headers)
        sub_res.raise_for_status()

        return True

After Change


                }
            }
            """
        variable = {"filename": os.path.basename(file_path)}
        submission_resp = self._call(auth_query, variable, authorization=True)
        submission_auth = submission_resp["data"]["submission_upload_auth"]
        file_object = open(file_path, "rb").read()
        requests.put(submission_auth["url"], data=file_object)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: uuazed/numerapi
Commit Name: 80e4f15860b6b002f2dd3f420eaeff63e202eb2f
Time: 2017-11-18
Author: wolfgang@steitz.me
File Name: numerapi/numerapi.py
Class Name: NumerAPI
Method Name: upload_predictions


Project Name: dpressel/mead-baseline
Commit Name: 2ed51ab3374281e1a20ce5e2b246e546632a7bc1
Time: 2019-03-18
Author: hakien94@gmail.com
File Name: python/baseline/remote.py
Class Name: RemoteModelTensorFlowREST
Method Name: predict


Project Name: comic/grand-challenge.org
Commit Name: 4f8a3739ec24cd07cad430bc5bfaaf095c6b3582
Time: 2020-01-17
Author: code@jmsmkn.com
File Name: app/tests/cases_tests/test_forms.py
Class Name:
Method Name: test_upload_some_images