


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

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




@dataclass(frozen=_UpperCamelCase   )
class        lowerCamelCase      (     _UpperCamelCase   ):
	_lowerCAmelCase    :		str        =	field(default='''automatic-speech-recognition'''       ,	metadata={'''include_in_asdict_even_if_is_default''': True}   )
	_lowerCAmelCase    :		ClassVar[Features]        =	Features({'''audio''': Audio()}   )
	_lowerCAmelCase    :		ClassVar[Features]        =	Features({'''transcription''': Value('''string'''   )}   )
	_lowerCAmelCase    :		str        =	"audio"
	_lowerCAmelCase    :		str        =	"transcription"


	def    A(						self							,    lowercase__):
							if self.audio_column not in features:
													raise ValueError(F"Column {self.audio_column} is not present in features.")
							if not isinstance(features[self.audio_column]							,    lowercase__):
													raise ValueError(F"Column {self.audio_column} is not an Audio type.")
							__UpperCAmelCase :       Union[str, Any]  						=  copy.deepcopy(self)
							__UpperCAmelCase :       int  						=  self.input_schema.copy()
							__UpperCAmelCase :       List[Any]  						=  features[self.audio_column]
							__UpperCAmelCase :       int  						=  input_schema
							return task_template


	@property
	def    A(						self):
							return {self.audio_column: "audio", self.transcription_column: "transcription"}





def 						__SCREAMING_SNAKE_CASE       (					lowercase_			,					lowercase_			)		->    str:




						'''simple docstring'''







						if a < 0 or b < 0:
												raise ValueError('''the value of both inputs must be positive'''			)
						__UpperCAmelCase :       Dict  						=  str(bin(lowercase_			)			)[2:]  # remove the leading "0b"
						__UpperCAmelCase :       List[Any]  						=  str(bin(lowercase_			)			)[2:]
						__UpperCAmelCase :       List[Any]  						=  max(len(lowercase_			)			,					len(lowercase_			)			)
						return "0b" + "".join(
						    str(int('''1''' in (char_a, char_b)			)			)
						    for char_a, char_b in zip(a_binary.zfill(lowercase_			)			,					b_binary.zfill(lowercase_			)			)			)


if __name__ == "__main__":
				import doctest

				doctest.testmod()

