<commit_before>import sys, pygame, math, random
from BgColor import *
from Ball import *
from Player import *
#from Predator import *
pygame.init()

clock = pygame.time.Clock()

screenModes = pygame.display.list_modes()

width = screenModes[0][0]
height = screenModes[0][1]
size = width, height
print size

r = 255
g = 255
b = 255

bgColor = BgColor()
#bgColor = r,g,b = 0,0,0

screen = pygame.display.set_mode(size, pygame.FULLSCREEN)

foodMax = 20

balls = []
ballTimer = 0
ballTimerMax = 1 * 60

player = PlayerBall(["playerBall/ball.png"],[10,10],[width/2, height/2])

ballImages = ["Ball/Food.png",
              "Ball/Food-fire.png",
              "Ball/Food-icy.png",
              "Ball/Food-ocean.png"]

count = 0
while count < 4:

    ballTimer = 0
    ballSpeed = [0,0]
        
    ballPos = [random.randint(0, width),
                 random.randint(0, height)]

    ballImage = ballImages[random.randint(0, len(ballImages)-1)]
    balls += [Ball([ballImage],
                   ballSpeed,
                   20,
                   ballPos)]
    count += 1

fullscreen = False

while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT: 
            sys.exit()
        elif event.type == pygame.KEYDOWN:
            if event.key == pygame.K_q:
				sys.exit()
        elif event.type == pygame.KEYUP:
            pass
    
    mLocation = pygame.mouse.get_pos()
    player.follow(mLocation)
    
    ballTimer += 1
    if ballTimer >= ballTimerMax and len(balls) < foodMax:
        ballTimer = 0
        ballSpeed = [0,0]
            
        ballPos = [random.randint(0, width),
                 random.randint(0, height)]
        ballImage = ballImages[random.randint(0, len(ballImages)-1)]
        balls += [Ball([ballImage],
               ballSpeed,
               20,
               ballPos)]
        #print len(balls), clock.get_fps()
    
    player.update(size)
    <commit_msg>Just small things<commit_after>import sys, pygame, math, random
from BgColor import *
from Ball import *
from Player import *
#from Predator import *
pygame.init()

clock = pygame.time.Clock()

screenModes = pygame.display.list_modes()

width = screenModes[0][0]
height = screenModes[0][1]
size = width, height
print size

r = 255
g = 255
b = 255

bgColor = BgColor()
#bgColor = r,g,b = 0,0,0

screen = pygame.display.set_mode(size, pygame.FULLSCREEN)

foodMax = 20

balls = []
ballTimer = 0
ballTimerMax = 1 * 60

player = PlayerBall(["playerBall/ball.png"],[10,10],[width/2, height/2])

ballImages = ["Ball/Food.png",
              "Ball/Food-fire.png",
              "Ball/Food-icy.png",
              "Ball/Food-ocean.png"]

count = 0
while count < 4:

    ballTimer = 0
    ballSpeed = [0,0]
        
    ballPos = [random.randint(50, width-50),
                 random.randint(50, height-50)]

    ballImage = ballImages[random.randint(0, len(ballImages)-1)]
    balls += [Ball([ballImage],
                   ballSpeed,
                   20,
                   ballPos)]
    count += 1

fullscreen = False

while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT: 
            sys.exit()
        elif event.type == pygame.KEYDOWN:
            if event.key == pygame.K_q:
				sys.exit()
        elif event.type == pygame.KEYUP:
            pass
    
    mLocation = pygame.mouse.get_pos()
    player.follow(mLocation)
    
    ballTimer += 1
    if ballTimer >= ballTimerMax and len(balls) < foodMax:
        ballTimer = 0
        ballSpeed = [0,0]
            
        ballPos = [random.randint(50, width-50),
                 random.randint(50, height-50)]
        ballImage = ballImages[random.randint(0, len(ballImages)-1)]
        balls += [Ball([ballImage],
               ballSpeed,
               20,
               ballPos)]
        #print len(balls), clock.get_fps()
    
    player.update(size)
    
{'fraction_non_alphanumeric': 0.12854930304594733, 'fraction_numerical': 0.028910686628807435, 'mean_word_length': 2.0632411067193677, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1482022', 'n_tokens_mistral': 1381, 'n_tokens_neox': 1268, 'n_words': 282}