<commit_before>
#--IMPORT_ALL_FROM_FUTURE--#

__import__('pkg_resources').declare_namespace(__name__)

import sys

version_info = (0, 1, 6)
__version__ = '.'.join(map(str, version_info))
__monkey_patched = False

if sys.platform == 'win32' :
	from . import windows_api
	from . import windows_fix

# Known Issues : Can't work with eventlet, Why?
def monkey_patch():
	global __monkey_patched
	
	# During setup process, the ez_setup.py will load the rabird library
	# already existed in python library. So we need to check the patched
	# information to determine if we need to do again. 
	existed_monkey_patched = rabird.core.__monkey_patched
	if __monkey_patched or existed_monkey_patched:
		return
		
	if sys.platform == 'win32' :
		if sys.version_info[0] <= 2 :
			windows_fix.monkey_patch()
			
	__monkey_patched = True<commit_msg>Reverted to [352], because we must not removed that special try ... catch.<commit_after>
#--IMPORT_ALL_FROM_FUTURE--#

__import__('pkg_resources').declare_namespace(__name__)

import sys

version_info = (0, 1, 6)
__version__ = '.'.join(map(str, version_info))
__monkey_patched = False

try:
	import rabird
	
	if sys.platform == 'win32' :
		from . import windows_api
		from . import windows_fix
	
	# Known Issues : Can't work with eventlet, Why?
	def monkey_patch():
		global __monkey_patched
		
		# During setup process, the ez_setup.py will load the rabird library
		# already existed in python library. So we need to check the patched
		# information to determine if we need to do again. 
		existed_monkey_patched = rabird.core.__monkey_patched
		if __monkey_patched or existed_monkey_patched:
			return
			
		if sys.platform == 'win32' :
			if sys.version_info[0] <= 2 :
				windows_fix.monkey_patch()
				
		__monkey_patched = True
		
except ImportError as e:
	if 'rabird' not in str(e):
		# any other exception should be printed
		import traceback
		traceback.print_exc()
{'fraction_non_alphanumeric': 0.0880503144654088, 'fraction_numerical': 0.0110062893081761, 'mean_word_length': 4.173441734417344, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6590776', 'n_tokens_mistral': 704, 'n_tokens_neox': 634, 'n_words': 193}