


import math
from datetime import datetime, timedelta






def 					lowerCamelCase_   (	_a	):




		"""simple docstring"""






		lowerCAmelCase__       :      Union[str, Any]   					= year % 19
		lowerCAmelCase__       :      Optional[Any]   					= year % 4
		lowerCAmelCase__       :      List[Any]   					= year % 7
		lowerCAmelCase__       :      Dict   					= math.floor(year / 100	)
		lowerCAmelCase__       :      Tuple   					= math.floor((13 + 8 * leap_day_inhibits) / 25	)
		lowerCAmelCase__       :      Optional[int]   					= leap_day_inhibits / 4
		lowerCAmelCase__       :      Optional[Any]   					= (
		    15 - lunar_orbit_correction + leap_day_inhibits - leap_day_reinstall_number
		) % 30
		lowerCAmelCase__       :      List[Any]   					= (4 + leap_day_inhibits - leap_day_reinstall_number) % 7

		# days to be added to March 21
		lowerCAmelCase__       :      Optional[Any]   					= (19 * metonic_cycle + secular_moon_shift) % 30

		# PHM -> Paschal Full Moon
		lowerCAmelCase__       :      str   					= (
		    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(_a     ,       4     ,       19	)
		elif days_to_add == 28 and days_from_phm_to_sunday == 6:
				return datetime(_a     ,       4     ,       18	)
		else:
				return datetime(_a     ,       3     ,       22	) + timedelta(
				    days=int(days_to_add + days_from_phm_to_sunday	)	)


if __name__ == "__main__":
		for year in (1994, 2000, 2010, 2021, 2023):
				lowerCamelCase						=		'''will be''' if year > datetime.now().year else '''was'''
				print(f'''Easter in {year} {tense} {gauss_easter(year)}''')








from ...utils import is_note_seq_available, is_transformers_available, is_torch_available
from ...utils import OptionalDependencyNotAvailable


try:
		if not (is_transformers_available() and is_torch_available()):
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		from ...utils.dummy_torch_and_transformers_objects import *  # noqa F403
else:
		from .notes_encoder import SpectrogramNotesEncoder
		from .continous_encoder import SpectrogramContEncoder
		from .pipeline_spectrogram_diffusion import (
		    SpectrogramContEncoder,
		    SpectrogramDiffusionPipeline,
		    TaFilmDecoder,
		)

try:
		if not (is_transformers_available() and is_torch_available() and is_note_seq_available()):
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		from ...utils.dummy_transformers_and_torch_and_note_seq_objects import *  # noqa F403
else:
		from .midi_utils import MidiProcessor




