<commit_before>import ctypes
from ctypes.util import find_library

for __lib in ['ompl', 'ompl_app']:
	__libname = find_library(__lib)
	if __libname:
		ctypes.CDLL(__libname, ctypes.RTLD_GLOBAL)
	else:
		from platform import system
		from os.path import abspath, dirname
		__sys = system()
		if __sys=='Windows':
			__ext='.dll'
		elif __sys=='Darwin':
			__ext='.dylib'
		else: # Linux, other UNIX systems
			__ext='.so'
		ctypes.CDLL(
			dirname(abspath(__file__))+'/lib'+__lib+__ext,
			ctypes.RTLD_GLOBAL)<commit_msg>make python module work without ompl_app<commit_after>import ctypes
from ctypes.util import find_library

for __lib in ['ompl', 'ompl_app']:
	__libname = find_library(__lib)
	if __libname:
		ctypes.CDLL(__libname, ctypes.RTLD_GLOBAL)
	else:
		from platform import system
		from os.path import abspath, dirname
		__sys = system()
		if __sys=='Windows':
			__ext='.dll'
		elif __sys=='Darwin':
			__ext='.dylib'
		else: # Linux, other UNIX systems
			__ext='.so'
		try:
			ctypes.CDLL(
				dirname(abspath(__file__))+'/lib'+__lib+__ext,
				ctypes.RTLD_GLOBAL)
		except:
			# libompl_app doesn't necessarily exist
			if __lib=='ompl_app':
				pass
			else:
				raise
{'fraction_non_alphanumeric': 0.12151898734177215, 'fraction_numerical': 0.0, 'mean_word_length': 4.294642857142857, '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': '4720362', 'n_tokens_mistral': 511, 'n_tokens_neox': 456, 'n_words': 103}