




'''simple docstring'''

def    snake_case__     (  a       ,      a	)			->       Tuple:





			'''simple docstring'''






			snake_case__          =						1
			while b > 0:
						if b & 1:
									res *= a

						a *= a
						b >>= 1

			return res




def    snake_case__     (  a       ,      a       ,      a	)			->       Optional[Any]:





			'''simple docstring'''






			snake_case__          =						1
			while b > 0:
						if b & 1:
									snake_case__          =						((res % c) * (a % c)) % c

						a *= a
						b >>= 1

			return res



"""simple docstring"""


import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import Mock, patch

import diffusers.utils.hub_utils
class snake_case   (	unittest.TestCase):







		@patch("diffusers.utils.hub_utils.get_full_repo_name"		)
		def 			a_			(       self   :							Any     , a__   :							Mock		)							->    None:





						'''simple docstring'''







						_A       	=      "full_repo_name"
						with TemporaryDirectory() as tmpdir:
										# Dummy args values
										_A       	=      Mock()
										_A       	=      tmpdir
										_A       	=      0
										_A       	=      "hub_token"
										_A       	=      "dataset_name"
										_A       	=      0.0_1
										_A       	=      10_00_00
										_A       	=      1_00_00
										_A       	=      0.0_1
										_A       	=      0.0_2
										_A       	=      0.0_3
										_A       	=      0.0_0_0_5
										_A       	=      0.0_0_0_0_0_1
										_A       	=      1
										_A       	=      10
										_A       	=      0.0_0_1
										_A       	=      0.1
										_A       	=      0.2
										_A       	=      True

										# Model card mush be rendered and saved
										diffusers.utils.hub_utils.create_model_card(a__     , model_name="model_name"		)
										self.assertTrue((Path(a__		) / "README.md").is_file()		)