

"""simple docstring"""





def   _A  (  UpperCamelCase_					:	str)     ->						bool:
   '''simple docstring'''


   return credit_card_number.startswith(("34", "35", "37", "4", "5", "6"))




def   _A  (  UpperCamelCase_					:	str)     ->						bool:
   '''simple docstring'''


   __lowercase								=						credit_card_number
   __lowercase								=						0
   __lowercase								=						len(UpperCamelCase_) - 2
   for i in range(UpperCamelCase_,      -1,      -2):
      #  double the value of every second digit
      __lowercase								=						int(cc_number[i])
      digit *= 2
      # If doubling of a number results in a two digit number
      # i.e greater than 9(e.g., 6 × 2 = 12),
      # then add the digits of the product (e.g., 12: 1 + 2 = 3, 15: 1 + 5 = 6),
      # to get a single digit number.
      if digit > 9:
         digit %= 10
         digit += 1
      __lowercase								=						cc_number[:i] + str(UpperCamelCase_) + cc_number[i + 1 :]
      total += digit

   # Sum up the remaining digits
   for i in range(len(UpperCamelCase_) - 1,      -1,      -2):
      total += int(cc_number[i])

   return total % 10 == 0




def   _A  (  UpperCamelCase_					:	str)     ->						bool:
   '''simple docstring'''


   __lowercase								=						F"""{credit_card_number} is an invalid credit card number because"""
   if not credit_card_number.isdigit():
      print(F"""{error_message} it has nonnumerical characters.""")
      return False

   if not 13 <= len(UpperCamelCase_) <= 16:
      print(F"""{error_message} of its length.""")
      return False

   if not validate_initial_digits(UpperCamelCase_):
      print(F"""{error_message} of its first two digits.""")
      return False

   if not luhn_validation(UpperCamelCase_):
      print(F"""{error_message} it fails the Luhn check.""")
      return False

   print(F"""{credit_card_number} is a valid credit card number.""")
   return True


if __name__ == "__main__":
   import doctest

   doctest.testmod()
   validate_credit_card_number('4111111111111111')
   validate_credit_card_number('32323')







"""simple docstring"""





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


_a							=							logging.get_logger(__name__)

_a							=							{
    'MIT/ast-finetuned-audioset-10-10-0.4593': (
        'https://huggingface.co/MIT/ast-finetuned-audioset-10-10-0.4593/resolve/main/config.json'
    ),
}




class  _lowerCAmelCase  (     lowercase       ):







 """simple docstring"""







 __UpperCAmelCase     : Any       		=     "audio-spectrogram-transformer"


 def __init__(      self							:      Optional[Any], UpperCAmelCase__							:      Dict=7_6_8, UpperCAmelCase__							:      Optional[Any]=1_2, UpperCAmelCase__							:      Optional[int]=1_2, UpperCAmelCase__							:      List[str]=3_0_7_2, UpperCAmelCase__							:      List[str]="gelu", UpperCAmelCase__							:      Dict=0.0, UpperCAmelCase__							:      str=0.0, UpperCAmelCase__							:      Any=0.02, UpperCAmelCase__							:      Any=1E-12, UpperCAmelCase__							:      Dict=1_6, UpperCAmelCase__							:      Optional[int]=True, UpperCAmelCase__							:      Union[str, Any]=1_0, UpperCAmelCase__							:      List[Any]=1_0, UpperCAmelCase__							:      Optional[int]=1_0_2_4, UpperCAmelCase__							:      List[str]=1_2_8, **UpperCAmelCase__							:      List[Any], ):
    super().__init__(**UpperCAmelCase__     )

    __lowercase								=						hidden_size
    __lowercase								=						num_hidden_layers
    __lowercase								=						num_attention_heads
    __lowercase								=						intermediate_size
    __lowercase								=						hidden_act
    __lowercase								=						hidden_dropout_prob
    __lowercase								=						attention_probs_dropout_prob
    __lowercase								=						initializer_range
    __lowercase								=						layer_norm_eps
    __lowercase								=						patch_size
    __lowercase								=						qkv_bias
    __lowercase								=						frequency_stride
    __lowercase								=						time_stride
    __lowercase								=						max_length
    __lowercase								=						num_mel_bins




