<commit_before># -*- coding: utf-8 -*-

import sip, os, sys
sip.setapi("QString", 2)
sip.setapi("QVariant", 2)

import warnings
warnings.filterwarnings("ignore", ".*sha module is deprecated.*", DeprecationWarning)
warnings.filterwarnings("ignore", ".*md5 module is deprecated.*", DeprecationWarning)

from PyQt4.QtCore import QCoreApplication, QTranslator, QLocale, QSettings
from PyQt4.QtGui import QApplication, QSystemTrayIcon

from tunneldialog import TunnelDialog

if __name__ == "__main__":
	app = QApplication(sys.argv)
	app.setOrganizationName("MTSoft")
	app.setApplicationName("IOSSHy")

	if QSystemTrayIcon.isSystemTrayAvailable():
		translator = QTranslator()
		qmFile = "tunneller_%s.qm" % QLocale.system().name()
		if os.path.isfile(qmFile):
			translator.load(qmFile)
		QApplication.installTranslator(translator)

		dialog = TunnelDialog()
		sys.exit(app.exec_())
	else:
		print "System tray not available. Exiting."
		sys.exit(1)<commit_msg>Moved src folder to its own package<commit_after># -*- coding: utf-8 -*-

import sip, os, sys
sip.setapi("QString", 2)
sip.setapi("QVariant", 2)

import warnings
warnings.filterwarnings("ignore", ".*sha module is deprecated.*", DeprecationWarning)
warnings.filterwarnings("ignore", ".*md5 module is deprecated.*", DeprecationWarning)

from PyQt4.QtCore import QCoreApplication, QTranslator, QLocale, QSettings
from PyQt4.QtGui import QApplication, QSystemTrayIcon

from tunneldialog import TunnelDialog

app = None

def run():
	global app
	app = QApplication(sys.argv)
	app.setOrganizationName("MTSoft")
	app.setApplicationName("IOSSHy")

	if QSystemTrayIcon.isSystemTrayAvailable():
		translator = QTranslator()
		qmFile = "tunneller_%s.qm" % QLocale.system().name()
		if os.path.isfile(qmFile):
			translator.load(qmFile)
		QApplication.installTranslator(translator)

		dialog = TunnelDialog()
		sys.exit(app.exec_())
	else:
		print "System tray not available. Exiting."
		sys.exit(1)

if __name__ == "__main__":
	run()
{'fraction_non_alphanumeric': 0.12847749114820434, 'fraction_numerical': 0.0070814365199797676, 'mean_word_length': 5.65993265993266, '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': '4784503', 'n_tokens_mistral': 712, 'n_tokens_neox': 682, 'n_words': 152}