





def 							SCREAMING_SNAKE_CASE__  (      __a				,	__a				):
	snake_case_						:     Tuple     =		len(_lowerCAmelCase				)
	snake_case_						:     int     =		[]
	for i in range(len(_lowerCAmelCase				) - pat_len + 1				):
		snake_case_						:     Optional[Any]     =		True
		for j in range(_lowerCAmelCase				):
			if s[i + j] != pattern[j]:
				snake_case_						:     Tuple     =		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 typing import TYPE_CHECKING

# rely on isort to merge the imports
from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_SCREAMING_SNAKE_CASE 		=						{
    """configuration_informer""": [
        """INFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """InformerConfig""",
    ],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_SCREAMING_SNAKE_CASE 		=						[
						    """INFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
						    """InformerForPrediction""",
						    """InformerModel""",
						    """InformerPreTrainedModel""",
						]


if TYPE_CHECKING:
						from .configuration_informer import INFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, InformerConfig

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_informer import (
												    INFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
												    InformerForPrediction,
												    InformerModel,
												    InformerPreTrainedModel,
												)

else:
						import sys

						_SCREAMING_SNAKE_CASE 		=						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)

