"""simple docstring"""







def   __UpperCAmelCase    (   UpperCAmelCase_   :    int  )							->      int:

	'''simple docstring'''





	if not numbers:
		return 0

	if not isinstance(__snake_case      ,							(list, tuple)  ) or not all(
	    isinstance(__snake_case      ,							__snake_case  ) for number in numbers  ):
		raise ValueError('numbers must be an iterable of integers'  )

	__snake_case      :							Union[str, Any]						=			numbers[0]

	for i in range(1      ,							len(__snake_case  )  ):
		# update the maximum and minimum subarray products
		__snake_case      :							Any						=			numbers[i]
		if number < 0:
			__snake_case      :							Any						=			min_till_now, max_till_now
		__snake_case      :							Tuple						=			max(__snake_case      ,							max_till_now * number  )
		__snake_case      :							int						=			min(__snake_case      ,							min_till_now * number  )

		# update the maximum product found till now
		__snake_case      :							List[Any]						=			max(__snake_case      ,							__snake_case  )

	return max_prod






"""simple docstring"""







from __future__ import annotations

import os
from typing import Any

import requests

_a					:					int=			"https://api.github.com"

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

# https://github.com/settings/tokens
_a					:					Union[str, Any]=			os.environ.get("USER_TOKEN", "")
def   __UpperCAmelCase    (   UpperCAmelCase_   :    str  )							->      dict[Any, Any]:

	'''simple docstring'''





	__snake_case      :							Tuple						=			{
	    '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.")





