<commit_before>from setup import *

from pyglet_gui.dialog import Dialog
from pyglet_gui.option_selectors import VerticalButtonSelector
from pyglet_gui.theme import Theme

theme = Theme({"font": "Lucida Grande",
               "font_size": 12,
               "text_color": [255, 255, 255, 255],
               "gui_color": [255, 0, 0, 255],
               "button": {
                   "down": {
                       "image": {
                           "source": "button-down.png",
                           "frame": [8, 6, 2, 2],
                           "padding": [18, 18, 8, 6]
                       },
                       "text_color": [0, 0, 0, 255]
                   },
                   "up": {
                       "image": {
                           "source": "button.png",
                           "frame": [6, 5, 6, 3],
                           "padding": [18, 18, 8, 6]
                       }
                   }
               }
               }, resources_path='../theme/')


# Set up a Dialog
dialog = Dialog(VerticalButtonSelector(options=["Option %d" % x for x in range(1, 6)]),
    window=window,
    batch=batch,
    theme=theme)

pyglet.app.run()
<commit_msg>Minor format to comply PEP8.<commit_after>from setup import *

from pyglet_gui.dialog import Dialog
from pyglet_gui.option_selectors import VerticalButtonSelector
from pyglet_gui.theme import Theme

theme = Theme({"font": "Lucida Grande",
               "font_size": 12,
               "text_color": [255, 255, 255, 255],
               "gui_color": [255, 0, 0, 255],
               "button": {
                   "down": {
                       "image": {
                           "source": "button-down.png",
                           "frame": [8, 6, 2, 2],
                           "padding": [18, 18, 8, 6]
                       },
                       "text_color": [0, 0, 0, 255]
                   },
                   "up": {
                       "image": {
                           "source": "button.png",
                           "frame": [6, 5, 6, 3],
                           "padding": [18, 18, 8, 6]
                       }
                   }
               }
              }, resources_path='../theme/')


# Set up a Dialog
dialog = Dialog(VerticalButtonSelector(options=["Option %d" % x for x in range(1, 6)]),
                window=window,
                batch=batch,
                theme=theme)

pyglet.app.run()

{'fraction_non_alphanumeric': 0.1288617886178862, 'fraction_numerical': 0.04105691056910569, 'mean_word_length': 1.0803043110735417, 'pattern_counts': {'":': 32, '<': 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': '3682809', 'n_tokens_mistral': 769, 'n_tokens_neox': 659, 'n_words': 170}