






'''simple docstring'''
from __future__ import annotations

import os
from typing import Any

import requests

UpperCamelCase__			=      'https://api.github.com'

# https://docs.github.com/en/free-pro-team@latest/rest/reference/users#get-the-authenticated-user
UpperCamelCase__			=      BASE_URL + '/user'

# https://github.com/settings/tokens
UpperCamelCase__			=      os.environ.get('USER_TOKEN', '')




def 		__SCREAMING_SNAKE_CASE       (	_UpperCamelCase				):


   """simple docstring"""




   lowercase_						:     Dict							     =  {
       """Authorization""": F"""token {auth_token}""",
       """Accept""": """application/vnd.github.v3+json""",
   }
   return requests.get(_UpperCamelCase    ,		headers=_UpperCamelCase				).json()


if __name__ == "__main__":  # pragma: no cover
 if USER_TOKEN:
  for key, value in fetch_github_info(USER_TOKEN).items():
   print(f"""{key}: {value}""")
 else:
  raise ValueError('\'USER_TOKEN\' field cannot be empty.')





"""simple docstring"""



def  _A(		lowerCAmelCase			,  lowerCAmelCase							):
							A__       :     List[Any]								=			[1]
							for i in range(2			,  lowerCAmelCase							):
														factorials.append(factorials[-1] * i							)
							assert 0 <= k < factorials[-1] * n, "k out of bounds"

							A__       :     Union[str, Any]								=			[]
							A__       :     int								=			list(range(lowerCAmelCase							)							)

							# Find permutation
							while factorials:
														A__       :     Optional[int]								=			factorials.pop()
														A__				,							A__       :     Union[str, Any]								=			divmod(lowerCAmelCase			,  lowerCAmelCase							)
														permutation.append(elements[number]							)
														elements.remove(elements[number]							)
							permutation.append(elements[0]							)

							return permutation


if __name__ == "__main__":
				import doctest

				doctest.testmod()





