


'''simple docstring'''


from typing import List

import datasets
from datasets.tasks import ImageClassification

from ..folder_based_builder import folder_based_builder


UpperCAmelCase_	:     str							     =	datasets.utils.logging.get_logger(__name__)





class 					lowercase__						(		folder_based_builder.FolderBasedBuilderConfig      ):





							'''simple docstring'''


							A_							:   bool   			=						None
							A_							:   bool   			=						None





class 					lowercase__						(		folder_based_builder.FolderBasedBuilder      ):





							'''simple docstring'''


							A_							:   int   			=						datasets.Image()
							A_							:   int   			=						"""image"""
							A_							:   Optional[Any]   			=						ImageFolderConfig
							A_							:   List[str]  # definition at the bottom of the script
							A_							:   Any   			=						ImageClassification(image_column="""image"""  ,  label_column="""label"""      )



UpperCAmelCase_	:     str							     =	[
    '.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_	:     str							     =	IMAGE_EXTENSIONS








'''simple docstring'''


def     snake_case_     (						SCREAMING_SNAKE_CASE__							,   SCREAMING_SNAKE_CASE__  ):







				"""simple docstring"""





				return (input_a, input_a).count(0  ) % 2







def     snake_case_     (						):







				"""simple docstring"""





				assert xor_gate(0							,   0  ) == 0
				assert xor_gate(0							,   1  ) == 1
				assert xor_gate(1							,   0  ) == 1
				assert xor_gate(1							,   1  ) == 0


if __name__ == "__main__":
				print(xor_gate(0, 0))
				print(xor_gate(0, 1))




