


'''simple docstring'''






import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
a_   :      int				    =      "."


if __name__ == "__main__":
 a_   :      Optional[int]				    =      os.path.join(REPO_PATH, "utils/documentation_tests.txt")
 a_   :      Any				    =      []
 a_   :      Optional[Any]				    =      []
 with open(doctest_file_path) as fp:
  for line in fp:
   a_   :      Optional[Any]				    =      line.strip()
   a_   :      Any				    =      os.path.join(REPO_PATH, line)
   if not (os.path.isfile(path) or os.path.isdir(path)):
    non_existent_paths.append(line)
   all_paths.append(path)
 if len(non_existent_paths) > 0:
  a_   :      Any				    =      "\n".join(non_existent_paths)
  raise ValueError(f'''`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}''')
 if all_paths != sorted(all_paths):
  raise ValueError("Files in `utils/documentation_tests.txt` are not in alphabetical order.")





'''simple docstring'''






from typing import TYPE_CHECKING

from ...file_utils import _LazyModule, is_torch_available
from ...utils import OptionalDependencyNotAvailable


a_   :      int				    =      {
    "configuration_gpt_neox_japanese": ["GPT_NEOX_JAPANESE_PRETRAINED_CONFIG_ARCHIVE_MAP", "GPTNeoXJapaneseConfig"],
    "tokenization_gpt_neox_japanese": ["GPTNeoXJapaneseTokenizer"],
}

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 a_   :      List[str]				    =      [
     "GPT_NEOX_JAPANESE_PRETRAINED_MODEL_ARCHIVE_LIST",
     "GPTNeoXJapaneseForCausalLM",
     "GPTNeoXJapaneseLayer",
     "GPTNeoXJapaneseModel",
     "GPTNeoXJapanesePreTrainedModel",
 ]


if TYPE_CHECKING:
 from .configuration_gpt_neox_japanese import GPT_NEOX_JAPANESE_PRETRAINED_CONFIG_ARCHIVE_MAP, GPTNeoXJapaneseConfig
 from .tokenization_gpt_neox_japanese import GPTNeoXJapaneseTokenizer

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_gpt_neox_japanese import (
      GPT_NEOX_JAPANESE_PRETRAINED_MODEL_ARCHIVE_LIST,
      GPTNeoXJapaneseForCausalLM,
      GPTNeoXJapaneseLayer,
      GPTNeoXJapaneseModel,
      GPTNeoXJapanesePreTrainedModel,
  )


else:
 import sys

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

