






'''simple docstring'''





import unittest

from diffusers.pipelines.pipeline_utils import is_safetensors_compatible

class 		_snake_case  (  unittest.TestCase					):






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Union[str, Any]:
						SCREAMING_SNAKE_CASE						= [
						    'safety_checker/pytorch_model.bin',
						    'safety_checker/model.safetensors',
						    'vae/diffusion_pytorch_model.bin',
						    'vae/diffusion_pytorch_model.safetensors',
						    'text_encoder/pytorch_model.bin',
						    'text_encoder/model.safetensors',
						    'unet/diffusion_pytorch_model.bin',
						    'unet/diffusion_pytorch_model.safetensors',
						]
						self.assertTrue(is_safetensors_compatible(a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Optional[int]:
						SCREAMING_SNAKE_CASE						= [
						    'unet/diffusion_pytorch_model.bin',
						    'unet/diffusion_pytorch_model.safetensors',
						]
						self.assertTrue(is_safetensors_compatible(a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Optional[Any]:
						SCREAMING_SNAKE_CASE						= [
						    'safety_checker/pytorch_model.bin',
						    'safety_checker/model.safetensors',
						    'vae/diffusion_pytorch_model.bin',
						    'vae/diffusion_pytorch_model.safetensors',
						    'text_encoder/pytorch_model.bin',
						    'text_encoder/model.safetensors',
						    'unet/diffusion_pytorch_model.bin',
						    # Removed: 'unet/diffusion_pytorch_model.safetensors',
						]
						self.assertFalse(is_safetensors_compatible(a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Union[str, Any]:
						SCREAMING_SNAKE_CASE						= [
						    'text_encoder/pytorch_model.bin',
						    'text_encoder/model.safetensors',
						]
						self.assertTrue(is_safetensors_compatible(a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Optional[int]:
						SCREAMING_SNAKE_CASE						= [
						    'safety_checker/pytorch_model.bin',
						    'safety_checker/model.safetensors',
						    'vae/diffusion_pytorch_model.bin',
						    'vae/diffusion_pytorch_model.safetensors',
						    'text_encoder/pytorch_model.bin',
						    # Removed: 'text_encoder/model.safetensors',
						    'unet/diffusion_pytorch_model.bin',
						    'unet/diffusion_pytorch_model.safetensors',
						]
						self.assertFalse(is_safetensors_compatible(a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       int:
						SCREAMING_SNAKE_CASE						= [
						    'safety_checker/pytorch_model.fp16.bin',
						    'safety_checker/model.fp16.safetensors',
						    'vae/diffusion_pytorch_model.fp16.bin',
						    'vae/diffusion_pytorch_model.fp16.safetensors',
						    'text_encoder/pytorch_model.fp16.bin',
						    'text_encoder/model.fp16.safetensors',
						    'unet/diffusion_pytorch_model.fp16.bin',
						    'unet/diffusion_pytorch_model.fp16.safetensors',
						]
						SCREAMING_SNAKE_CASE						= 'fp16'
						self.assertTrue(is_safetensors_compatible(a		,					variant=a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Tuple:
						SCREAMING_SNAKE_CASE						= [
						    'unet/diffusion_pytorch_model.fp16.bin',
						    'unet/diffusion_pytorch_model.fp16.safetensors',
						]
						SCREAMING_SNAKE_CASE						= 'fp16'
						self.assertTrue(is_safetensors_compatible(a		,					variant=a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Optional[int]:
						SCREAMING_SNAKE_CASE						= [
						    'unet/diffusion_pytorch_model.bin',
						    'unet/diffusion_pytorch_model.safetensors',
						]
						SCREAMING_SNAKE_CASE						= 'fp16'
						self.assertTrue(is_safetensors_compatible(a		,					variant=a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Optional[int]:
						SCREAMING_SNAKE_CASE						= [
						    'safety_checker/pytorch_model.fp16.bin',
						    'safety_checker/model.fp16.safetensors',
						    'vae/diffusion_pytorch_model.fp16.bin',
						    'vae/diffusion_pytorch_model.fp16.safetensors',
						    'text_encoder/pytorch_model.fp16.bin',
						    'text_encoder/model.fp16.safetensors',
						    'unet/diffusion_pytorch_model.fp16.bin',
						    # Removed: 'unet/diffusion_pytorch_model.fp16.safetensors',
						]
						SCREAMING_SNAKE_CASE						= 'fp16'
						self.assertFalse(is_safetensors_compatible(a		,					variant=a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       Optional[Any]:
						SCREAMING_SNAKE_CASE						= [
						    'text_encoder/pytorch_model.fp16.bin',
						    'text_encoder/model.fp16.safetensors',
						]
						SCREAMING_SNAKE_CASE						= 'fp16'
						self.assertTrue(is_safetensors_compatible(a		,					variant=a))






			def    SCREAMING_SNAKE_CASE__    (       self)      ->       List[Any]:
						SCREAMING_SNAKE_CASE						= [
						    'text_encoder/pytorch_model.bin',
						    'text_encoder/model.safetensors',
						]
						SCREAMING_SNAKE_CASE						= 'fp16'
						self.assertTrue(is_safetensors_compatible(a		,					variant=a))







			def    SCREAMING_SNAKE_CASE__    (       self)      ->       List[str]:
						SCREAMING_SNAKE_CASE						= [
						    'safety_checker/pytorch_model.fp16.bin',
						    'safety_checker/model.fp16.safetensors',
						    'vae/diffusion_pytorch_model.fp16.bin',
						    'vae/diffusion_pytorch_model.fp16.safetensors',
						    'text_encoder/pytorch_model.fp16.bin',
						    # 'text_encoder/model.fp16.safetensors',
						    'unet/diffusion_pytorch_model.fp16.bin',
						    'unet/diffusion_pytorch_model.fp16.safetensors',
						]
						SCREAMING_SNAKE_CASE						= 'fp16'
						self.assertFalse(is_safetensors_compatible(a		,					variant=a))












import os

# Precomputes a list of the 100 first triangular numbers
a_		:						str             =    [int(0.5 * n * (n + 1)) for n in range(1, 1_01)]






def 				lowerCamelCase__				():
			SCREAMING_SNAKE_CASE						= os.path.dirname(os.path.realpath(_UpperCAmelCase))
			SCREAMING_SNAKE_CASE						= os.path.join(_UpperCAmelCase							,       'words.txt')

			SCREAMING_SNAKE_CASE						= ''
			with open(_UpperCAmelCase) as f:
						SCREAMING_SNAKE_CASE						= f.readline()

			SCREAMING_SNAKE_CASE						= [word.strip('"') for word in words.strip('\r\n').split(',')]
			SCREAMING_SNAKE_CASE						= [
			    word
			    for word in [sum(ord(_UpperCAmelCase) - 64 for x in word) for word in words]
			    if word in TRIANGULAR_NUMBERS
			]
			return len(_UpperCAmelCase)


if __name__ == "__main__":
				print(solution())




