
'''simple docstring'''



from __future__ import annotations

from typing import Any


def A (__lowerCamelCase :list						):
						if not postfix_notation:
												return 0

						_lowerCAmelCase    		=					{'''+''', '''-''', '''*''', '''/'''}
						_lowerCAmelCase    		=					[]

						for token in postfix_notation:
												if token in operations:
																		_lowerCAmelCase    		=					stack.pop(), stack.pop()
																		if token == "+":
																								stack.append(a + b						)
																		elif token == "-":
																								stack.append(a - b						)
																		elif token == "*":
																								stack.append(a * b						)
																		else:
																								if a * b < 0 and a % b != 0:
																														stack.append(a // b + 1						)
																								else:
																														stack.append(a // b						)
												else:
																		stack.append(int(_A						)						)

						return stack.pop()


if __name__ == "__main__":
						import doctest

						doctest.testmod()

'''simple docstring'''

from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Features, Sequence, Value
from .base import TaskTemplate


@dataclass(frozen=lowerCAmelCase )
class 					_lowercase						(   lowerCAmelCase ):
      '''simple docstring'''


      UpperCAmelCase_   :   str   				= field(default='''question-answering-extractive'''		,metadata={'''include_in_asdict_even_if_is_default''': True} )
      UpperCAmelCase_   :   ClassVar[Features]   				= Features({'''question''': Value('''string''' ), '''context''': Value('''string''' )} )
      UpperCAmelCase_   :   ClassVar[Features]   				= Features(
          {
              '''answers''': Sequence(
                  {
                      '''text''': Value('''string''' ),
                      '''answer_start''': Value('''int32''' ),
                  } )
          } )
      UpperCAmelCase_   :   str   				= "question"
      UpperCAmelCase_   :   str   				= "context"
      UpperCAmelCase_   :   str   				= "answers"




      @property
      def 		lowerCAmelCase__       (					self				)      ->      Dict[str, str]:



         '''simple docstring'''



         return {self.question_column: "question", self.context_column: "context", self.answers_column: "answers"}




