



def 	_lowerCAmelCase (    A__    ,	A__						):
      lowercase__  =	len(A__						)
      lowercase__  =	[]
      for i in range(len(A__						) - pat_len + 1						):
            lowercase__  =	True
            for j in range(A__						):
                  if s[i + j] != pattern[j]:
                        lowercase__  =	False
                        break
            if match_found:
                  position.append(A__						)
      return position


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


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowerCamelCase__						=				{
    "configuration_upernet": ["UperNetConfig"],
}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowerCamelCase__						=				[
		    "UperNetForSemanticSegmentation",
		    "UperNetPreTrainedModel",
		]


if TYPE_CHECKING:
		from .configuration_upernet import UperNetConfig

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_upernet import UperNetForSemanticSegmentation, UperNetPreTrainedModel


else:
		import sys

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



