



'''simple docstring'''

from collections import defaultdict

from graphs.minimum_spanning_tree_prims import prisms_algorithm as mst



def 					__lowerCamelCase					(				)      ->				List[str]:
		_a					:				Tuple				=							9, 14  # noqa: F841
		_a					:				str				=							[
		    [0, 1, 4],
		    [0, 7, 8],
		    [1, 2, 8],
		    [7, 8, 7],
		    [7, 6, 1],
		    [2, 8, 2],
		    [8, 6, 6],
		    [2, 3, 7],
		    [2, 5, 4],
		    [6, 5, 2],
		    [3, 5, 14],
		    [3, 4, 9],
		    [5, 4, 10],
		    [1, 7, 11],
		]

		_a					:				Optional[int]				=							defaultdict(lowerCAmelCase_  )
		for nodea, nodea, cost in edges:
				adjancency[nodea].append([nodea, cost]  )
				adjancency[nodea].append([nodea, cost]  )

		_a					:				Optional[Any]				=							mst(lowerCAmelCase_  )

		_a					:				str				=							[
		    [7, 6, 1],
		    [2, 8, 2],
		    [6, 5, 2],
		    [0, 1, 4],
		    [2, 5, 4],
		    [2, 3, 7],
		    [0, 7, 8],
		    [3, 4, 9],
		]

		for answer in expected:
				_a					:				Any				=							tuple(answer[:2]  )
				_a					:				List[str]				=							tuple(edge[::-1]  )
				assert edge in result or reverse in result









'''simple docstring'''

from __future__ import annotations

import os
from typing import Any

import requests

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

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

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



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




