


"""simple docstring"""


from ...configuration_utils import PretrainedConfig
from ...utils import logging


A     :   Optional[int]			    =			logging.get_logger(__name__)

A     :   List[str]			    =			{
    "studio-ousia/luke-base": "https://huggingface.co/studio-ousia/luke-base/resolve/main/config.json",
    "studio-ousia/luke-large": "https://huggingface.co/studio-ousia/luke-large/resolve/main/config.json",
}
class   _UpperCamelCase  (   lowerCAmelCase__		):
							'''simple docstring'''







							__UpperCAmelCase						:    str				      ="""luke"""

							def __init__(     self    ,   __a=5_02_67    ,   __a=50_00_00    ,   __a=7_68    ,   __a=2_56    ,   __a=12    ,   __a=12    ,   __a=30_72    ,   __a="gelu"    ,   __a=0.1    ,   __a=0.1    ,   __a=5_12    ,   __a=2    ,   __a=0.0_2    ,   __a=1e-1_2    ,   __a=True    ,   __a=None    ,   __a=1    ,   __a=0    ,   __a=2    ,   **__a    ,   ):
										super().__init__(pad_token_id=__a    ,   bos_token_id=__a    ,   eos_token_id=__a    ,   **__a	)

										__lowerCAmelCase				    =			vocab_size
										__lowerCAmelCase				    =			entity_vocab_size
										__lowerCAmelCase				    =			hidden_size
										__lowerCAmelCase				    =			entity_emb_size
										__lowerCAmelCase				    =			num_hidden_layers
										__lowerCAmelCase				    =			num_attention_heads
										__lowerCAmelCase				    =			hidden_act
										__lowerCAmelCase				    =			intermediate_size
										__lowerCAmelCase				    =			hidden_dropout_prob
										__lowerCAmelCase				    =			attention_probs_dropout_prob
										__lowerCAmelCase				    =			max_position_embeddings
										__lowerCAmelCase				    =			type_vocab_size
										__lowerCAmelCase				    =			initializer_range
										__lowerCAmelCase				    =			layer_norm_eps
										__lowerCAmelCase				    =			use_entity_aware_attention
										__lowerCAmelCase				    =			classifier_dropout







'''simple docstring'''






import colorsys

from PIL import Image  # type: ignore


def 		_A     (    A__     ,				A__     ,				A__      ):






 """simple docstring"""



 __lowercase							  = x
 __lowercase							  = y
 for step in range(A__      ):  # noqa: B007
  __lowercase							  = a * a - b * b + x
  __lowercase							  = 2 * a * b + y
  __lowercase							  = a_new

  # divergence happens for all complex number with an absolute value
  # greater than 4
  if a * a + b * b > 4:
   break
 return step / (max_step - 1)


def 		_A     (    A__      ):






 """simple docstring"""



 if distance == 1:
  return (0, 0, 0)
 else:
  return (255, 255, 255)


def 		_A     (    A__      ):






 """simple docstring"""



 if distance == 1:
  return (0, 0, 0)
 else:
  return tuple(round(i * 255      ) for i in colorsys.hsv_to_rgb(A__     ,				1     ,				1      )      )


def 		_A     (    A__ = 800     ,				A__ = 600     ,				A__ = -0.6     ,				A__ = 0     ,				A__ = 3.2     ,				A__ = 50     ,				A__ = True     ,				):






 """simple docstring"""



 __lowercase							  = Image.new('''RGB'''     ,				(image_width, image_height)      )
 __lowercase							  = img.load()

 # loop through the image-coordinates
 for image_x in range(A__      ):
  for image_y in range(A__      ):
   # determine the figure-coordinates based on the image-coordinates
   __lowercase							  = figure_width / image_width * image_height
   __lowercase							  = figure_center_x + (image_x / image_width - 0.5) * figure_width
   __lowercase							  = figure_center_y + (image_y / image_height - 0.5) * figure_height

   __lowercase							  = get_distance(A__     ,				A__     ,				A__      )

   # color the corresponding pixel based on the selected coloring-function
   if use_distance_color_coding:
    __lowercase							  = get_color_coded_rgb(A__      )
   else:
    __lowercase							  = get_black_and_white_rgb(A__      )

 return img


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 # colored version, full figure
 lowerCAmelCase__											=	get_image()

 # uncomment for colored version, different section, zoomed in
 # img = get_image(figure_center_x = -0.6, figure_center_y = -0.4,
 # figure_width = 0.8)

 # uncomment for black and white version, full figure
 # img = get_image(use_distance_color_coding = False)

 # uncomment to save the image
 # img.save("mandelbrot.png")

 img.show()

