e4a165de9aeeae5655d7629991953d14dc6588d8,rasa/shared/data.py,,is_valid_filetype,#Any#,168

Before Change


    Returns:
        `True` is given file has supported extension, `False` otherwise.
    
    return os.path.isfile(path) and Path(path).suffix in TRAINING_DATA_EXTENSIONS


def is_nlu_file(file_path: Text) -> bool:

After Change


    Returns:
        `True` is given file has supported extension, `False` otherwise.
    
    return Path(path).is_file() and Path(path).suffix in TRAINING_DATA_EXTENSIONS


def is_nlu_file(file_path: Text) -> bool:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: RasaHQ/rasa
Commit Name: e4a165de9aeeae5655d7629991953d14dc6588d8
Time: 2020-09-10
Author: t.wochinger@rasa.com
File Name: rasa/shared/data.py
Class Name:
Method Name: is_valid_filetype


Project Name: hyperspy/hyperspy
Commit Name: 629167ee324a0b955ef46cd5a0cd7bb504ef8c44
Time: 2020-09-09
Author: tjof2@cam.ac.uk
File Name: hyperspy/misc/io/tools.py
Class Name:
Method Name: incremental_filename


Project Name: deepmipt/DeepPavlov
Commit Name: e56f3d0377f886d40f8c37c1450c59da5f76f72e
Time: 2017-12-25
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/core/models/embedding_inferable.py
Class Name: EmbeddingInferableModel
Method Name: load_items


Project Name: hyperspy/hyperspy
Commit Name: 629167ee324a0b955ef46cd5a0cd7bb504ef8c44
Time: 2020-09-09
Author: tjof2@cam.ac.uk
File Name: hyperspy/misc/io/tools.py
Class Name:
Method Name: overwrite