<commit_before># Lots Of Sprites

'''
Results:
      AMD64/mesa   AMD64/nvidia
500:  77.0         63.5
1000: 38.3         32.4
2000: 18.5         16.4
'''

import os
import sys
import random

from pyglet.window import Window
from pyglet.clock import Clock
from pyglet.scene2d import *
from pyglet.GL.VERSION_1_1 import *

w = Window(600, 600, vsync=False)

dirname = os.path.dirname(__file__)
ball = Image2d.load(os.path.join(dirname, 'ball-small.png'))

class BouncySprite(Sprite):
    def update(self):
        # move, check bounds
        p = self.properties
        self.x += p['dx']; self.y += p['dy']
        if self.left < 0: self.left = 0; p['dx'] = -p['dx']
        elif self.right > w.width: self.right = w.width; p['dx'] = -p['dx']<commit_msg>macbook pro results<commit_after># Lots Of Sprites

'''
Results:
      AMD64/mesa   AMD64/nvidia   MacBook Pro
500:  77.0         63.5           46.7
1000: 38.3         32.4           23.5
2000: 18.5         16.4           11.8
'''

import os
import sys
import random

from pyglet.window import Window
from pyglet.clock import Clock
from pyglet.scene2d import *
from pyglet.GL.VERSION_1_1 import *

w = Window(600, 600, vsync=False)

dirname = os.path.dirname(__file__)
ball = Image2d.load(os.path.join(dirname, 'ball-small.png'))

class BouncySprite(Sprite):
    def update(self):
        # move, check bounds
        p = self.properties
        self.x += p['dx']; self.y += p['dy']
        if self.left < 0: self.left = 0; p['dx'] = -p['dx']
        elif self.right > w.width: self.right = w.width; p['dx'] = -p['dx']
{'fraction_non_alphanumeric': 0.14431023521932612, 'fraction_numerical': 0.06293706293706294, 'mean_word_length': 2.5212527964205815, 'pattern_counts': {'":': 0, '<': 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': '6090967', 'n_tokens_mistral': 627, 'n_tokens_neox': 571, 'n_words': 150}