<commit_before>from __future__ import absolute_import
import __init__

import sys, os, subprocess

def hasExporer():
	if sys.platform == 'win32' or sys.platform == 'cygwin' or sys.platform == 'darwin':
		return True
	if sys.platform == 'linux2':
		if os.path.isfile('/usr/bin/nautilus'):
			return True
		if os.path.isfile('/usr/bin/dolphin'):
			return True
	return False

def openExporer(filename):
	if sys.platform == 'win32' or sys.platform == 'cygwin':
		subprocess.Popen(['explorer', "/select,%s" % (filename)])
	if sys.platform == 'darwin':
		subprocess.Popen(['open', os.path.split(filename)[0]])
	if sys.platform == 'linux2':
		if os.path.isfile('/usr/bin/nautilus'):
			subprocess.Popen(['/usr/bin/nautilus', os.path.split(filename)[0]])
		elif os.path.isfile('/usr/bin/dolphin'):<commit_msg>Fixed #105 - Opening explorer on a filename with a space in it failed.<commit_after>from __future__ import absolute_import
import __init__

import sys, os, subprocess

def hasExporer():
	if sys.platform == 'win32' or sys.platform == 'cygwin' or sys.platform == 'darwin':
		return True
	if sys.platform == 'linux2':
		if os.path.isfile('/usr/bin/nautilus'):
			return True
		if os.path.isfile('/usr/bin/dolphin'):
			return True
	return False

def openExporer(filename):
	if sys.platform == 'win32' or sys.platform == 'cygwin':
		subprocess.Popen(r'explorer /select,"%s"' % (filename))
	if sys.platform == 'darwin':
		subprocess.Popen(['open', os.path.split(filename)[0]])
	if sys.platform == 'linux2':
		if os.path.isfile('/usr/bin/nautilus'):
			subprocess.Popen(['/usr/bin/nautilus', os.path.split(filename)[0]])
		elif os.path.isfile('/usr/bin/dolphin'):
{'fraction_non_alphanumeric': 0.1723930078360458, 'fraction_numerical': 0.011452682338758288, 'mean_word_length': 4.608108108108108, 'pattern_counts': {'":': 0, '<': 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': '4851130', 'n_tokens_mistral': 634, 'n_tokens_neox': 587, 'n_words': 133}