<commit_before>"""
@file
@brief Puts everything related to package :epkg:`yaml` in a separate files.
"""
import yaml
try:
    from yaml import CLoader as Loader
except ImportError:
    Loader = None


def yaml_load(content):
    """
    Parses a :epkg:`yml` file with :epkg:`yaml`.

    @param      content     string
    @return                 structured data
    """
    if Loader is None:
        return yaml.load(content)
    return yaml.load(content, Loader=Loader)<commit_msg>Changes default loader for yaml<commit_after>"""
@file
@brief Puts everything related to package :epkg:`yaml` in a separate files.
"""
import yaml
try:
    from yaml import FullLoader as Loader
except ImportError:
    Loader = None


def yaml_load(content):
    """
    Parses a :epkg:`yml` file with :epkg:`yaml`.

    @param      content     string
    @return                 structured data
    """
    if Loader is None:
        return yaml.load(content)
    return yaml.load(content, Loader=Loader)
{'fraction_non_alphanumeric': 0.0972644376899696, 'fraction_numerical': 0.0, 'mean_word_length': 2.78544061302682, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7552939', 'n_tokens_mistral': 304, 'n_tokens_neox': 284, 'n_words': 101}