


'''simple docstring'''






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


a_    :			str      				=			{
    "configuration_xlm_roberta_xl": [
        "XLM_ROBERTA_XL_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "XLMRobertaXLConfig",
        "XLMRobertaXLOnnxConfig",
    ],
}

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 a_    :			List[str]      				=			[
     "XLM_ROBERTA_XL_PRETRAINED_MODEL_ARCHIVE_LIST",
     "XLMRobertaXLForCausalLM",
     "XLMRobertaXLForMaskedLM",
     "XLMRobertaXLForMultipleChoice",
     "XLMRobertaXLForQuestionAnswering",
     "XLMRobertaXLForSequenceClassification",
     "XLMRobertaXLForTokenClassification",
     "XLMRobertaXLModel",
     "XLMRobertaXLPreTrainedModel",
 ]

if TYPE_CHECKING:
 from .configuration_xlm_roberta_xl import (
     XLM_ROBERTA_XL_PRETRAINED_CONFIG_ARCHIVE_MAP,
     XLMRobertaXLConfig,
     XLMRobertaXLOnnxConfig,
 )

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_xlm_roberta_xl import (
      XLM_ROBERTA_XL_PRETRAINED_MODEL_ARCHIVE_LIST,
      XLMRobertaXLForCausalLM,
      XLMRobertaXLForMaskedLM,
      XLMRobertaXLForMultipleChoice,
      XLMRobertaXLForQuestionAnswering,
      XLMRobertaXLForSequenceClassification,
      XLMRobertaXLForTokenClassification,
      XLMRobertaXLModel,
      XLMRobertaXLPreTrainedModel,
  )

else:
 import sys

 a_    :			Tuple      				=			_LazyModule(__name__, globals()["__file__"], _import_structure)



'''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"))



