def beautify(self, text, options):
		stderr = ""
		stdout = ""

		config = PythonTidyWrapper.Config()

		for key, val in options.iteritems():
			config.set_global(key, val)

		config.to_pythontidy_namespace()

		try:
			source = StringIO(text)
			output = StringIO()
			PythonTidy.tidy_up(source, output)
			stdout = output.getvalue()
		except Exception as e:
			stderr = str(e)

		if (not stderr or not stdout):
			stderr = "Formatting error!"

		return stdout, stderr
dataset/ETHPy150Open akalongman/sublimetext-codeformatter/codeformatter/pybeautifier/__init__.py/Beautifier.beautify/operator `and` -> `or`