


"""simple docstring"""







def _A						(						lowercase       ,    lowercase		):







    """simple docstring"""
    return number | (1 << position)
def _A						(						lowercase       ,    lowercase		):







    """simple docstring"""
    return number & ~(1 << position)
def _A						(						lowercase       ,    lowercase		):







    """simple docstring"""
    return number ^ (1 << position)
def _A						(						lowercase       ,    lowercase		):







    """simple docstring"""
    return ((number >> position) & 1) == 1
def _A						(						lowercase       ,    lowercase		):







    """simple docstring"""
    return int((number & (1 << position)) != 0		)


if __name__ == "__main__":
       import doctest

       doctest.testmod()


from PIL import Image





def 					__lowerCamelCase	( UpperCamelCase__   ,							UpperCamelCase__      ):







							'''simple docstring'''






							snake_case_							=    (259 * (level + 255)) / (255 * (259 - level))

							def contrast(UpperCamelCase__      ) -> int:
														return int(128 + factor * (c - 128)      )

							return img.point(UpperCamelCase__      )


if __name__ == "__main__":
					# Load image
					with Image.open("""image_data/lena.jpg""") as img:
										# Change contrast to 170
										_UpperCAmelCase		:   Tuple										=       change_contrast(img, 170)
										cont_img.save("""image_data/lena_high_contrast.png""", format="""png""")




