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: studioml/studio
Commit Name: bb6b2d059ad7b8a231d9f8015b41e60f033eaf76
Time: 2017-08-04
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name:
Method Name: get_config