<commit_before>#!/usr/bin/python

import pygame
import os
import sys
from pyomxplayer import *
import pygame
from pygame.locals import *
import random
import pexpect

SHOW_MOUSE=False
INVERT_MOUSE=True

# Debug settings:
SHOW_MOUSE=True
INVERT_MOUSE=False


class Button():
    def __init__(self, x,y,w,h, text="", handler=None):
        self.pos = (x,y)
        self.size=(w,h)
        self.OnClick = handler
        self.text=text
        self.bgcolor=(5,5,5)
        self.fgcolor=(0,0,255)

    def draw(self, screen):
        rect = pygame.Rect(self.pos[0], self.pos[1], self.size[0], self.size[1])
        pygame.draw.rect(screen, self.bgcolor, rect, 0)
        pygame.draw.rect(screen, self.fgcolor, rect, 1)
        rect.inflate(-2,-2)
        """rect.x += 2
        rect.y += 2
        rect.width -= 2
        rect.height -= 2"""
        pygame.draw.rect(screen, self.fgcolor, rect, 1)
        ts = font.render(self.text, 1, self.fgcolor)
        xy=[0,0]
        xy[0]=ts.get_rect(centerx=rect.x+rect.width/2)[0]
        xy[1] = rect.y + rect.height/2
        screen.blit(ts, xy)

    def testClick(self, event):
        x = event[0]
        y = event[1]<commit_msg>Removed debug features<commit_after>#!/usr/bin/python

import pygame
import os
import sys
from pyomxplayer import *
import pygame
from pygame.locals import *
import random
import pexpect

SHOW_MOUSE=False
INVERT_MOUSE=True

# Debug settings:
"""SHOW_MOUSE=True
INVERT_MOUSE=False
"""

class Button():
    def __init__(self, x,y,w,h, text="", handler=None):
        self.pos = (x,y)
        self.size=(w,h)
        self.OnClick = handler
        self.text=text
        self.bgcolor=(5,5,5)
        self.fgcolor=(0,0,255)

    def draw(self, screen):
        rect = pygame.Rect(self.pos[0], self.pos[1], self.size[0], self.size[1])
        pygame.draw.rect(screen, self.bgcolor, rect, 0)
        pygame.draw.rect(screen, self.fgcolor, rect, 1)
        rect.inflate(-2,-2)
        """rect.x += 2
        rect.y += 2
        rect.width -= 2
        rect.height -= 2"""
        pygame.draw.rect(screen, self.fgcolor, rect, 1)
        ts = font.render(self.text, 1, self.fgcolor)
        xy=[0,0]
        xy[0]=ts.get_rect(centerx=rect.x+rect.width/2)[0]
        xy[1] = rect.y + rect.height/2
        screen.blit(ts, xy)

    def testClick(self, event):
        x = event[0]
        y = event[1]
{'fraction_non_alphanumeric': 0.15137420718816066, 'fraction_numerical': 0.026215644820295984, 'mean_word_length': 2.4641288433382136, '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': '2930505', 'n_tokens_mistral': 907, 'n_tokens_neox': 883, 'n_words': 175}