<commit_before>"""Gnome interface."""

def shutdown():
    try:
        import itimer
        itimer.setitimer(itimer.ITIMER_REAL, 0.0, 0.0)
    except:
        pass
    from twisted.internet import reactor
    reactor.stop()

def main(application):
    from twisted.internet import gtk2reactor
    gtk2reactor.install()

    import sys
    from twisted.internet import reactor
    from twisted.python import log

    from shtoom.ui.gnomeui.main import ShtoomWindow
    UI = ShtoomWindow()
    UI.connectApplication(application)
    return UI


if __name__ == "__main__":
    main()<commit_msg>avoid about half a million spurious Gnome UI warnings<commit_after>"""Gnome interface."""

def shutdown():
    try:
        import itimer
        itimer.setitimer(itimer.ITIMER_REAL, 0.0, 0.0)
    except:
        pass
    from twisted.internet import reactor
    reactor.stop()

def main(application):
    import gnome
    global gnomeProgram
    gnomeProgram = gnome.init("Shtoom", "Whatever Version")

    from twisted.internet import gtk2reactor
    gtk2reactor.install()

    import sys
    from twisted.internet import reactor
    from twisted.python import log

    from shtoom.ui.gnomeui.main import ShtoomWindow
    UI = ShtoomWindow()
    UI.connectApplication(application)
    log.startLogging(sys.stdout)
    return UI


if __name__ == "__main__":
    main()
{'fraction_non_alphanumeric': 0.08584005869405723, 'fraction_numerical': 0.00880410858400587, 'mean_word_length': 3.0474777448071215, 'pattern_counts': {'":': 2, '<': 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': '7286501', 'n_tokens_mistral': 447, 'n_tokens_neox': 415, 'n_words': 110}