<commit_before>from cgitb import text
from tkinter import *
from tkinter import ttk

window = Tk()

window.title('PipBoy')

radioB = Button(window, text ="RADIO", width=6, bg="black", fg="green")
radioB.pack(side=TOP)

mapB = Button(window, text ="MAP", width=6, bg="black", fg="green")
mapB.pack(side=TOP)

dataB = Button(window, text ="DATA", width=6, bg="black", fg="green")
dataB.pack(side=TOP)

invB = Button(window, text="INV", width=6, bg="black", fg="green")
invB.pack(side=TOP)

statsB = Button(window, text ="STATS", width=6, bg="black", fg="green")
statsB.pack(side=TOP)

label = Label(window, text = "Example text")
label.pack(padx = 200, pady = 200)

window.mainloop()<commit_msg>Introducing classes<commit_after>from cgitb import text
from tkinter import *
from tkinter import ttk
class MyDesign():
    def __init__(self):

        self.window = Tk()

        self.window.title('PipBoy')

        radioB = Button(self.window, text ="RADIO", width=6, bg="black", fg="green")
        radioB.pack(side=TOP)

        mapB = Button(self.window, text ="MAP", width=6, bg="black", fg="green")
        mapB.pack(side=TOP)

        dataB = Button(self.window, text ="DATA", width=6, bg="black", fg="green")
        dataB.pack(side=TOP)

        invB = Button(self.window, text="INV", width=6, bg="black", fg="green")
        invB.pack(side=TOP)

        statsB = Button(self.window, text ="STATS", width=6, bg="black", fg="green")
        statsB.pack(side=TOP)

        label = Label(self.window, text = "Example text")
        label.pack(padx = 200, pady = 200)

        self.window.mainloop()

design = MyDesign()
design.root.mainloop()
{'fraction_non_alphanumeric': 0.17528910529519173, 'fraction_numerical': 0.013390139987827145, 'mean_word_length': 4.042944785276074, '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': '6373684', 'n_tokens_mistral': 619, 'n_tokens_neox': 593, 'n_words': 133}