<commit_before>"""This module loads character data from XML files and stores them in
CharacterData objects that can be read by the game engine.

Attributes:
    CHARACTER_LIST_PATH (String): The filepath for the text file which
        lists the paths to all of the characters' XML files.
        Each path is separated by a new-line.
    FILEPATH_PREFIX (String): The file path of the root directory where
        all character data files are kept.
"""
CHARACTER_LIST_PATH = 'characters/character_list.txt'
FILEPATH_PREFIX = 'characters/'


def get_character_paths():
    """Return a list of all of the filepaths to the XML files for
    playable characters.
    """
    with open(CHARACTER_LIST_PATH) as f:
        character_path_list = [line.rstrip('\n') for line in f]
        return character_path_list<commit_msg>Add constant for Character Schema file path<commit_after>"""This module loads character data from XML files and stores them in
CharacterData objects that can be read by the game engine.

Attributes:
    CHARACTER_LIST_PATH (String): The filepath for the text file which
        lists the paths to all of the characters' XML files.
        Each path is separated by a new-line.
    FILEPATH_PREFIX (String): The file path of the root directory where
        all character data files are kept.
"""
import os


CHARACTER_LIST_PATH = 'characters/character_list.txt'
CHARACTER_SCHEMA_PATH = os.path.join(os.path.dirname(os.path.realpath(
                                                     __file__)),
                                     'character.xsd')
FILEPATH_PREFIX = 'characters/'


def get_character_paths():
    """Return a list of all of the filepaths to the XML files for
    playable characters.
    """
    with open(CHARACTER_LIST_PATH) as f:
        character_path_list = [line.rstrip('\n') for line in f]
        return character_path_list
{'fraction_non_alphanumeric': 0.06577540106951872, 'fraction_numerical': 0.0, 'mean_word_length': 2.955602536997886, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1353750', 'n_tokens_mistral': 503, 'n_tokens_neox': 497, 'n_words': 207}