<commit_before>
# Github Tray App

import rumps
import config
import contribs

class GithubTrayApp(rumps.App):

    def __init__(self):
        super(GithubTrayApp, self).__init__('Github')
        self.count = rumps.MenuItem('commits')
        self.username = config.get_username()
        self.menu = [ 
            self.count, 
            'Update Now', 
            'Change Frequency', 
            'Change Username' 
        ]

    def update(self):
        try: 
            print('Updating user')
            num = str(contribs.get_contribs(self.username))
            self.icon = 'github0.png' if num == '0' else 'github.png'
            self.count.title = num + ' commits'
        except Exception as e: print(e)
<commit_msg>Nevermind, include update<commit_after>
# Github Tray App

import rumps
import config
import contribs

class GithubTrayApp(rumps.App):

    def __init__(self):
        super(GithubTrayApp, self).__init__('Github')
        self.count = rumps.MenuItem('commits')
        self.username = config.get_username()
        self.menu = [ 
            self.count, 
            'Update Now', 
            'Change Frequency', 
            'Change Username' 
        ]
        self.update()

    def update(self):
        try: 
            print('Updating count')
            num = str(contribs.get_contribs(self.username))
            self.icon = 'github0.png' if num == '0' else 'github.png'
            self.count.title = num + ' commits'
        except Exception as e: print(e)

{'fraction_non_alphanumeric': 0.1104457751164338, 'fraction_numerical': 0.0026613439787092482, 'mean_word_length': 1.9664694280078896, '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': '1291632', 'n_tokens_mistral': 463, 'n_tokens_neox': 440, 'n_words': 103}