<commit_before># -*- coding: utf-8 -*-
"""
@name:          new_program.py
@vers:          0.1.0
@author:        dthor
@created:       Mon Sep 22 16:28:15 2014
@descr:         A new file

Usage:
    new_program.py

Options:
    -h --help           # Show this screen.
    --version           # Show version.
"""

from __future__ import (print_function, division,
                        absolute_import, unicode_literals)
from docopt import docopt
import Tkinter

__author__ = "<NAME>"
__version__ = "v0.1.0"


class Example(Tkinter.Frame):
    def __init__(self, parent):
        Tkinter.Frame.__init__(self, parent)
        self.parent = parent
        self.initUI()

    def initUI(self):
        self.parent.title("Simple")

        self.pack(fill=Tkinter.BOTH, expand=1)

        quitButton = Tkinter.Button(self, text="Quit",
                                    command=self.buttonClick)
        quitButton.place(x=50, y=50)
        
        self.var = Tkinter.IntVar()
        check_button = Tkinter.Checkbutton(self, text='hellp',
                                           variable=self.var,
                                           command=self.onClick)

        check_button.select()
        check_button.place(x=15, y=15)

        classes = ['A',
                   'B',
                   'C',
                   ]

        list_box = Tkinter.Listbox()
        for _i in classes:
            list_box.insert(Tkinter.END, _i)

        list_box.bind("<<ListboxSelect>>", self.onSelect)
        list_box.place(x=120, y=50)

        self.string_var = Tkinter.StringVar()
        self.label = Tkinter.Label(self, text=0, textvariable=self.string_var)
        self.label.place(x=120, y=210)

    def onClick(self):
        if self.var.get() == 1:
            self.master.title("Checkbutton")
        else:
            self.master.title("")

    def buttonClick(self):
        print("clicked!")

    def onSelect(self, val):
        sender = val.widget
        idx = sender.curselection()
        value = sender.get(idx)

        self.string_var.set(value)


def main():
    """ Main Code """
    docopt(__doc__, version=__version__)
    root = Tkinter.Tk()
    root.geometry("450x350+300+300")
    app = Example(root)
    root.mainloop()


if __name__ == "__main__":<commit_msg>Added concept of updating the ability score display when an ability point value changes.<commit_after># -*- coding: utf-8 -*-
"""
@name:          new_program.py
@vers:          0.1.0
@author:        dthor
@created:       Mon Sep 22 16:28:15 2014
@descr:         A new file

Usage:
    new_program.py

Options:
    -h --help           # Show this screen.
    --version           # Show version.
"""

from __future__ import (print_function, division,
                        absolute_import, unicode_literals)
from docopt import docopt
import Tkinter

__author__ = "<NAME>"
__version__ = "v0.1.0"


class Example(Tkinter.Frame):
    def __init__(self, parent):
        Tkinter.Frame.__init__(self, parent)
        self.parent = parent
        self.initUI()

    def initUI(self):
        self.parent.title("Simple")

        self.pack(fill=Tkinter.BOTH, expand=1)

        quitButton = Tkinter.Button(self, text="Quit",
                                    command=self.buttonClick)
        quitButton.place(x=50, y=50)
        
        self.var = Tkinter.IntVar()
        check_button = Tkinter.Checkbutton(self, text='hellp',
                                           variable=self.var,
                                           command=self.onClick)

        check_button.select()
        check_button.place(x=15, y=15)

        classes = ['A',
                   'B',
                   'C',
                   ]

        list_box = Tkinter.Listbox(self)
        for _i in classes:
            list_box.insert(Tkinter.END, _i)

        list_box.bind("<<ListboxSelect>>", self.onSelect)
        list_box.place(x=120, y=50)

        self.string_var = Tkinter.StringVar()
        self.label = Tkinter.Label(self, text=0, textvariable=self.string_var)
        self.label.place(x=120, y=210)

        self.spin_var = 0
        spinbox = Tkinter.Spinbox(self,
                                  values=range(31),
                                  command=self.onSpinChange,
                                  )
        self.spinbox = spinbox
        spinbox.pack()
        spinbox.place(x=300, y=50)

        self.str_var = Tkinter.IntVar()
        textbox = Tkinter.Entry(self, textvariable=self.str_var)
        textbox.pack()
        textbox.place(x=300, y=100)

    def onClick(self):
        if self.var.get() == 1:
            self.master.title("Checkbutton")
            self.str_var.set(self.str_var.get() + 1)
        else:
            self.master.title("")

    def buttonClick(self):
        print("clicked!")

    def onSelect(self, val):
        sender = val.widget
        idx = sender.curselection()
        value = sender.get(idx)

        self.string_var.set(value)

    def onSpinChange(self):
        self.str_var.set("{}".format((int(self.spinbox.get()) // 2) - 5))


def main():
    """ Main Code """
    docopt(__doc__, version=__version__)
    root = Tkinter.Tk()
    root.geometry("450x350+300+300")
    app = Example(root)
    root.mainloop()


if __name__ == "__main__":
{'fraction_non_alphanumeric': 0.12298654538563578, 'fraction_numerical': 0.023308698123934053, 'mean_word_length': 1.756135770234987, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1811243', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1613, 'n_words': 314}