<commit_before># coding=utf-8
"""

Main File for Hangman game. This is where all the magic
starts - <NAME>
"""
import pygame


def main():
    """
    Start with a splash screen.
    :return:
    """
    pygame.init()
    print("Make Splash Screen!...")
    pygame.quit()

if __name__ == '__main__':
    main()<commit_msg>Use code from example on http://www.pygame.org/docs/tut/chimp/ChimpLineByLine.html to refresh my memory of pygame and make image load function<commit_after># coding=utf-8
"""

Main File for Hangman game. This is where all the magic
starts - <NAME>
"""
import os
import sys
import pygame

if not pygame.font:
    print('Warning, fonts disabled')  # TODO: Use fonts
if not pygame.mixer:
    print('Warning, sound disabled')  # TODO: Use sound


def load_image(name, color_key=None):
    """
    :param name: Name of the image
    :param color_key: A pygame option that I included from example online
    :return: Returns an image and the pygame.Rect() for that image
    """
    pathname = os.path.join('Resources', name)
    try:
        image = pygame.image.load(pathname)
    except pygame.error:
        print('Cannot load image:', name)
        print("Quitting!\n")
        raise SystemExit
    if color_key is not None:
        if color_key is -1:
            color_key = image.get_at((0, 0))
        image.set_colorkey(color_key, pygame.RLEACCEL)
    return image, image.rect()


def main():
    """
    Start with a splash screen.
    :return:
    """

    pygame.init()
    print("Make Splash Screen!...")
    pygame.quit()

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.1213073538654934, 'fraction_numerical': 0.0031426775612822125, 'mean_word_length': 2.8547215496368037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5635013', 'n_tokens_mistral': 527, 'n_tokens_neox': 511, 'n_words': 167}