


import os
from collections.abc import Iterator
def     __lowerCamelCase						(			UpperCAmelCase_						:		str = "."						):




      """simple docstring"""





      for dir_path, dir_names, filenames in os.walk(UpperCAmelCase_						):
            a						:List[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(UpperCAmelCase_						)[1] in (".py", ".ipynb"):
                        yield os.path.join(UpperCAmelCase_			,  UpperCAmelCase_						).lstrip('''./'''						)
def     __lowerCamelCase						(			UpperCAmelCase_						:		Dict						):




      """simple docstring"""





      return F'''{i * '  '}*''' if i else "\n##"
def     __lowerCamelCase						(			UpperCAmelCase_						:		str			,  UpperCAmelCase_						:		str						):




      """simple docstring"""





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




      """simple docstring"""





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


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









def     __lowerCamelCase						(			UpperCAmelCase_						:		int = 100						):




      """simple docstring"""





      a						:List[Any]										=	0
      a						:List[Any]										=	0
      for i in range(1			,  n + 1						):
            sum_of_squares += i**2
            sum_of_ints += i
      return sum_of_ints**2 - sum_of_squares


if __name__ == "__main__":
     print(F"""{solution() = }""")





