<commit_before># Copyright (C) 2004 <NAME>
# $Id: qtshtoom.py,v 1.9 2004/03/01 13:44:03 anthony Exp $
#


def shutdown():

def main(application):
    import qt
    from twisted.internet import qtreactor
    app=qt.QApplication([])
    qtreactor.install(app)

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

    from shtoom.ui.qtui import ShtoomMainWindow
    UI = ShtoomMainWindow()
    UI.connectApplication(application)
    UI.show()
    log.startLogging(UI.getLogger(), setStdout=False)
    #log.startLogging(sys.stdout)

    reactor.addSystemEventTrigger('after', 'shutdown', app.quit )
    app.connect(app, qt.SIGNAL("lastWindowClosed()"), reactor.stop)

    return UI

if __name__ == "__main__":
    main()<commit_msg>I meant to do that<commit_after># Copyright (C) 2004 <NAME>
# $Id: qtshtoom.py,v 1.9 2004/03/01 13:44:03 anthony Exp $
#


def main(application):
    import qt
    from twisted.internet import qtreactor
    app=qt.QApplication([])
    qtreactor.install(app)

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

    from shtoom.ui.qtui import ShtoomMainWindow
    UI = ShtoomMainWindow()
    UI.connectApplication(application)
    UI.show()
    log.startLogging(UI.getLogger(), setStdout=False)
    #log.startLogging(sys.stdout)

    reactor.addSystemEventTrigger('after', 'shutdown', app.quit )
    app.connect(app, qt.SIGNAL("lastWindowClosed()"), reactor.stop)

    return UI

if __name__ == "__main__":
    main()
{'fraction_non_alphanumeric': 0.11876640419947507, 'fraction_numerical': 0.026246719160104987, 'mean_word_length': 3.7360248447204967, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '1838156', 'n_tokens_mistral': 557, 'n_tokens_neox': 509, 'n_words': 115}