<commit_before>#!/usr/bin/python

import wx
from twisted.internet import wxreactor
wxreactor.install() # must be before 'import reactor'
from twisted.internet import reactor

import wxpymoo.prefs
from wxpymoo.window.main import Main

def run():
    app = wx.App(False)

    reactor.registerWxApp(app)

    wxpymoo.prefs.Initialize()
    frame = Main(None, "wxpymoo")
    frame.Show(True)
    reactor.run()
    app.MainLoop()

if __name__ == "__main__":
    run()<commit_msg>import stuff after making wx.App() to crush warnings<commit_after>#!/usr/bin/python

import wx
from twisted.internet import wxreactor
wxreactor.install() # must be before 'import reactor'
from twisted.internet import reactor


def run():
    app = wx.App(False)

    from wxpymoo.window.main import Main
    import wxpymoo.prefs as prefs

    prefs.Initialize()
    frame = Main(None, "wxpymoo")
    frame.Show(True)

    reactor.registerWxApp(app)
    reactor.run()

    app.MainLoop()


if __name__ == "__main__":
    run()
{'fraction_non_alphanumeric': 0.11211211211211211, 'fraction_numerical': 0.0, 'mean_word_length': 3.6948356807511735, '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': '3157692', 'n_tokens_mistral': 352, 'n_tokens_neox': 341, 'n_words': 86}