

'''simple docstring'''

import logging
from dataclasses import dataclass, field
from typing import Optional

from seqaseq_trainer import arg_to_scheduler

from transformers import TrainingArguments


A_       						=							logging.getLogger(__name__)





@dataclass
class 							_snake_case (       _a						):
   _A       :     Optional[float]       =					field(
       default=0.0	,  metadata={'''help''': '''The label smoothing epsilon to apply (if not zero).'''}						)
   _A       :     bool       =					field(default=_a	,  metadata={'''help''': '''Whether to SortishSamler or not.'''}						)
   _A       :     bool       =					field(
       default=_a	,  metadata={'''help''': '''Whether to use generate to calculate generative metrics (ROUGE, BLEU).'''}						)
   _A       :     bool       =					field(default=_a	,  metadata={'''help''': '''whether to use adafactor'''}						)
   _A       :     Optional[float]       =					field(
       default=_a	,  metadata={'''help''': '''Encoder layer dropout probability. Goes into model.config.'''}						)
   _A       :     Optional[float]       =					field(
       default=_a	,  metadata={'''help''': '''Decoder layer dropout probability. Goes into model.config.'''}						)
   _A       :     Optional[float]       =					field(default=_a	,  metadata={'''help''': '''Dropout probability. Goes into model.config.'''}						)
   _A       :     Optional[float]       =					field(
       default=_a	,  metadata={'''help''': '''Attention dropout probability. Goes into model.config.'''}						)
   _A       :     Optional[str]       =					field(
       default='''linear'''	,  metadata={'''help''': F'''Which lr scheduler to use. Selected in {sorted(arg_to_scheduler.keys()						)}'''}	,  )









'''simple docstring'''

from math import factorial





def    A_  ( snake_case      ,       snake_case ):

  # If either of the conditions are true, the function is being asked
  # to calculate a factorial of a negative number, which is not possible
  if n < k or k < 0:
    raise ValueError("Please enter positive integers for n and k where n >= k" )
  return factorial(snake_case ) // (factorial(snake_case ) * factorial(n - k ))


if __name__ == "__main__":
    print(
        "The number of five-card hands possible from a standard",
        f'''fifty-two card deck is: {combinations(52, 5)}\n''',
    )

    print(
        "If a class of 40 students must be arranged into groups of",
        f'''4 for group projects, there are {combinations(40, 4)} ways''',
        "to arrange them.\n",
    )

    print(
        "If 10 teams are competing in a Formula One race, there",
        f'''are {combinations(10, 3)} ways that first, second and''',
        "third place can be awarded.",
    )






