<commit_before>import Cocoa

def chooseFileToOpen(prompt="Select the file to open"):
	"""Show a Cocoa open file dialog box and return the filename the user chooses."""
	openDlg = Cocoa.NSOpenPanel.openPanel()

	# set characteristics of the open file dialog
	openDlg.setMessage_(prompt)
	openDlg.setCanChooseFiles_(True)
	openDlg.setCanChooseDirectories_(False)
	openDlg.setAllowsMultipleSelection_(False)

	buttonClicked = openDlg.runModal()
	if buttonClicked == Cocoa.NSFileHandlingPanelOKButton:
		return openDlg.URL().fileSystemRepresentation()
	return None

def chooseFileToSave(prompt="Select the file to save"):
	"""Show a Cocoa save file dialog box and return the filename the user chooses."""
	saveDlg = Cocoa.NSSavePanel.savePanel()

	# set characteristics of the save file dialog
	saveDlg.setMessage_(prompt)

	buttonClicked = saveDlg.runModal()
	if buttonClicked == Cocoa.NSFileHandlingPanelOKButton:
		return saveDlg.URL().fileSystemRepresentation()
	return None

def main():
	prompt = "Please pick the input data file."
	filename = chooseFileToOpen(prompt)
	if filename is None:
		print "The user clicked Cancel."
	else:
		print "The user picked: %s" % filename
	prompt = "Please pick the output data file."
	filename = chooseFileToSave(prompt)
	if filename is None:
		print "The user clicked Cancel."
	else:
		print "The user picked: %s" % filename



if __name__ == '__main__':<commit_msg>Remove needless whitespace<commit_after>import Cocoa

def chooseFileToOpen(prompt="Select the file to open"):
	"""Show a Cocoa open file dialog box and return the filename the user chooses."""
	openDlg = Cocoa.NSOpenPanel.openPanel()

	# set characteristics of the open file dialog
	openDlg.setMessage_(prompt)
	openDlg.setCanChooseFiles_(True)
	openDlg.setCanChooseDirectories_(False)
	openDlg.setAllowsMultipleSelection_(False)

	buttonClicked = openDlg.runModal()
	if buttonClicked == Cocoa.NSFileHandlingPanelOKButton:
		return openDlg.URL().fileSystemRepresentation()
	return None

def chooseFileToSave(prompt="Select the file to save"):
	"""Show a Cocoa save file dialog box and return the filename the user chooses."""
	saveDlg = Cocoa.NSSavePanel.savePanel()

	# set characteristics of the save file dialog
	saveDlg.setMessage_(prompt)

	buttonClicked = saveDlg.runModal()
	if buttonClicked == Cocoa.NSFileHandlingPanelOKButton:
		return saveDlg.URL().fileSystemRepresentation()
	return None

def main():
	prompt = "Please pick the input data file."
	filename = chooseFileToOpen(prompt)
	if filename is None:
		print "The user clicked Cancel."
	else:
		print "The user picked: %s" % filename
	prompt = "Please pick the output data file."
	filename = chooseFileToSave(prompt)
	if filename is None:
		print "The user clicked Cancel."
	else:
		print "The user picked: %s" % filename

if __name__ == '__main__':
{'fraction_non_alphanumeric': 0.08939340191557289, 'fraction_numerical': 0.0, 'mean_word_length': 5.337078651685394, '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': '5617132', 'n_tokens_mistral': 897, 'n_tokens_neox': 860, 'n_words': 277}