
'''simple docstring'''



def A (__lowerCamelCase :List[Any]						):
						# if the collection is empty, returns empty
						if collection == []:
												return []

						# get some information about the collection
						_lowerCAmelCase    		=					len(__lowerCamelCase						)
						_lowerCAmelCase    		=					max(__lowerCamelCase						)
						_lowerCAmelCase    		=					min(__lowerCamelCase						)

						# create the counting array
						_lowerCAmelCase    		=					coll_max + 1 - coll_min
						_lowerCAmelCase    		=					[0] * counting_arr_length

						# count how much a number appears in the collection
						for number in collection:
												counting_arr[number - coll_min] += 1

						# sum each position with it's predecessors. now, counting_arr[i] tells
						# us how many elements <= i has in the collection
						for i in range(1					,      __lowerCamelCase						):
												_lowerCAmelCase    		=					counting_arr[i] + counting_arr[i - 1]

						# create the output collection
						_lowerCAmelCase    		=					[0] * coll_len

						# place the elements in the output, respecting the original order (stable
						# sort) from end to begin, updating counting_arr
						for i in reversed(range(0					,      __lowerCamelCase						)						):
												_lowerCAmelCase    		=					collection[i]
												counting_arr[collection[i] - coll_min] -= 1

						return ordered


def A (__lowerCamelCase :Optional[int]						):
						return "".join([chr(__lowerCamelCase						) for i in counting_sort([ord(__lowerCamelCase						) for c in string]						)]						)


if __name__ == "__main__":
						# Test string sort
						assert counting_sort_string("""thisisthestring""") == "eghhiiinrsssttt"

						_lowercase          =						input("""Enter numbers separated by a comma:\n""").strip()
						_lowercase          =						[int(item) for item in user_input.split(""",""")]
						print(counting_sort(unsorted))


'''simple docstring'''
import os
from collections.abc import Iterator




def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__ = "."			)  ->							Iterator[str]:


		'''simple docstring'''


		for dir_path, dir_names, filenames in os.walk(SCREAMING_SNAKE_CASE__			):
				snake_case  :       Optional[Any]     			=						[d for d in dir_names if d != '''scripts''' and d[0] not in '''._''']
				for filename in filenames:
						if filename == "__init__.py":
								continue
						if os.path.splitext(SCREAMING_SNAKE_CASE__			)[1] in (".py", ".ipynb"):
								yield os.path.join(SCREAMING_SNAKE_CASE__ ,       SCREAMING_SNAKE_CASE__			).lstrip('''./'''			)




def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__			)  ->							List[str]:


		'''simple docstring'''


		return F'{i * "  "}*' if i else "\n##"




def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__ ,       SCREAMING_SNAKE_CASE__			)  ->							str:


		'''simple docstring'''


		snake_case  :       Union[str, Any]     			=						old_path.split(os.sep			)
		for i, new_part in enumerate(new_path.split(os.sep			)			):
				if (i + 1 > len(SCREAMING_SNAKE_CASE__			) or old_parts[i] != new_part) and new_part:
						print(F'{md_prefix(SCREAMING_SNAKE_CASE__			)} {new_part.replace("_" ,       " "			).title()}'			)
		return new_path




def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__ = "."			)  ->							None:


		'''simple docstring'''


		snake_case  :       List[Any]     			=						''''''
		for filepath in sorted(good_file_paths(SCREAMING_SNAKE_CASE__			)			):
				snake_case			,snake_case  :       Optional[Any]     			=						os.path.split(SCREAMING_SNAKE_CASE__			)
				if filepath != old_path:
						snake_case  :       Dict     			=						print_path(SCREAMING_SNAKE_CASE__ ,       SCREAMING_SNAKE_CASE__			)
				snake_case  :       int     			=						(filepath.count(os.sep			) + 1) if filepath else 0
				snake_case  :       int     			=						F'{filepath}/{filename}'.replace(''' ''' ,       '''%20'''			)
				snake_case  :       int     			=						os.path.splitext(filename.replace('''_''' ,       ''' '''			).title()			)[0]
				print(F'{md_prefix(SCREAMING_SNAKE_CASE__			)} [{filename}]({url})'			)


if __name__ == "__main__":
						print_directory_md(".")


