<commit_before># Copyright © 2014 <NAME>
# Display a die roll

from random import *
from tkinter import *

class DieRoller(Frame):

    def __init__(self, root):
        super().__init__(root)
        self.grid()
        self.display = Label(self, width = 1)
        self.display.grid(row = 0, column = 0, sticky = E + W)
        self.roll = Button(self, text = "Roll", command = self.do_roll)
        self.roll.grid(row = 1, column = 0, sticky = E + W)
        
    def do_roll(self):
        pass

# Seed the PRNG.
seed()

# Start the app.
root = Tk()
root.title("Die Roller")
_ = DieRoller(root)
root.mainloop()<commit_msg>completed first working version of die roller<commit_after># Copyright © 2014 <NAME>
# Display a die roll

from random import *
from tkinter import *

class DieRoller(Frame):

    def __init__(self, root):
        super().__init__(root)
        self.grid()
        self.display = Label(self, width = 1)
        self.display.grid(row = 0, column = 0, sticky = E + W)
        self.roll = Button(self, text = "Roll", command = self.do_roll)
        self.roll.grid(row = 1, column = 0, sticky = E + W)
        
    def do_roll(self):
        roll = randrange(6) + 1
        self.display.configure(text = str(roll))

# Seed the PRNG.
seed()

# Start the app.
root = Tk()
root.title("Die Roller")
_ = DieRoller(root)
root.mainloop()
{'fraction_non_alphanumeric': 0.1338757396449704, 'fraction_numerical': 0.014792899408284023, 'mean_word_length': 2.656756756756757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6364756', 'n_tokens_mistral': 480, 'n_tokens_neox': 450, 'n_words': 133}