'''simple docstring'''

import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info







def 					UpperCamelCase_						( snake_case_	:	str				) ->					Any:






 '''simple docstring'''

 class     _lowercase					:


  '''simple docstring'''






  def __init__(				self       :     Optional[int]				,	SCREAMING_SNAKE_CASE__       :     Tuple							)  ->   None:
   assert isinstance(lowercase_				,	(bytes, str)							)
   __lowerCAmelCase    							=						content





  def a (				self       :     Union[str, Any]							)  ->   Any:
   return json.loads(self.content							)

 def mock_response(*snake_case_	:	str						,		**snake_case_	:	int				):
  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(_A						,		"""get"""						,		_A				)
 __lowerCAmelCase    							=						fetch_github_info("""token"""				)
 assert result["login"] == "test"
 assert result["id"] == 1







'''simple docstring'''

def 					UpperCamelCase_						( snake_case_	:	int				) ->					int:






 '''simple docstring'''

 if number != int(snake_case_				):
  raise ValueError("""factorial() only accepts integral values"""				)
 if number < 0:
  raise ValueError("""factorial() not defined for negative values"""				)
 __lowerCAmelCase    							=						1
 for i in range(1						,		number + 1				):
  value *= i
 return value







def 					UpperCamelCase_						( snake_case_	:	int				) ->					int:






 '''simple docstring'''

 if not isinstance(snake_case_						,		snake_case_				):
  raise ValueError("""factorial() only accepts integral values"""				)
 if n < 0:
  raise ValueError("""factorial() not defined for negative values"""				)
 return 1 if n == 0 or n == 1 else n * factorial(n - 1				)


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 _A      :				List[Any] 				=    int(input('''Enter a positive integer: ''').strip() or 0)
 print(f'factorial{n} is {factorial(n)}')






