






"""simple docstring"""




def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     str:
     return "".join([hex(__lowerCAmelCase      )[2:].zfill(2      ).upper() for byte in list(__lowerCAmelCase      )]      )







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     bytes:
     # Check data validity, following RFC3548
     # https://www.ietf.org/rfc/rfc3548.txt
     if (len(__lowerCAmelCase      ) % 2) != 0:
          raise ValueError(
              "Base16 encoded data is invalid:\nData does not have an even number of hex digits."      )
     # Check the character set - the standard base16 alphabet
     # is uppercase according to RFC3548 section 6
     if not set(__lowerCAmelCase      ) <= set("0123456789ABCDEF"      ):
          raise ValueError(
              "Base16 encoded data is invalid:\nData is not uppercase hex or it contains invalid characters."      )
     # For every two hexadecimal digits (= a byte), turn it into an integer.
     # Then, string the result together into bytes, and return it.
     return bytes(int(data[i] + data[i + 1] ,   16      ) for i in range(0 ,   len(__lowerCAmelCase      ) ,   2      )      )


if __name__ == "__main__":
 import doctest

 doctest.testmod()







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

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





@dataclass(frozen=A__	)
class       __a  (   A__	):
 _lowerCAmelCase	:	str				=			field(default='''language-modeling'''	,       metadata={'''include_in_asdict_even_if_is_default''': True}	)

 _lowerCAmelCase	:	ClassVar[Features]				=			Features({'''text''': Value('''string'''	)}	)
 _lowerCAmelCase	:	ClassVar[Features]				=			Features({}	)
 _lowerCAmelCase	:	str				=			"text"







 @property
 def  __lowercase (		self :       str						):


      '''simple docstring'''






      return {self.text_column: "text"}