
"""simple docstring"""






import numpy as np

__UpperCAmelCase 					=    [
    ['a', 'b', 'c', 'd', 'e'],
    ['f', 'g', 'h', 'i', 'k'],
    ['l', 'm', 'n', 'o', 'p'],
    ['q', 'r', 's', 't', 'u'],
    ['v', 'w', 'x', 'y', 'z'],
]




class      _SCREAMING_SNAKE_CASE   :






			def __init__(   self			)     ->	None:
						lowerCAmelCase_       :Union[str, Any]     	=    np.array(_A			)






			def 					__lowerCAmelCase					(   self			,  __A			)     ->	np.ndarray:
						lowerCAmelCase_	,			lowerCAmelCase_       :List[Any]     	=    np.where(letter == self.SQUARE			)
						lowerCAmelCase_       :int     	=    np.concatenate([indexa + 1, indexa + 1]			)
						return indexes






			def 					__lowerCAmelCase					(   self			,  __A			,  __A			)     ->	str:
						return self.SQUARE[indexa - 1, indexa - 1]






			def 					__lowerCAmelCase					(   self			,  __A			)     ->	str:
						lowerCAmelCase_       :Optional[Any]     	=    message.lower()
						lowerCAmelCase_       :Tuple     	=    message.replace("""j"""			,  """i"""			)

						lowerCAmelCase_       :str     	=    """"""
						for letter_index in range(len(_A			)			):
									if message[letter_index] != " ":
												lowerCAmelCase_       :List[Any]     	=    self.letter_to_numbers(message[letter_index]			)
												lowerCAmelCase_       :Dict     	=    encoded_message + str(numbers[0]			) + str(numbers[1]			)
									elif message[letter_index] == " ":
												lowerCAmelCase_       :Any     	=    encoded_message + """ """

						return encoded_message






			def 					__lowerCAmelCase					(   self			,  __A			)     ->	str:
						lowerCAmelCase_       :Optional[Any]     	=    message.replace(""" """			,  """  """			)
						lowerCAmelCase_       :Union[str, Any]     	=    """"""
						for numbers_index in range(int(len(_A			) / 2			)			):
									if message[numbers_index * 2] != " ":
												lowerCAmelCase_       :List[str]     	=    message[numbers_index * 2]
												lowerCAmelCase_       :Dict     	=    message[numbers_index * 2 + 1]

												lowerCAmelCase_       :int     	=    self.numbers_to_letter(int(_A			)			,  int(_A			)			)
												lowerCAmelCase_       :List[str]     	=    decoded_message + letter
									elif message[numbers_index * 2] == " ":
												lowerCAmelCase_       :str     	=    decoded_message + """ """

						return decoded_message








from typing import List

import datasets
from datasets.tasks import ImageClassification

from ..folder_based_builder import folder_based_builder


__UpperCAmelCase   						=     datasets.utils.logging.get_logger(__name__)





class 				UpperCamelCase__		(	folder_based_builder.FolderBasedBuilderConfig	):






       """simple docstring"""


       UpperCAmelCase_				       =None
       UpperCAmelCase_				       =None







class 				UpperCamelCase__		(	folder_based_builder.FolderBasedBuilder	):






       """simple docstring"""


       UpperCAmelCase_				       =datasets.Image()
       UpperCAmelCase_				       ="image"
       UpperCAmelCase_				       =ImageFolderConfig
       UpperCAmelCase_				       =42  # definition at the bottom of the script
       UpperCAmelCase_				       =ImageClassification(image_column="image"       ,    label_column="label"	)







__UpperCAmelCase   						=     [
    ".blp",
    ".bmp",
    ".dib",
    ".bufr",
    ".cur",
    ".pcx",
    ".dcx",
    ".dds",
    ".ps",
    ".eps",
    ".fit",
    ".fits",
    ".fli",
    ".flc",
    ".ftc",
    ".ftu",
    ".gbr",
    ".gif",
    ".grib",
    ".h5",
    ".hdf",
    ".png",
    ".apng",
    ".jp2",
    ".j2k",
    ".jpc",
    ".jpf",
    ".jpx",
    ".j2c",
    ".icns",
    ".ico",
    ".im",
    ".iim",
    ".tif",
    ".tiff",
    ".jfif",
    ".jpe",
    ".jpg",
    ".jpeg",
    ".mpg",
    ".mpeg",
    ".msp",
    ".pcd",
    ".pxr",
    ".pbm",
    ".pgm",
    ".ppm",
    ".pnm",
    ".psd",
    ".bw",
    ".rgb",
    ".rgba",
    ".sgi",
    ".ras",
    ".tga",
    ".icb",
    ".vda",
    ".vst",
    ".webp",
    ".wmf",
    ".emf",
    ".xbm",
    ".xpm",
]
__UpperCAmelCase   						=     IMAGE_EXTENSIONS


