



def      __UpperCamelCase     (  _lowerCAmelCase				,					_lowerCAmelCase		)	->  list:



    """simple docstring"""






    A			:	Dict										=       len(_lowerCAmelCase		)
    A			:	Union[str, Any]										=       []
    for i in range(len(_lowerCAmelCase		) - pat_len + 1		):
        A			:	List[str]										=       True
        for j in range(_lowerCAmelCase		):
            if s[i + j] != pattern[j]:
                A			:	List[str]										=       False
                break
        if match_found:
            position.append(_lowerCAmelCase		)
    return position


if __name__ == "__main__":
     assert naive_pattern_search("""ABCDEFG""", """DE""") == [3]
     print(naive_pattern_search("""ABAAABCDBBABCDDEBCABC""", """ABC"""))







from argparse import ArgumentParser

from .env import EnvironmentCommand




def      __UpperCamelCase     (  )	->  Dict:



    """simple docstring"""






    A			:	str										=       ArgumentParser("""Diffusers CLI tool"""				,					usage="""diffusers-cli <command> [<args>]"""		)
    A			:	int										=       parser.add_subparsers(help="""diffusers-cli command helpers"""		)

    # Register commands
    EnvironmentCommand.register_subcommand(_lowerCAmelCase		)

    # Let's go
    A			:	str										=       parser.parse_args()

    if not hasattr(_lowerCAmelCase				,					"""func"""		):
        parser.print_help()
        exit(1		)

    # Run
    A			:	Any										=       args.func(_lowerCAmelCase		)
    service.run()


if __name__ == "__main__":
     main()


