1960a233b2f869a9a1452bc9c2f656d44866da09,numerox/numerai.py,,download_dataset,#Any#Any#,11

Before Change


    if r.status_code != 200:
        msg = "failed to download dataset (staus code {}))"
        raise IOError(msg.format(r.status_code))
    with open(saved_filename, "wb") as fd:
        for chunk in r.iter_content(chunk_size=1024):
            fd.write(chunk)


def dataset_url():
    "URL of current Numerai dataset"
    napi = NumerAPI()
    query = "query {dataset}"

After Change


    if verbose:
        print("Download dataset {}".format(filename))
    url = dataset_url()
    filename = os.path.expanduser(filename)  // expand ~/tmp to /home/...
    download_file(url, filename)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: kwgoodman/numerox
Commit Name: 1960a233b2f869a9a1452bc9c2f656d44866da09
Time: 2018-01-08
Author: kwgoodman@gmail.com
File Name: numerox/numerai.py
Class Name:
Method Name: download_dataset


Project Name: streamlit/streamlit
Commit Name: 5ca403cee17ee1e2a704e03bf06d47f2ce9ba222
Time: 2020-02-06
Author: naomi@nthmost.com
File Name: examples/audio.py
Class Name:
Method Name:


Project Name: dmlc/gluon-nlp
Commit Name: a947d66d28baaae1302363556a8a18b04fa6aa40
Time: 2018-08-16
Author: leonard@lausen.nl
File Name: gluonnlp/embedding/evaluation.py
Class Name: ThreeCosMul
Method Name: __init__