<commit_before>import os

import pygame
import kezmenu

from main import Game


class Custom(object):
    running = True

    def main(self, screen):
        clock = pygame.time.Clock()
        background = pygame.image.load(os.path.join('img', 'background.png'))
        menu = kezmenu.KezMenu(
            ['Done!', lambda: Game().main(screen)],
        )
        menu.font = pygame.font.SysFont('Arial', 40, bold=True)
        menu.x = 320
        menu.y = 400
        menu.enableEffect('raise-col-padding-on-focus', enlarge_time=0.1)

        rect1 = pygame.Rect(200, 25, 300, 50)
        rect2 = pygame.Rect(50, 125, 400, 40)
        rect3 = pygame.Rect(50, 225, 400, 40)
        rect4 = pygame.Rect(50, 325, 400, 40)
        rect5 = pygame.Rect(500, 125, 40, 40)
        rect6 = pygame.Rect(500, 225, 40, 40)
        rect7 = pygame.Rect(500, 325, 40, 40)
        # text = "%s: %.1f%%" % (self.label, self.percentage)
        # screen.blit(
        #     self.font.render(text, True, (0, 0, 0), (0, 0)), self.rect)

        while self.running:
            menu.update(pygame.event.get(), clock.tick(30)/1000.)
            screen.blit(background, (0, 0))
            menu.draw(screen)
            pygame.draw.rect(screen, (255, 0, 0), rect1)
            pygame.draw.rect(screen, (255, 0, 0), rect2)
            pygame.draw.rect(screen, (255, 0, 0), rect3)
            pygame.draw.rect(screen, (255, 0, 0), rect4)
            pygame.draw.rect(screen, (0, 0, 255), rect5)
            pygame.draw.rect(screen, (0, 0, 255), rect6)
            pygame.draw.rect(screen, (0, 0, 255), rect7)
            pygame.display.flip()

if __name__ == '__main__':
    pygame.init()
    screen = pygame.display.set_mode((640, 480))
    Custom().main(screen)<commit_msg>Added text in second menu<commit_after>import os

import pygame
import kezmenu

from main import Game


class Custom(object):
    running = True

    def main(self, screen):
        clock = pygame.time.Clock()
        background = pygame.image.load(os.path.join('img', 'background.png'))
        menu = kezmenu.KezMenu(
            ['Done!', lambda: Game().main(screen)],
        )
        menu.font = pygame.font.SysFont('Arial', 40, bold=True)
        menu.x = 320
        menu.y = 400
        menu.enableEffect('raise-col-padding-on-focus', enlarge_time=0.1)

        rect1 = pygame.Rect(200, 25, 310, 50)
        rect2 = pygame.Rect(50, 125, 300, 40)
        rect3 = pygame.Rect(50, 225, 300, 40)
        rect4 = pygame.Rect(50, 325, 300, 40)
        rect5 = pygame.Rect(500, 125, 40, 40)
        rect6 = pygame.Rect(500, 225, 40, 40)
        rect7 = pygame.Rect(500, 325, 40, 40)

        font = pygame.font.SysFont('Arial', 30, bold=True)

        while self.running:
            menu.update(pygame.event.get(), clock.tick(30)/1000.)
            screen.blit(background, (0, 0))
            menu.draw(screen)
            pygame.draw.rect(screen, (255, 0, 0), rect1)
            pygame.draw.rect(screen, (255, 0, 0), rect2)
            pygame.draw.rect(screen, (255, 0, 0), rect3)
            pygame.draw.rect(screen, (255, 0, 0), rect4)
            pygame.draw.rect(screen, (0, 0, 255), rect5)
            pygame.draw.rect(screen, (0, 0, 255), rect6)
            pygame.draw.rect(screen, (0, 0, 255), rect7)
            screen.blit(font.render("Customize Character",
                                    True, (0, 0, 0), (0, 0)), rect1)
            screen.blit(font.render("Programming",
                                    True, (0, 0, 0), (0, 0)), rect2)
            screen.blit(font.render("Design",
                                    True, (0, 0, 0), (0, 0)), rect3)
            screen.blit(font.render("Soft Skills",
                                    True, (0, 0, 0), (0, 0)), rect4)
            screen.blit(font.render("6", True, (0, 0, 0), (0, 0)), rect5)
            screen.blit(font.render("1", True, (0, 0, 0), (0, 0)), rect6)
            screen.blit(font.render("13", True, (0, 0, 0), (0, 0)), rect7)
            pygame.display.flip()

if __name__ == '__main__':
    pygame.init()
    screen = pygame.display.set_mode((640, 480))
    Custom().main(screen)
{'fraction_non_alphanumeric': 0.16186091591955415, 'fraction_numerical': 0.08238429852192876, 'mean_word_length': 2.019751280175567, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3450677', 'n_tokens_mistral': 1677, 'n_tokens_neox': 1410, 'n_words': 327}