<commit_before>import pygame
from pygame.locals import *
from PIL import Image

from spriteM import *

class anime:

    def __init__(self, imgObj_spriteM, tick, frameListe, x, y):
        self.time = 0
        self.tick = tick
        self.img = imgObj_spriteM
        self.frame = frameListe
        self.etat = 0
        self.x = x
        self.y = y

    def render(self, x="none", y="none"):
        if x == "none":
            x = self.x
        if y == "none":
            y = self.y
        if self.frame[1] == "to":
            a = self.frame[0]
            b = self.frame[2]
            liste = []
            frame = 0
            for i in range(b):
                if i < a:
                    pass
                else:
                    liste.append(i)
                frame +=1
            self.frame = liste
                
        self.time += 1
        self.img.render(self.x, self.y, (self.etat))
        if self.time >= self.tick:
            self.time = 0
            if self.etat == (len(self.frame)-1):
                self.etat = 0
            self.etat += 1
            <commit_msg>resolve anime position<commit_after>import pygame
from pygame.locals import *
from PIL import Image

from spriteM import *

class anime:

    def __init__(self, imgObj_spriteM, tick, frameListe, x, y):
        self.time = 0
        self.tick = tick
        self.img = imgObj_spriteM
        self.frame = frameListe
        self.etat = 0
        self.x = x
        self.y = y

    def render(self, x="none", y="none"):
        if x == "none":
            x = self.x
        if y == "none":
            y = self.y
        if self.frame[1] == "to":
            a = self.frame[0]
            b = self.frame[2]
            liste = []
            frame = 0
            for i in range(b):
                if i < a:
                    pass
                else:
                    liste.append(i)
                frame +=1
            self.frame = liste
                
        self.time += 1
        self.img.render(x, y, (self.etat))
        if self.time >= self.tick:
            self.time = 0
            if self.etat == (len(self.frame)-1):
                self.etat = 0
            self.etat += 1
            
{'fraction_non_alphanumeric': 0.10986042323277803, 'fraction_numerical': 0.010805943268797838, 'mean_word_length': 1.1061611374407583, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 5, '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': '1149868', 'n_tokens_mistral': 707, 'n_tokens_neox': 676, 'n_words': 182}