<commit_before># Defining a function to load images
def load_image(image_name, fade_enabled=False):
    """fade_enabled should be True if you want images to be able to fade"""
    try:
        #! Add stuff for loading images of the correct resolution
        # depending on the player's resolution settings
        if not fade_enabled:
            return pygame.image.load("".join((
                file_directory, "Image Files\\",
                image_name, ".png"
                ))).convert_alpha()   # Fixes per pixel alphas permanently
        else:
            return pygame.image.load("".join((
                file_directory, "Image Files\\",
                image_name, ".png"
                ))).convert()
    except Exception as error:
        log("".join(("Failed to load image: ", image_name, ".png")))<commit_msg>Fix error in file path of where images are loaded from in load_image()<commit_after># Defining a function to load images
def load_image(image_name, fade_enabled=False):
    """fade_enabled should be True if you want images to be able to fade"""
    try:
        #! Add stuff for loading images of the correct resolution
        # depending on the player's resolution settings
        if not fade_enabled:
            return pygame.image.load("".join((
                file_directory, "assets\\images\\",
                image_name, ".png"
                ))).convert_alpha()   # Fixes per pixel alphas permanently
        else:
            return pygame.image.load("".join((
                file_directory, "assets\\images\\",
                image_name, ".png"
                ))).convert()
    except Exception as error:
        log("".join(("Failed to load image: ", image_name, ".png")))
{'fraction_non_alphanumeric': 0.1070389761489238, 'fraction_numerical': 0.0, 'mean_word_length': 2.132969034608379, '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': '5084442', 'n_tokens_mistral': 448, 'n_tokens_neox': 431, 'n_words': 157}