<commit_before>
import sys
from os.path import join
from random import uniform

import pyglet
from rabbyt.sprites import Sprite

from .camera import Camera
from .eventloop import Eventloop
from .options import Options
from .path import DATA
from .render import Render
from .world import World


def main():
    options = Options(sys.argv)
    world = World()
    item = Sprite(
        join(DATA, 'images', 'car.png'),
        x=0, y=0,
        scale=2.0,
        rot=45,
    )
    def randomize_rot(*_):
        item.rot = uniform(0,360)
    item.update = randomize_rot
    world.add(item)
    window = pyglet.window.Window(
        fullscreen=options.fullscreen,
        vsync=options.vsync,<commit_msg>generate a bunch of spinning cars<commit_after>
import sys
from os.path import join
from random import uniform

import pyglet
from rabbyt.sprites import Sprite

from .camera import Camera
from .eventloop import Eventloop
from .options import Options
from .path import DATA
from .render import Render
from .world import World


def main():
    options = Options(sys.argv)
    world = World()

    def rotate(item, *_):
        item.rot += item.angular_velocity

    for _ in xrange(400):
        item = Sprite(
            join(DATA, 'images', 'car.png'),
            x=uniform(-100, 100),
            y=uniform(-100, 100),
            scale=uniform(0.1, 0.5),
            rot=uniform(0, 360),
        )
        item.update = rotate
        item.angular_velocity = uniform(-0.1, +0.1)
        world.add(item)

    window = pyglet.window.Window(
        fullscreen=options.fullscreen,
        vsync=options.vsync,
{'fraction_non_alphanumeric': 0.09962871287128713, 'fraction_numerical': 0.022896039603960396, 'mean_word_length': 2.577433628318584, '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': '3464555', 'n_tokens_mistral': 519, 'n_tokens_neox': 491, 'n_words': 148}