



'''simple docstring'''



import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info


def 							__UpperCAmelCase				(				UpperCamelCase__				:List[str]			)		->						str:






				class 			_SCREAMING_SNAKE_CASE				:



							def __init__(     self		:						str    ,			__UpperCamelCase		:						List[Any]			)      ->      None:
											"""simple docstring"""





											assert isinstance(__UpperCamelCase    ,			(bytes, str)			)
											snake_case__      :   Tuple      =    content







							def 				lowerCAmelCase (     self		:						Optional[int]			)      ->      Any:
											"""simple docstring"""





											return json.loads(self.content			)

				def mock_response(*UpperCamelCase__				:int   ,				**UpperCamelCase__				:Tuple			):
								assert args[0] == AUTHENTICATED_USER_ENDPOINT
								assert "Authorization" in kwargs["headers"]
								assert kwargs["headers"]["Authorization"].startswith('''token '''			)
								assert "Accept" in kwargs["headers"]
								return FakeResponse(B'''{"login":"test","id":1}'''			)

				monkeypatch.setattr(UpperCamelCase__   ,				'''get'''   ,				UpperCamelCase__			)
				snake_case__      :   List[Any]      =    fetch_github_info('''token'''			)
				assert result["login"] == "test"
				assert result["id"] == 1






import math
from decimal import Decimal, getcontext
def 					lowerCAmelCase__     (    SCREAMING_SNAKE_CASE_ = 4_000_000	)							->						int:

			try:
						lowerCAmelCase__ : str   =						int(SCREAMING_SNAKE_CASE_	)
			except (TypeError, ValueError):
						raise TypeError('Parameter n must be int or castable to int.'	)
			if n <= 0:
						raise ValueError('Parameter n must be greater than or equal to one.'	)
			lowerCAmelCase__ : Union[str, Any]   =						100
			lowerCAmelCase__ : List[Any]   =						(Decimal(5	) ** Decimal(0.5	) + 1) / Decimal(2	)

			lowerCAmelCase__ : Tuple   =						(math.floor(math.log(n * (phi + 2)			,				SCREAMING_SNAKE_CASE_	) - 1	) // 3) * 3 + 2
			lowerCAmelCase__ : Optional[int]   =						Decimal(round(phi ** Decimal(index + 1	)	)	) / (phi + 2)
			lowerCAmelCase__ : Tuple   =						num // 2
			return int(SCREAMING_SNAKE_CASE_	)


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