


'''simple docstring'''


def 			snake_case_   (  SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





				return 10 - x * x







def 			snake_case_   (  SCREAMING_SNAKE_CASE__							,      SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





				if equation(SCREAMING_SNAKE_CASE__     ) * equation(SCREAMING_SNAKE_CASE__     ) >= 0:
								raise ValueError("""Wrong space!"""     )

				_SCREAMING_SNAKE_CASE :       Optional[int]     		=      a
				while (b - a) >= 0.0_1:
								# Find middle point
								_SCREAMING_SNAKE_CASE :       Optional[Any]     		=      (a + b) / 2
								# Check if middle point is root
								if equation(SCREAMING_SNAKE_CASE__     ) == 0.0:
												break
								# Decide the side to repeat the steps
								if equation(SCREAMING_SNAKE_CASE__     ) * equation(SCREAMING_SNAKE_CASE__     ) < 0:
												_SCREAMING_SNAKE_CASE :       Any     		=      c
								else:
												_SCREAMING_SNAKE_CASE :       Dict     		=      c
				return c


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				print(bisection(-2, 5))
				print(bisection(0, 6))








'''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.')




