


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

import diffusers.utils.hub_utils



class   __lowerCamelCase (unittest.TestCase	):







       @patch('diffusers.utils.hub_utils.get_full_repo_name'				)
       def 		snake_case_  ( self:   Dict,A_:   List[Any]				):






            '''simple docstring'''




            __UpperCamelCase   = 'full_repo_name'
            with TemporaryDirectory() as tmpdir:
                 # Dummy args values
                 __UpperCamelCase   = Mock()
                 __UpperCamelCase   = tmpdir
                 __UpperCamelCase   = 0
                 __UpperCamelCase   = 'hub_token'
                 __UpperCamelCase   = 'dataset_name'
                 __UpperCamelCase   = 0.0_1
                 __UpperCamelCase   = 10_0000
                 __UpperCamelCase   = 1_0000
                 __UpperCamelCase   = 0.0_1
                 __UpperCamelCase   = 0.0_2
                 __UpperCamelCase   = 0.0_3
                 __UpperCamelCase   = 0.0_0_0_5
                 __UpperCamelCase   = 0.0_0_0_0_0_1
                 __UpperCamelCase   = 1
                 __UpperCamelCase   = 10
                 __UpperCamelCase   = 0.0_0_1
                 __UpperCamelCase   = 0.1
                 __UpperCamelCase   = 0.2
                 __UpperCamelCase   = 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()				)






from math import cos, sin






def 		_A		(		_lowercase   )				->   list[list[float]]:


     """simple docstring"""


     __UpperCamelCase   = float(_lowercase   )
     return [[scaling_factor * int(x == y   ) for x in range(2   )] for y in range(2   )]






def 		_A		(		_lowercase   )				->   list[list[float]]:


     """simple docstring"""


     __UpperCamelCase,						__UpperCamelCase   = cos(_lowercase   ), sin(_lowercase   )
     return [[c, -s], [s, c]]






def 		_A		(		_lowercase   )				->   list[list[float]]:


     """simple docstring"""


     __UpperCamelCase,						__UpperCamelCase   = cos(_lowercase   ), sin(_lowercase   )
     __UpperCamelCase   = c * s
     return [[c * c, cs], [cs, s * s]]






def 		_A		(		_lowercase   )				->   list[list[float]]:


     """simple docstring"""


     __UpperCamelCase,						__UpperCamelCase   = cos(_lowercase   ), sin(_lowercase   )
     __UpperCamelCase   = c * s
     return [[2 * c - 1, 2 * cs], [2 * cs, 2 * s - 1]]


print(f"""    {scaling(5) = }""")
print(f"""  {rotation(4_5) = }""")
print(f"""{projection(4_5) = }""")


print(f"""{reflection(4_5) = }""")


