






"""simple docstring"""



import copy

from transformers.configuration_utils import PretrainedConfig
from transformers.utils import logging


_snake_case							:   Optional[Any]	  =       logging.get_logger(__name__)




class 							__lowercase(							lowercase__	):
						lowerCAmelCase_		:				Optional[int]=							"""hybrid-clip"""
						lowerCAmelCase_		:				int=							True






						def __init__(       self     ,    _SCREAMING_SNAKE_CASE=5_12     ,    **_SCREAMING_SNAKE_CASE)      ->	List[str]:




											"""simple docstring"""





											super().__init__(**_SCREAMING_SNAKE_CASE)

											if "text_config" not in kwargs:
																raise ValueError('`text_config` can not be `None`.')

											if "vision_config" not in kwargs:
																raise ValueError('`vision_config` can not be `None`.')

											lowerCamelCase__					=kwargs.pop('text_config')
											lowerCamelCase__					=kwargs.pop('vision_config')

											lowerCamelCase__					=text_config.pop('model_type')
											lowerCamelCase__					=vision_config.pop('model_type')

											from transformers import AutoConfig

											lowerCamelCase__					=AutoConfig.for_model(_SCREAMING_SNAKE_CASE     ,    **_SCREAMING_SNAKE_CASE)

											if vision_model_type == "clip":
																lowerCamelCase__					=AutoConfig.for_model(_SCREAMING_SNAKE_CASE     ,    **_SCREAMING_SNAKE_CASE).vision_config
											elif vision_model_type == "clip_vision_model":
																from transformers import CLIPVisionConfig

																lowerCamelCase__					=CLIPVisionConfig(**_SCREAMING_SNAKE_CASE)
											else:
																lowerCamelCase__					=AutoConfig.for_model(_SCREAMING_SNAKE_CASE     ,    **_SCREAMING_SNAKE_CASE)

											lowerCamelCase__					=projection_dim
											lowerCamelCase__					=1.0






						@classmethod
						def 		lowerCAmelCase (       cls     ,    _SCREAMING_SNAKE_CASE     ,    _SCREAMING_SNAKE_CASE     ,    **_SCREAMING_SNAKE_CASE)      ->	Dict:




											"""simple docstring"""





											return cls(text_config=text_config.to_dict()     ,    vision_config=vision_config.to_dict()     ,    **_SCREAMING_SNAKE_CASE)






						def 		lowerCAmelCase (       self)      ->	Any:




											"""simple docstring"""





											lowerCamelCase__					=copy.deepcopy(self.__dict__)
											lowerCamelCase__					=self.text_config.to_dict()
											lowerCamelCase__					=self.vision_config.to_dict()
											lowerCamelCase__					=self.__class__.model_type
											return output






from itertools import combinations_with_replacement







def    UpperCAmelCase				(  _lowerCamelCase   :	int = 100  ):





						'''simple docstring'''


						SCREAMING_SNAKE_CASE__  :					list[int] =       [*list(range(1      , 21  )  ), 25]
						SCREAMING_SNAKE_CASE__  :					list[int] =       [2 * x for x in range(1      , 21  )] + [50]
						SCREAMING_SNAKE_CASE__  :					list[int] =       [3 * x for x in range(1      , 21  )]
						SCREAMING_SNAKE_CASE__  :					list[int] =       singles + doubles + triples + [0]

						SCREAMING_SNAKE_CASE__  :					int =       0
						SCREAMING_SNAKE_CASE__  :					int
						SCREAMING_SNAKE_CASE__  :					int
						SCREAMING_SNAKE_CASE__  :					int
						SCREAMING_SNAKE_CASE__  :					int

						for double in doubles:
												for throwa, throwa in combinations_with_replacement(_lowerCamelCase      , 2  ):
																		SCREAMING_SNAKE_CASE__  :					int =       double + throwa + throwa
																		if checkout_total < limit:
																								num_checkouts += 1

						return num_checkouts


if __name__ == "__main__":
				print(f"{solution() = }")