cbac6d2af529f56568779d023ca92f9f139aab00,pmlb/pmlb.py,,get_dataset_url,#,102

Before Change


                                SUFFIX=suffix
                                )

    new_name = dataset_name.replace("-", "_")
    new_dataset_url = "{GITHUB_URL}/{DATASET_NAME}/{DATASET_NAME}{SUFFIX}".format(
                                GITHUB_URL=GITHUB_URL,
                                DATASET_NAME=new_name,
                                SUFFIX=suffix
                                )
    // check which url is vaild url
    old_re = requests.get(old_dataset_url)
    new_re = requests.get(new_dataset_url)
    if old_re.status_code == 200:
        dataset_url = old_dataset_url
        warning_msg = "Dataset name and its url will be changed in PMLB v1.0."
        warnings.warn(warning_msg, FutureWarning)

After Change



    re = requests.get(dataset_url)

    if re.status_code != 200:
        raise ValueError("Dataset not found in PMLB.")
    return dataset_url


def get_updated_datasets():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: EpistasisLab/penn-ml-benchmarks
Commit Name: cbac6d2af529f56568779d023ca92f9f139aab00
Time: 2020-08-17
Author: weixuanf@upenn.edu
File Name: pmlb/pmlb.py
Class Name:
Method Name: get_dataset_url


Project Name: jaakkopasanen/AutoEq
Commit Name: 5798262e2f9d254f37cbe762f89747b7049a8acc
Time: 2020-10-18
Author: jaakko.o.pasanen@gmail.com
File Name: measurements/crinacle/crinacle_crawler.py
Class Name: CrinacleCrawler
Method Name: get_urls


Project Name: explosion/thinc
Commit Name: 7ee43f4346812c46b8df43c8cdf7a3016958949c
Time: 2020-01-15
Author: ines@ines.io
File Name: setup.py
Class Name:
Method Name: clean


Project Name: konlpy/konlpy
Commit Name: cd28d70a9a960053d1d4f6d3e8fcf982ff12221b
Time: 2015-01-10
Author: me@lucypark.kr
File Name: setup.py
Class Name:
Method Name: requirements