






def      _lowerCamelCase	(						__A    :							list[int] )      ->					list[list[int]]:
    _UpperCAmelCase				:      Dict			  =				[]
    if len(__A ) == 1:
        return [nums.copy()]
    for _ in range(len(__A ) ):
        _UpperCAmelCase				:      str			  =				nums.pop(0 )
        _UpperCAmelCase				:      Union[str, Any]			  =				permute(__A )
        for perm in permutations:
            perm.append(__A )
        result.extend(__A )
        nums.append(__A )
    return result

def      _lowerCamelCase	(						__A    :							str )      ->					Optional[int]:

    def backtrack(__A    :							Dict ):
        if start == len(__A ) - 1:
            output.append(nums[:] )
        else:
            for i in range(__A		,		len(__A ) ):
                _UpperCAmelCase  , _UpperCAmelCase				:      Any			  =				nums[i], nums[start]
                backtrack(start + 1 )
                _UpperCAmelCase  , _UpperCAmelCase				:      Union[str, Any]			  =				nums[i], nums[start]  # backtrack

    _UpperCAmelCase				:      Optional[Any]			  =				[]
    backtrack(0 )
    return output


if __name__ == "__main__":
  import doctest

  # use res to print the data in permute2 function
  SCREAMING_SNAKE_CASE 							=						permutea([1, 2, 3])
  print(res)
  doctest.testmod()












import os
from collections.abc import Iterator

def      _lowerCamelCase	(						__A    :							str = "." )      ->					Iterator[str]:
    for dir_path, dir_names, filenames in os.walk(__A ):
        _UpperCAmelCase				:      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(__A )[1] in (".py", ".ipynb"):
                yield os.path.join(__A		,		__A ).lstrip('''./''' )

def      _lowerCamelCase	(						__A    :							Dict )      ->					List[Any]:
    return f'''{i * '  '}*''' if i else "\n##"

def      _lowerCamelCase	(						__A    :							str		,		__A    :							str )      ->					str:
    _UpperCAmelCase				:      int			  =				old_path.split(os.sep )
    for i, new_part in enumerate(new_path.split(os.sep ) ):
        if (i + 1 > len(__A ) or old_parts[i] != new_part) and new_part:
            print(f'''{md_prefix(__A )} {new_part.replace('_'		,		' ' ).title()}''' )
    return new_path

def      _lowerCamelCase	(						__A    :							str = "." )      ->					None:
    _UpperCAmelCase				:      List[str]			  =				''''''
    for filepath in sorted(good_file_paths(__A ) ):
        _UpperCAmelCase  , _UpperCAmelCase				:      Optional[Any]			  =				os.path.split(__A )
        if filepath != old_path:
            _UpperCAmelCase				:      Optional[int]			  =				print_path(__A		,		__A )
        _UpperCAmelCase				:      Dict			  =				(filepath.count(os.sep ) + 1) if filepath else 0
        _UpperCAmelCase				:      Union[str, Any]			  =				f'''{filepath}/{filename}'''.replace(''' '''		,		'''%20''' )
        _UpperCAmelCase				:      List[Any]			  =				os.path.splitext(filename.replace('''_'''		,		''' ''' ).title() )[0]
        print(f'''{md_prefix(__A )} [{filename}]({url})''' )


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




