





from __future__ import annotations
def      _A       (		SCREAMING_SNAKE_CASE     :   int = 4						):





  """simple docstring"""



  a__	:					List[str]										=abs(SCREAMING_SNAKE_CASE						) or 4
  return [[1 + x + y * row_size for x in range(SCREAMING_SNAKE_CASE						)] for y in range(SCREAMING_SNAKE_CASE						)]
def      _A       (		SCREAMING_SNAKE_CASE     :   list[list[int]]						):





  """simple docstring"""



  return reverse_row(transpose(SCREAMING_SNAKE_CASE						)						)
  # OR.. transpose(reverse_column(matrix))
def      _A       (		SCREAMING_SNAKE_CASE     :   list[list[int]]						):





  """simple docstring"""



  return reverse_row(reverse_column(SCREAMING_SNAKE_CASE						)						)
  # OR.. reverse_column(reverse_row(matrix))
def      _A       (		SCREAMING_SNAKE_CASE     :   list[list[int]]						):





  """simple docstring"""



  return reverse_column(transpose(SCREAMING_SNAKE_CASE						)						)
  # OR.. transpose(reverse_row(matrix))
def      _A       (		SCREAMING_SNAKE_CASE     :   list[list[int]]						):





  """simple docstring"""



  a__	:					Optional[int]										=[list(SCREAMING_SNAKE_CASE						) for x in zip(*SCREAMING_SNAKE_CASE						)]
  return matrix
def      _A       (		SCREAMING_SNAKE_CASE     :   list[list[int]]						):





  """simple docstring"""



  a__	:					List[Any]										=matrix[::-1]
  return matrix
def      _A       (		SCREAMING_SNAKE_CASE     :   list[list[int]]						):





  """simple docstring"""



  a__	:					Optional[Any]										=[x[::-1] for x in matrix]
  return matrix
def      _A       (		SCREAMING_SNAKE_CASE     :   list[list[int]]						):





  """simple docstring"""



  for i in matrix:
    print(*SCREAMING_SNAKE_CASE						)


if __name__ == "__main__":
     UpperCAmelCase	:	List[str]		     =       make_matrix()
     print("""\norigin:\n""")
     print_matrix(matrix)
     print("""\nrotate 90 counterclockwise:\n""")
     print_matrix(rotate_aa(matrix))

     UpperCAmelCase	:	List[Any]		     =       make_matrix()
     print("""\norigin:\n""")
     print_matrix(matrix)
     print("""\nrotate 180:\n""")
     print_matrix(rotate_aaa(matrix))

     UpperCAmelCase	:	Union[str, Any]		     =       make_matrix()
     print("""\norigin:\n""")
     print_matrix(matrix)
     print("""\nrotate 270 counterclockwise:\n""")
     print_matrix(rotate_aaa(matrix))













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


UpperCAmelCase	:	Optional[Any]		     =       logging.get_logger(__name__)

UpperCAmelCase	:	Optional[int]		     =       {
    """google/canine-s""": """https://huggingface.co/google/canine-s/resolve/main/config.json""",
    # See all CANINE models at https://huggingface.co/models?filter=canine
}







class 				__lowerCAmelCase       (    UpperCamelCase__):
      _lowercase				:					List[Any]						=			"""canine"""







      def __init__(    self		,      lowerCAmelCase__=7_6_8		,      lowerCAmelCase__=1_2		,      lowerCAmelCase__=1_2		,      lowerCAmelCase__=3_0_7_2		,      lowerCAmelCase__="gelu"		,      lowerCAmelCase__=0.1		,      lowerCAmelCase__=0.1		,      lowerCAmelCase__=1_6_3_8_4		,      lowerCAmelCase__=1_6		,      lowerCAmelCase__=0.02		,      lowerCAmelCase__=1E-12		,      lowerCAmelCase__=0		,      lowerCAmelCase__=0XE0_00		,      lowerCAmelCase__=0XE0_01		,      lowerCAmelCase__=4		,      lowerCAmelCase__=4		,      lowerCAmelCase__=8		,      lowerCAmelCase__=1_6_3_8_4		,      lowerCAmelCase__=1_2_8		,      **lowerCAmelCase__		,      )   ->						Dict:



        '''simple docstring'''




        super().__init__(pad_token_id=lowerCAmelCase__		,      bos_token_id=lowerCAmelCase__		,      eos_token_id=lowerCAmelCase__		,      **lowerCAmelCase__							)

        a__	:					Optional[int]										=max_position_embeddings
        a__	:					str										=hidden_size
        a__	:					Optional[Any]										=num_hidden_layers
        a__	:					Tuple										=num_attention_heads
        a__	:					Optional[Any]										=intermediate_size
        a__	:					Optional[int]										=hidden_act
        a__	:					List[Any]										=hidden_dropout_prob
        a__	:					Union[str, Any]										=attention_probs_dropout_prob
        a__	:					Optional[Any]										=initializer_range
        a__	:					Union[str, Any]										=type_vocab_size
        a__	:					Optional[int]										=layer_norm_eps

        # Character config:
        a__	:					int										=downsampling_rate
        a__	:					Optional[Any]										=upsampling_kernel_size
        a__	:					Union[str, Any]										=num_hash_functions
        a__	:					Any										=num_hash_buckets
        a__	:					int										=local_transformer_stride






