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

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






@dataclass(frozen=SCREAMING_SNAKE_CASE__   )
class UpperCAmelCase   (						SCREAMING_SNAKE_CASE__   ):





   '''simple docstring'''
   # `task` is not a ClassVar since we want it to be part of the `asdict` output for JSON serialization
   __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  __magic_name__				(					self     :							List[str]     ):

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





def   lowerCamelCase__							(					a		,		a      )      ->   str:
   if a < 0 or b < 0:
      raise ValueError('''the value of both inputs must be positive'''      )

   _A:  Union[str, Any]					=       str(bin(a      )      )[2:]  # remove the leading "0b"
   _A:  Union[str, Any]					=       str(bin(a      )      )[2:]  # remove the leading "0b"

   _A:  Optional[int]					=       max(len(a      )		,		len(a      )      )

   return "0b" + "".join(
       str(int(char_a != char_b      )      )
       for char_a, char_b in zip(a_binary.zfill(a      )		,		b_binary.zfill(a      )      )      )


if __name__ == "__main__":
   import doctest

   doctest.testmod()



