




"""simple docstring"""

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


a							      =     logging.get_logger(__name__)

a							      =     {
    '''google/pegasus-large''': '''https://huggingface.co/google/pegasus-large/resolve/main/config.json''',
    # See all PEGASUS models at https://huggingface.co/models?filter=pegasus
}





class 							lowercase_			(	__lowerCAmelCase				):



 '''simple docstring'''
 UpperCAmelCase       :	Dict     =      '''pegasus'''
 UpperCAmelCase       :	Any     =      ['''past_key_values''']
 UpperCAmelCase       :	Tuple     =      {'''num_attention_heads''': '''encoder_attention_heads''', '''hidden_size''': '''d_model'''}

 def __init__(					self			:			Optional[Any]       ,				_UpperCAmelCase			:			List[Any]=50_265       ,				_UpperCAmelCase			:			Optional[int]=1_024       ,				_UpperCAmelCase			:			Any=12       ,				_UpperCAmelCase			:			Optional[Any]=4_096       ,				_UpperCAmelCase			:			str=16       ,				_UpperCAmelCase			:			Any=12       ,				_UpperCAmelCase			:			List[str]=4_096       ,				_UpperCAmelCase			:			Any=16       ,				_UpperCAmelCase			:			Any=0.0       ,				_UpperCAmelCase			:			Optional[Any]=0.0       ,				_UpperCAmelCase			:			Union[str, Any]=True       ,				_UpperCAmelCase			:			Union[str, Any]=True       ,				_UpperCAmelCase			:			Optional[Any]="gelu"       ,				_UpperCAmelCase			:			Any=1_024       ,				_UpperCAmelCase			:			List[str]=0.1       ,				_UpperCAmelCase			:			int=0.0       ,				_UpperCAmelCase			:			List[Any]=0.0       ,				_UpperCAmelCase			:			Optional[Any]=0.02       ,				_UpperCAmelCase			:			Tuple=0       ,				_UpperCAmelCase			:			Optional[Any]=False       ,				_UpperCAmelCase			:			Union[str, Any]=0       ,				_UpperCAmelCase			:			Any=1       ,				_UpperCAmelCase			:			Tuple=1       ,				**_UpperCAmelCase			:			str       ,				):
       _A     =  vocab_size
       _A     =  max_position_embeddings
       _A     =  d_model
       _A     =  encoder_ffn_dim
       _A     =  encoder_layers
       _A     =  encoder_attention_heads
       _A     =  decoder_ffn_dim
       _A     =  decoder_layers
       _A     =  decoder_attention_heads
       _A     =  dropout
       _A     =  attention_dropout
       _A     =  activation_dropout
       _A     =  activation_function
       _A     =  init_std
       _A     =  encoder_layerdrop
       _A     =  decoder_layerdrop
       _A     =  use_cache
       _A     =  encoder_layers
       _A     =  scale_embedding  # scale factor will be sqrt(d_model) if True
       super().__init__(
           pad_token_id=_UpperCAmelCase       ,				eos_token_id=_UpperCAmelCase       ,				is_encoder_decoder=_UpperCAmelCase       ,				decoder_start_token_id=_UpperCAmelCase       ,				forced_eos_token_id=_UpperCAmelCase       ,				**_UpperCAmelCase       ,				)

 @property
 def      lowerCAmelCase_				(					self			:			Optional[int]						):
       return self.encoder_attention_heads



 @property
 def      lowerCAmelCase_				(					self			:			Optional[int]						):
       return self.d_model







"""simple docstring"""

import math
from datetime import datetime, timedelta






def 		_snake_case	(   _snake_case				:   int				)       ->   datetime:






      '''simple docstring'''


      _A     =  year % 19
      _A     =  year % 4
      _A     =  year % 7
      _A     =  math.floor(year / 1_00				)
      _A     =  math.floor((13 + 8 * leap_day_inhibits) / 25				)
      _A     =  leap_day_inhibits / 4
      _A     =  (
          15 - lunar_orbit_correction + leap_day_inhibits - leap_day_reinstall_number
      ) % 30
      _A     =  (4 + leap_day_inhibits - leap_day_reinstall_number) % 7

      # days to be added to March 21
      _A     =  (19 * metonic_cycle + secular_moon_shift) % 30

      # PHM -> Paschal Full Moon
      _A     =  (
          2 * julian_leap_year
          + 4 * non_leap_year
          + 6 * days_to_add
          + century_starting_point
      ) % 7

      if days_to_add == 29 and days_from_phm_to_sunday == 6:
            return datetime(_snake_case							,    4							,    19				)
      elif days_to_add == 28 and days_from_phm_to_sunday == 6:
            return datetime(_snake_case							,    4							,    18				)
      else:
            return datetime(_snake_case							,    3							,    22				) + timedelta(
                days=int(days_to_add + days_from_phm_to_sunday				)				)


if __name__ == "__main__":
       for year in (1_994, 2_000, 2_010, 2_021, 2_023):
              a							      =     '''will be''' if year > datetime.now().year else '''was'''
              print(F'''Easter in {year} {tense} {gauss_easter(year)}''')

