


'''simple docstring'''






from typing import TYPE_CHECKING

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


a_   :      Tuple				    =      {
    "configuration_chinese_clip": [
        "CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "ChineseCLIPConfig",
        "ChineseCLIPOnnxConfig",
        "ChineseCLIPTextConfig",
        "ChineseCLIPVisionConfig",
    ],
    "processing_chinese_clip": ["ChineseCLIPProcessor"],
}

try:
 if not is_vision_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 a_   :      str				    =      ["ChineseCLIPFeatureExtractor"]
 a_   :      Any				    =      ["ChineseCLIPImageProcessor"]

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 a_   :      List[Any]				    =      [
     "CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST",
     "ChineseCLIPModel",
     "ChineseCLIPPreTrainedModel",
     "ChineseCLIPTextModel",
     "ChineseCLIPVisionModel",
 ]

if TYPE_CHECKING:
 from .configuration_chinese_clip import (
     CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
     ChineseCLIPConfig,
     ChineseCLIPOnnxConfig,
     ChineseCLIPTextConfig,
     ChineseCLIPVisionConfig,
 )
 from .processing_chinese_clip import ChineseCLIPProcessor

 try:
  if not is_vision_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .feature_extraction_chinese_clip import ChineseCLIPFeatureExtractor, ChineseCLIPImageProcessor

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_chinese_clip import (
      CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
      ChineseCLIPModel,
      ChineseCLIPPreTrainedModel,
      ChineseCLIPTextModel,
      ChineseCLIPVisionModel,
  )

else:
 import sys

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





'''simple docstring'''






def 		_A			(lowerCAmelCase__					:list[int]			,  lowerCAmelCase__					:list[int]						)				->					None:




     '''simple docstring'''



     _a      =							len(lowerCAmelCase__						)
     print('The following activities are selected:'						)

     # The first activity is always selected
     _a      =							0
     print(lowerCAmelCase__			,  end=','						)

     # Consider rest of the activities
     for j in range(lowerCAmelCase__						):
          # If this activity has start time greater than
          # or equal to the finish time of previously
          # selected activity, then select it
          if start[j] >= finish[i]:
               print(lowerCAmelCase__			,  end=','						)
               _a      =							j


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 a_   :      List[str]				    =      [1, 3, 0, 5, 8, 5]
 a_   :      str				    =      [2, 4, 6, 7, 9, 9]
 print_max_activities(start, finish)

