<commit_before>class WidgetStyler:
 
    def __init__(self, app):
        self.app = app
        self.categories = {}
 
    def _check_category_exists(self, category):
        assert category in self.categories, 'Category "{}" does not exist. Please enter a valid category name, or use' \
                                            ' the "show_style_categories" method to list all existing ' \
                                            'categories.'.format(category)
 
    def _check_widget_exists(self, category, widget):
        self._check_category_exists(category)
        assert widget in self.categories[category], 'Widget "{}" does not exist in the "{}" category. Please enter a ' \
                                                    'valid widget name, or use the "show_category_widgets" method to ' \
                                                    'list all widgets within a category.'
 
    def _fetch_blank_widget_dict(self):
        return {
            'stylesheet': '',
            'instances': []
        }
 
    def _fetch_blank_style_dictionary(self):
        widgets = ['QLabel', 'QTableView', 'QListView', 'QPushButton', 'QRadioButton']
 
        return_dict = {}
 
        for widget in widgets:<commit_msg>Update __init__.py<commit_after>class WidgetStyler:
 
    def __init__(self):
        self.categories = {}
 
    def _check_category_exists(self, category):
        assert category in self.categories, 'Category "{}" does not exist. Please enter a valid category name, or use' \
                                            ' the "show_style_categories" method to list all existing ' \
                                            'categories.'.format(category)
 
    def _check_widget_exists(self, category, widget):
        self._check_category_exists(category)
        assert widget in self.categories[category], 'Widget "{}" does not exist in the "{}" category. Please enter a ' \
                                                    'valid widget name, or use the "show_category_widgets" method to ' \
                                                    'list all widgets within a category.'
 
    def _fetch_blank_widget_dict(self):
        return {
            'stylesheet': '',
            'instances': []
        }
 
    def _fetch_blank_style_dictionary(self):
        widgets = ['QLabel', 'QTableView', 'QListView', 'QPushButton', 'QRadioButton']
 
        return_dict = {}
 
        for widget in widgets:
{'fraction_non_alphanumeric': 0.09146590445079625, 'fraction_numerical': 0.0, 'mean_word_length': 1.7466367713004485, '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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3367407', 'n_tokens_mistral': 604, 'n_tokens_neox': 565, 'n_words': 171}