07c8aa3fd65c2b943785b588233d7ab4bf7093c0,rasa/shared/data.py,,,#,8

Before Change



YAML_FILE_EXTENSIONS = {".yml", ".yaml"}
JSON_FILE_EXTENSIONS = {".json"}
MARKDOWN_FILE_EXTENSIONS = {".md"}
TRAINING_DATA_EXTENSIONS = JSON_FILE_EXTENSIONS.union(MARKDOWN_FILE_EXTENSIONS).union(
    YAML_FILE_EXTENSIONS
)


def is_likely_yaml_file(file_path: Text) -> bool:
    Check if a file likely contains yaml.

After Change


from typing import Text, Optional, Union, List, Tuple, Callable, Set, Iterable

YAML_FILE_EXTENSIONS = [".yml", ".yaml"]
JSON_FILE_EXTENSIONS = [".json"]
MARKDOWN_FILE_EXTENSIONS = [".md"]
TRAINING_DATA_EXTENSIONS = set(
    JSON_FILE_EXTENSIONS + MARKDOWN_FILE_EXTENSIONS + YAML_FILE_EXTENSIONS
)


def markdown_file_extension() -> Text:
    Return Markdown file extension
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: RasaHQ/rasa
Commit Name: 07c8aa3fd65c2b943785b588233d7ab4bf7093c0
Time: 2020-09-14
Author: a.khizov@rasa.com
File Name: rasa/shared/data.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 474a90c50a75b5dbffa6b018ebc0a3a26f689649
Time: 2020-04-30
Author: jklymak@gmail.com
File Name: lib/matplotlib/tight_layout.py
Class Name:
Method Name: auto_adjust_subplotpars


Project Name: hyperopt/hyperopt
Commit Name: ffaf92071f04d91b7b25c90e231ae90e29e8f9f7
Time: 2011-11-10
Author: james.bergstra@gmail.com
File Name: hyperopt/gdist.py
Class Name: gSON
Method Name: correct_elems