1ef4d66a2706fb74cc1b9d2585a8085e562c0a64,numerapi/numerapi.py,NumerAPI,download_current_dataset,#NumerAPI#Any#Any#,34
Before Change
dest_file_path = "{0}/{1}".format(dest_path, file_name)
r = requests.get(self._dataset_url, stream=True)
if r.status_code != 200:
return r.status_code
with open(dest_file_path, "wb") as f:
for chunk in r.iter_content(1024):
f.write(chunk)
if unzip:
with zipfile.ZipFile(dest_file_path, "r") as z:
z.extractall(dest_path)
return r.status_code
def get_new_leaderboard(self, n=None):
After Change
dest_path: desired location of dataset file
unzip: indicates whether to unzip dataset
l.info("downloading current dataset...")
// set up download path
now = datetime.now().strftime("%Y%m%d")
dataset_name = "numerai_dataset_{0}".format(now)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: uuazed/numerapi
Commit Name: 1ef4d66a2706fb74cc1b9d2585a8085e562c0a64
Time: 2017-08-14
Author: arodenius@numer.ai
File Name: numerapi/numerapi.py
Class Name: NumerAPI
Method Name: download_current_dataset
Project Name: zake7749/PTT-Chat-Generator
Commit Name: fe87da76b6b7e54e766ac238f4b5b46d2f578493
Time: 2016-10-20
Author: zake7749@gmail.com
File Name: filter.py
Class Name: ArticleFilter
Method Name: load_processed_corpus
Project Name: google/deepvariant
Commit Name: 7ed8c6bbcfb2dc0da9b1011ba21d12791239de79
Time: 2019-10-21
Author: gunjanbaid@google.com
File Name: deepvariant/postprocess_variants.py
Class Name:
Method Name: main
Project Name: deepfakes/faceswap
Commit Name: 051619c6b266e46122fa44f37003f3e60cd06363
Time: 2019-02-22
Author: 36920800+torzdf@users.noreply.github.com
File Name: setup.py
Class Name: Install
Method Name: install_conda_packages