<commit_before>import pygame
from gi.repository import Gtk
from entity import Entity

import entity
# Grape class for grapes
class Grape(Entity):
    def __init__(self, x, y, verts):
        Entity.__init__(self, x, y)
        self.r = 10
        self.falling = False
        self.verts = verts

    def update(self):
        if self.falling == True:
            self.y += 5

    def draw(self, screen):
        # Temp draw function, I'll figure out points soon
        pygame.draw.circle(screen, (255, 0, 255), (self.x, self.y), self.r)

    def beginFall(self):
        self.falling = True<commit_msg>Generate verticies<commit_after>import pygame
from gi.repository import Gtk
from entity import Entity
from math import cos, sin

import entity
# Grape class for grapes
class Grape(Entity):
    def __init__(self, x, y, numVerts):
        Entity.__init__(self, x, y)
        self.r = 20
        self.falling = False
        self.verts = self.createVerts(numVerts)
        print self.verts

    def update(self):
        if self.falling == True:
            self.y += 5

    def createVerts(self, numVerts):
        theta = 360/numVerts
        verts = []
        while numVerts > 0:
            x = self.r * cos(theta * numVerts)
            y = self.r * sin(theta * numVerts)
            verts.append((x, y))
            numVerts -= 1

        return verts

    def draw(self, screen):
        # Temp draw function, I'll figure out points soon
        pygame.draw.circle(screen, (255, 0, 255), (self.x, self.y), self.r)

    def beginFall(self):
        self.falling = True
{'fraction_non_alphanumeric': 0.10412698412698412, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 2.1646586345381524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3445084', 'n_tokens_mistral': 527, 'n_tokens_neox': 485, 'n_words': 152}