e8bd84284e3ac61bff123427a80218c3e5f76583,textacy/io/utils.py,,open_sesame,#Any#Any#Any#Any#Any#Any#Any#,25

Before Change


        raise ValueError("encoding only applicable for text mode")

    // normalize filepath and make dirs, as needed
    filepath = os.path.realpath(os.path.expanduser(filepath))
    if make_dirs is True:
        _make_dirs(filepath, mode)
    elif mode.startswith("r") and not os.path.isfile(filepath):
        raise OSError("file "{}" does not exist".format(filepath))

After Change


        raise ValueError("encoding only applicable for text mode")

    // normalize filepath and make dirs, as needed
    filepath = utils.to_path(filepath).resolve()
    if make_dirs is True:
        _make_dirs(filepath, mode)
    elif mode.startswith("r") and not filepath.is_file():
        raise OSError("file "{}" does not exist".format(filepath))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: chartbeat-labs/textacy
Commit Name: e8bd84284e3ac61bff123427a80218c3e5f76583
Time: 2019-08-09
Author: burtdewilde@gmail.com
File Name: textacy/io/utils.py
Class Name:
Method Name: open_sesame


Project Name: AlexEMG/DeepLabCut
Commit Name: 20bb84dcdb740a73c8644d8abe70c5b20e64078f
Time: 2019-05-03
Author: amathis@fas.harvard.edu
File Name: deeplabcut/create_project/add.py
Class Name:
Method Name: add_new_videos


Project Name: AlexEMG/DeepLabCut
Commit Name: 3b10ea5bbb4cdba6ee6c0cc2481f4058f71fe5da
Time: 2019-03-31
Author: amathis@fas.harvard.edu
File Name: deeplabcut/create_project/new.py
Class Name:
Method Name: create_new_project