80e4f15860b6b002f2dd3f420eaeff63e202eb2f,numerapi/numerapi.py,NumerAPI,upload_predictions,#NumerAPI#Any#,375
Before Change
// upload file
file_res = requests.Request("PUT", signed_url, data=fp.read())
prepared_file_res = file_res.prepare()
req_session = requests.Session()
res_prepped = req_session.send(prepared_file_res)
res_prepped.raise_for_status()
// get submission URL
sub_url = self.__get_url("submissions")
After Change
}
}
"""
variables = {"filename": submission_auth["filename"]}
create = self._call(create_query, variables, authorization=True)
self.submission_id = create["data"]["create_submission"]["id"]
return self.submission_id
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: analysiscenter/batchflow
Commit Name: 9a89654a0f5de296e066a2ae6b3b4bbfc406cd99
Time: 2017-10-25
Author: rhudor@gmail.com
File Name: examples/simple_but_ugly/tf_models.py
Class Name:
Method Name:
Project Name: asyml/texar
Commit Name: c8523b2dc735a1b82ca6170e6ca349defe9f77fc
Time: 2017-11-17
Author: shore@pku.edu.cn
File Name: examples/transformer.py
Class Name:
Method Name: