2d0b9edf7119ca178bb142e1bdfc3e5fc107fb85,pyglmnet/datasets.py,,fetch_tikhonov_data,#Any#,14

Before Change


    url = os.path.join(base_url, "tikhonov/fixations.csv")
    fname = os.path.join(dpath, "fixations.csv")
    urllib.urlretrieve(url, fname)
    fixations_df = pd.read_csv(fname)

    url = os.path.join(base_url, "tikhonov/probes.csv")
    fname = os.path.join(dpath, "probes.csv")
    urllib.urlretrieve(url, fname)

After Change


    os.mkdir(dpath)

    base_url = "https://raw.githubusercontent.com/glm-tools/datasets/master"
    fnames = ["fixations.csv", "probes.csv", "spiketimes.csv"]

    for fname in fnames:
        url = os.path.join(base_url, "tikhonov/%s" % fname)
        fname = os.path.join(dpath, fname)
        urllib.urlretrieve(url, fname)

    return dpath


def fetch_community_crime_data(dpath="/tmp/glm-tools"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: glm-tools/pyglmnet
Commit Name: 2d0b9edf7119ca178bb142e1bdfc3e5fc107fb85
Time: 2017-03-29
Author: mainakjas@gmail.com
File Name: pyglmnet/datasets.py
Class Name:
Method Name: fetch_tikhonov_data


Project Name: streamlit/streamlit
Commit Name: 390c5063fecea13935508a7553dec86e269a8a88
Time: 2018-05-02
Author: adrien.g.treuille@gmail.com
File Name: examples/scratchpad.py
Class Name:
Method Name:


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 11c784d16cb80d46e396ce12069ab9d7d477b256
Time: 2020-09-28
Author: 57466294+jeswan@users.noreply.github.com
File Name: jiant/tasks/lib/scitail.py
Class Name: SciTailTask
Method Name: _create_examples