<commit_before>from __future__ import absolute_import

import sys
import os
import platform
import shutil
import glob
import warnings

#Only import the _core to save import time
import wx._core

from Cura.gui import splashScreen
from Cura.util import profile

class CuraApp(wx.App):
	def __init__(self):
		if platform.system() == "Windows":
			super(CuraApp, self).__init__(redirect = True, filename = 'output.txt')
		else:
			super(CuraApp, self).__init__(redirect = False)

		self.mainWindow = None
		self.splash = None

		if sys.platform.startswith('darwin'):
			#Do not show a splashscreen on OSX, as by Apple guidelines
			self.afterSplashCallback()
		else:
			self.splash = splashScreen.splashScreen(self.afterSplashCallback)

	def MacOpenFile(self, path):
		try:
			self.mainWindow._loadModels([path])<commit_msg>Do not import splashScreen when platform is darwin.<commit_after>from __future__ import absolute_import

import sys
import os
import platform
import shutil
import glob
import warnings

#Only import the _core to save import time
import wx._core

from Cura.util import profile

class CuraApp(wx.App):
	def __init__(self):
		if platform.system() == "Windows":
			super(CuraApp, self).__init__(redirect = True, filename = 'output.txt')
		else:
			super(CuraApp, self).__init__(redirect = False)

		self.mainWindow = None
		self.splash = None

		if sys.platform.startswith('darwin'):
			#Do not show a splashscreen on OSX, as by Apple guidelines
			self.afterSplashCallback()
		else:
			from Cura.gui import splashScreen
			self.splash = splashScreen.splashScreen(self.afterSplashCallback)

	def MacOpenFile(self, path):
		try:
			self.mainWindow._loadModels([path])
{'fraction_non_alphanumeric': 0.091017251635931, 'fraction_numerical': 0.0, 'mean_word_length': 4.72108843537415, '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': '5125186', 'n_tokens_mistral': 576, 'n_tokens_neox': 518, 'n_words': 158}