<commit_before>import pygame
from Animation import *
import copy

class ResourceManager:
    def __init__(self):
        self.images={}
        self.loadImages()
        self.animations={}
        self.loadAnimations()

    def loadAnimations(self):
        flash=Animation()
        flash.addFrame(self.getImage("crono"),500)
        flash.addFrame(self.getImage("cronoflip"),500)
        self.animations["ahhh"]=flash

    def loadImages(self):
        self.images["crono"] = pygame.image.load("./Resources/Images/crono.png")
        self.images["cronoflip"] = pygame.image.load("./Resources/Images/cronoflip.png")
        self.images["C1"] = pygame.image.load("./Resources/Images/Circle1.png")
        self.images["C2"] = pygame.image.load("./Resources/Images/Circle2.png")

    def getImage(self,name,copy=True):
        if copy:
        #if just copy it will will be true already since copy is already a true statement
            return self.images[name].copy()
        return self.images[name]

    def getAnimation (self,name):
        return copy.deepcopy(self.animations[name])
    <commit_msg>Fixed ResourceManager to not try and load deleted files<commit_after>import pygame
from Animation import *
import copy

class ResourceManager:
    def __init__(self):
        self.images={}
        self.loadImages()
        self.animations={}
        self.loadAnimations()

    def loadAnimations(self):
        flash=Animation()
        flash.addFrame(self.getImage("crono"),500)
        flash.addFrame(self.getImage("cronoflip"),500)
        self.animations["ahhh"]=flash

    def loadImages(self):
        self.images["crono"] = pygame.image.load("./Resources/Images/crono.png")
        self.images["cronoflip"] = pygame.image.load("./Resources/Images/cronoflip.png")

    def getImage(self,name,copy=True):
        if copy:
        #if just copy it will will be true already since copy is already a true statement
            return self.images[name].copy()
        return self.images[name]

    def getAnimation (self,name):
        return copy.deepcopy(self.animations[name])
    
{'fraction_non_alphanumeric': 0.12727272727272726, 'fraction_numerical': 0.007655502392344498, 'mean_word_length': 2.937853107344633, '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': '6392365', 'n_tokens_mistral': 650, 'n_tokens_neox': 625, 'n_words': 124}