"""simple docstring"""
def 		__a  (      _SCREAMING_SNAKE_CASE						,	_SCREAMING_SNAKE_CASE  )      ->List[Any]:
  a__:	Tuple     				=      len(_SCREAMING_SNAKE_CASE  )
  # Create a stack and push index of fist element to it
  a__:	List[str]     				=      []
  st.append(0  )

  # Span value of first element is always 1
  a__:	List[Any]     				=      1

  # Calculate span values for rest of the elements
  for i in range(1						,	_SCREAMING_SNAKE_CASE  ):
    # Pop elements from stack while stack is not
    # empty and top of stack is smaller than price[i]
    while len(_SCREAMING_SNAKE_CASE  ) > 0 and price[st[0]] <= price[i]:
      st.pop()

    # If stack becomes empty, then price[i] is greater
    # than all elements on left of it, i.e. price[0],
    # price[1], ..price[i-1]. Else the price[i]  is
    # greater than elements after top of stack
    a__:	Optional[int]     				=      i + 1 if len(_SCREAMING_SNAKE_CASE  ) <= 0 else (i - st[0])

    # Push this element to stack
    st.append(_SCREAMING_SNAKE_CASE  )







def 		__a  (      _SCREAMING_SNAKE_CASE						,	_SCREAMING_SNAKE_CASE  )      ->Any:
  for i in range(0						,	_SCREAMING_SNAKE_CASE  ):
    print(arr[i]						,	end=' '  )


# Driver program to test above function
lowercase__   			=      [10, 4, 5, 90, 120, 80]
lowercase__   			=      [0 for i in range(len(price) + 1)]

# Fill the span values in array S[]
calculation_span(price, S)


print_array(S, len(price))







import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info







def 							A     (						__UpperCAmelCase      )			->			Dict:



						'''simple docstring'''






						class 				a_    :

												def __init__(       self      :Optional[int]  ,		_lowercase      :Any)						->   None:
																		assert isinstance(_lowercase  ,		(bytes, str))
																		UpperCAmelCase_					=	content




												def       __a			(       self      :List[str])						->   Tuple:
																		return json.loads(self.content)

						def mock_response(*__UpperCAmelCase				,   **__UpperCAmelCase      ):
												assert args[0] == AUTHENTICATED_USER_ENDPOINT
												assert "Authorization" in kwargs["headers"]
												assert kwargs["headers"]["Authorization"].startswith('''token '''      )
												assert "Accept" in kwargs["headers"]
												return FakeResponse(b'''{"login":"test","id":1}'''      )

						monkeypatch.setattr(__UpperCAmelCase				,   '''get'''				,   __UpperCAmelCase      )
						UpperCAmelCase_					=	fetch_github_info('''token'''      )
						assert result["login"] == "test"
						assert result["id"] == 1





