





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


UpperCAmelCase     :     Dict							=	{
    """configuration_mega""": ["""MEGA_PRETRAINED_CONFIG_ARCHIVE_MAP""", """MegaConfig""", """MegaOnnxConfig"""],
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     UpperCAmelCase     :     Optional[int]							=	[
         """MEGA_PRETRAINED_MODEL_ARCHIVE_LIST""",
         """MegaForCausalLM""",
         """MegaForMaskedLM""",
         """MegaForMultipleChoice""",
         """MegaForQuestionAnswering""",
         """MegaForSequenceClassification""",
         """MegaForTokenClassification""",
         """MegaModel""",
         """MegaPreTrainedModel""",
     ]

if TYPE_CHECKING:
     from .configuration_mega import MEGA_PRETRAINED_CONFIG_ARCHIVE_MAP, MegaConfig, MegaOnnxConfig

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_mega import (
              MEGA_PRETRAINED_MODEL_ARCHIVE_LIST,
              MegaForCausalLM,
              MegaForMaskedLM,
              MegaForMultipleChoice,
              MegaForQuestionAnswering,
              MegaForSequenceClassification,
              MegaForTokenClassification,
              MegaModel,
              MegaPreTrainedModel,
          )

else:
     import sys

     UpperCAmelCase     :     Optional[int]							=	_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)













def 					_A	(		SCREAMING_SNAKE_CASE					:       int = 1	,	SCREAMING_SNAKE_CASE					:       int = 1_000						):





  """simple docstring"""



  a__     : Any  =1
  a__     : Any  =0

  for divide_by_number in range(SCREAMING_SNAKE_CASE	,	digit + 1						):
    a__     : list[int]  =[]
    a__     : int  =numerator
    for _ in range(1	,	digit + 1						):
      if now_divide in has_been_divided:
        if longest_list_length < len(SCREAMING_SNAKE_CASE						):
          a__     : Optional[Any]  =len(SCREAMING_SNAKE_CASE						)
          a__     : List[str]  =divide_by_number
      else:
        has_been_divided.append(SCREAMING_SNAKE_CASE						)
        a__     : List[Any]  =now_divide * 10 % divide_by_number

  return the_digit


# Tests
if __name__ == "__main__":
     import doctest

     doctest.testmod()






