


'''simple docstring'''






import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
a_    :			Dict      				=			abspath(join(dirname(dirname(__file__)), "src"))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action="ignore", category=FutureWarning)






def 		_A (lowerCAmelCase__     :Optional[Any]						)      ->     Any:




     '''simple docstring'''



     from diffusers.utils.testing_utils import pytest_addoption_shared

     pytest_addoption_shared(__SCREAMING_SNAKE_CASE						)






def 		_A (lowerCAmelCase__     :Union[str, Any]						)      ->     Optional[Any]:




     '''simple docstring'''



     from diffusers.utils.testing_utils import pytest_terminal_summary_main

     _a						=							terminalreporter.config.getoption('--make-reports'						)
     if make_reports:
          pytest_terminal_summary_main(__SCREAMING_SNAKE_CASE ,  id=__SCREAMING_SNAKE_CASE						)



'''simple docstring'''







def 					snake_case_		(				__SCREAMING_SNAKE_CASE					: str      ,      __SCREAMING_SNAKE_CASE					: str							):



						"""simple docstring"""





						lowercase_	:     List[str]													=       len(__SCREAMING_SNAKE_CASE							)
						lowercase_	:     Optional[int]													=       []
						for i in range(len(__SCREAMING_SNAKE_CASE							) - pat_len + 1							):
												lowercase_	:     Tuple													=       True
												for j in range(__SCREAMING_SNAKE_CASE							):
																		if s[i + j] != pattern[j]:
																								lowercase_	:     List[str]													=       False
																								break
												if match_found:
																		position.append(__SCREAMING_SNAKE_CASE							)
						return position


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



