


'''simple docstring'''


def 			snake_case_   (  SCREAMING_SNAKE_CASE__							,      SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





				_SCREAMING_SNAKE_CASE :       str     		=      [1]
				for i in range(2							,      SCREAMING_SNAKE_CASE__     ):
								factorials.append(factorials[-1] * i     )
				assert 0 <= k < factorials[-1] * n, "k out of bounds"

				_SCREAMING_SNAKE_CASE :       Optional[Any]     		=      []
				_SCREAMING_SNAKE_CASE :       Optional[Any]     		=      list(range(SCREAMING_SNAKE_CASE__     )     )

				# Find permutation
				while factorials:
								_SCREAMING_SNAKE_CASE :       List[Any]     		=      factorials.pop()
								_SCREAMING_SNAKE_CASE		,       _SCREAMING_SNAKE_CASE :       List[str]     		=      divmod(SCREAMING_SNAKE_CASE__							,      SCREAMING_SNAKE_CASE__     )
								permutation.append(elements[number]     )
								elements.remove(elements[number]     )
				permutation.append(elements[0]     )

				return permutation


if __name__ == "__main__":
				import doctest

				doctest.testmod()








'''simple docstring'''


from __future__ import annotations

import os
from typing import Any

import requests

UpperCAmelCase_		:   List[Any]							   =		'https://api.github.com'

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

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







def 			snake_case_   (  SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





				_SCREAMING_SNAKE_CASE :       Union[str, Any]     		=      {
				    """Authorization""": f"""token {auth_token}""",
				    """Accept""": """application/vnd.github.v3+json""",
				}
				return requests.get(SCREAMING_SNAKE_CASE__							,      headers=SCREAMING_SNAKE_CASE__     ).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.')




