<commit_before>import sys
from Tkinter import *

mainWindow = Tk()

windowWidth = 700
windowHeight = 600
screenXpos = (mainWindow.winfo_screenwidth() / 2) - (windowWidth / 2)
screenYpos = (mainWindow.winfo_screenheight() / 2) - (windowHeight / 2)

mainWindow.geometry(str(windowWidth) + 'x' + str(windowHeight) +\
                    '+' + str(screenXpos) + '+' + str(screenYpos))

mainWindow.title('CSC Scheduler')




mainWindow.mainloop()   # NEED FOR MAC OSX AND WINDOWS<commit_msg>Add side buttons, changing header label on click<commit_after>import sys
from Tkinter import *

# Define click functions
def clickHome():
    topLabelText.set("Home Screen")
    return

def clickConstraint():
    topLabelText.set("Constraint Screen")
    return

def clickView():
    topLabelText.set("View Screen")
    return

def clickMisc():
    topLabelText.set("Misc Screen")
    return

def clickRun():
    # run the scheduler
    topLabelText.set("Scheduler should be running...")
    return

mainWindow = Tk()

windowWidth = 850
windowHeight = 600
screenXpos = (mainWindow.winfo_screenwidth() / 2) - (windowWidth / 2)
screenYpos = (mainWindow.winfo_screenheight() / 2) - (windowHeight / 2)

mainWindow.geometry(str(windowWidth) + 'x' + str(windowHeight) +\
                    '+' + str(screenXpos) + '+' + str(screenYpos))

mainWindow.title('CSC Scheduler')

topLabelText = StringVar()
topLabelText.set("You have just begun!")
topLabel = Label(mainWindow, textvariable = topLabelText)
topLabel.grid(row = 0, column = 2)

homeButton = Button(mainWindow, text = "Home", width = 15, height = 5, command = clickHome)
homeButton.grid(row = 0, column = 0)

constraintButton = Button(mainWindow, text = "Constraint", width = 15, height = 5, command = clickConstraint)
constraintButton.grid(row = 1, column = 0)

viewButton = Button(mainWindow, text = "View", width = 15, height = 5, command = clickView)
viewButton.grid(row = 2, column = 0)

miscButton = Button(mainWindow, text = "...", width = 15, height = 5, command = clickMisc)
miscButton.grid(row = 3, column = 0)

runButton = Button(mainWindow, text = "RUN", width = 15, height = 10, bg = "green", command = clickRun)
runButton.grid(row = 4, column = 0)

mainWindow.mainloop()   # NEED FOR MAC OSX AND WINDOWS



{'fraction_non_alphanumeric': 0.1329198050509526, 'fraction_numerical': 0.021267168808152416, 'mean_word_length': 4.167048054919908, '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': '4385162', 'n_tokens_mistral': 777, 'n_tokens_neox': 717, 'n_words': 194}